This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apple | |
Banana | |
Cherry | |
Date | |
Elderberry | |
Fig | |
Grape | |
Honeydew | |
Imbe | |
Jackfruit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Function to extract city_ascii and country names | |
function extractLocationParts($filename) { | |
// Initialize an empty array to hold the merged location strings | |
$locations = []; | |
// Open the CSV file | |
if (($handle = fopen($filename, 'r')) !== false) { | |
// Get the header line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if ($argc < 2) { | |
echo "Usage: phpf <function_name> [arguments...]\n"; | |
exit(1); | |
} | |
$function_name = $argv[1]; | |
$args = array_slice($argv, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>DALL·E Image Generator</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
margin: 50px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my coding timeline | |
2013 got very comfortable working with yaml as i configured minecraft servers | |
2014 got my first domain and made my first website | |
2015 started making minecraft mods and custom server software in java | |
2015 started making dynamic websites with Ruby on Rails | |
2018 started freelance frontend web development | |
2019 started wordpress (unfortunately, thus briefly) | |
2020 more advanced wordpress | |
2021 LARAVEL! |
Here's an example of a high-level algorithm in PHP using OOP to illustrate the concept described in this Tweet https://x.com/CodeWithCaen/status/1824869764696592676
class DocumentProcessor {
private $document;
private $analyzer;
private $transformer;
private $validator;
private $publisher;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Keyboard Requirements | |
Full size, 100% keyboard with number pad, multimedia keys, and at least a few macros. Volume knob is a bonus. | |
Wired, don't need wireless. Backlit but couldn't care less about RGB. Mechanical is nice but not necessary. | |
At this point, I'm willing to spend several hundred dollars for a reliable quality keyboard that will last. | |
I'm a programmer, not a gamer, so I don't care about bells and whistles. | |
I just need something solid that I can comfortably type on for hours a day. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto eol=lf | |
/tests export-ignore | |
/.github export-ignore | |
/.gitignore export-ignore | |
/.gitattributes export-ignore | |
/composer.lock export-ignore | |
/phpunit.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Best we've got | |
<h1>Frankenstein</h1> | |
<p role="doc-subtitle">Or: The Modern Prometheus</p> | |
// How about this? (Inspired by form label and input coupling) | |
<h1> | |
Frankenstein | |
<subhead>Or: The Modern Prometheus</subhead> | |
</h1> |
NewerOlder