Skip to content

Instantly share code, notes, and snippets.

@duoeg
duoeg / font-awesome-icons.php
Created January 16, 2020 14:16
List of Font Awesome icons for PHP
/**
* Returns a list of icons for the desired type.
* Supported values: "all" (default) | "brands" | "light" | "regular" | "solid" | "duotone"
* At the time of writing this function, current version is 5.12.0.
*/
function font_awesome($type = "all") {
$fa = array();
$brands = array( "fa-500px","fa-accessible-icon","fa-accusoft","fa-acquisitions-incorporated","fa-adn","fa-adobe","fa-adversal","fa-affiliatetheme","fa-airbnb","fa-algolia","fa-alipay","fa-amazon","fa-amazon-pay","fa-amilia","fa-android","fa-angellist","fa-angrycreative","fa-angular","fa-app-store","fa-app-store-ios","fa-apper","fa-apple","fa-apple-pay","fa-artstation","fa-asymmetrik","fa-atlassian","fa-audible","fa-autoprefixer","fa-avianex","fa-aviato","fa-aws","fa-bandcamp","fa-battle-net","fa-behance","fa-behance-square","fa-bimobject","fa-bitbucket","fa-bitcoin","fa-bity","fa-black-tie","fa-blackberry","fa-blogger","fa-blogger-b","fa-bluetooth","fa-bluetooth-b","fa-bootstrap","fa-btc","fa-buffer","fa-buromobelexperte","fa-buy-n-la
@duoeg
duoeg / gist:a5a6ab229f439d15a465be06a9fe7f88
Last active February 2, 2022 13:56
Liste de pays avec code ISO à 2 caractères
<select>
<option value="CA">Canada</option>
<option value="AF">Afghanistan</option>
<option value="ZA">Afrique du sud</option>
<option value="AX">Åland, îles</option>
<option value="AL">Albanie</option>
<option value="DZ">Algérie</option>
<option value="DE">Allemagne</option>
<option value="AD">Andorre</option>
<option value="AO">Angola</option>
@duoeg
duoeg / gist:72d4e71cd2232685f2f33ba016cb5042
Last active February 2, 2022 13:56
Liste de pays avec code ISO à 3 caractères
<select>
<option value="AFG">Afghanistan</option>
<option value="ALA">Åland Islands</option>
<option value="ALB">Albanie</option>
<option value="DZA">Algérie</option>
<option value="ASM">Samoa</option>
<option value="AND">Andorre</option>
<option value="AGO">Angola</option>
<option value="AIA">Anguilla</option>
<option value="ATA">Antarctique</option>
@duoeg
duoeg / .htaccess
Created December 14, 2023 19:56
Appeler uploads d'un autre host
# Put before WordPress rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(wp-content/uploads/.*) https://www.example.ca/$1 [L]