This file contains hidden or 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 | |
/** | |
* Validates a date to a specific rule. Rules has the following format: | |
* :[date-component]: ==|<|>|>=|<=|!= [number] | |
* | |
* So to validate if the date is the first of the month: | |
* :d: == 1 | |
* | |
* And the first monday of the month: |
This file contains hidden or 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
[ | |
{ | |
"emoji": "๐" | |
, "description": "smiling face with open mouth and smiling eyes" | |
, "aliases": [ | |
"smile" | |
] | |
, "tags": [ | |
"happy" | |
, "joy" |
This file contains hidden or 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
start | |
= tal_1000000_9999999 | |
/ tal_1_999999 | |
/ tal_0 | |
tal_1_999 | |
= tal_100_plus | |
/ tal_100_gange | |
/ tal_1_99 | |
This file contains hidden or 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
// Fonts: Either a string containing s single letter "A" from the utf code space you want to use or a number for one of these code spaces: | |
// 0 ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ | |
// 1 ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐ ๐๐๐๐๐๐๐ | |
// 2 ๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐ฟ๐๐ | |
// 3 ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ง๐จ๐ฉ | |
// 4 ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐ | |
// 5 ๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ท๐ธ๐น | |
// 6 ๐๐๐๐๐๐๐๐๐๐๐๐๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ซ๐ฌ๐ญ | |
// 7 ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ ๐ก | |
// 8 ๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐ |
This file contains hidden or 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
(function(){ | |
var input = []; | |
var konami = JSON.stringify(["ArrowUp", "ArrowUp", "ArrowDown", "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowLeft", "ArrowRight", "KeyB", "KeyA"]); | |
document.addEventListener('keydown', function(e){ | |
input.push(e.code); | |
if(JSON.stringify(input.slice(-10)) == konami){ | |
konamiSecret(); | |
} | |
}); |
This file contains hidden or 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
const buzzwords = /Bitcoin|Litecoin|uheld|politi|breaking/gi | |
aggregator([ | |
['https://news.ycombinator.com/','.itemlist .storylink',buzzwords,3], | |
['https://www.reddit.com/r/Denmark/new/','.thing',buzzwords,5], | |
['http://www.uriasposten.net','.blogitemtitle',buzzwords,3], | |
['http://tv2.dk','.o-teaser',buzzwords,3], | |
['https://www.bt.dk/','.teaser',buzzwords,3], | |
['https://www.dr.dk/','.dredition-item-inner',buzzwords,3] | |
]); |
This file contains hidden or 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
# ลhow git branch in prompt. | |
gb() { | |
echo -n '(' && git branch 2>/dev/null | grep '^*' | colrm 1 2 | tr -d '\n' && echo -n ')' | |
} | |
git_branch() { | |
gb | sed 's/()//' | |
} | |
#dir(branch)$ | |
PS1="\[\e[01;36m\]\w\[\e[33m\]\$(git_branch)\[\e[01;32m\]\\$\[\e[m\] " |