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
-- PRAGMAs | |
PRAGMA foreign_keys = ON; | |
-- User | |
CREATE TABLE account( | |
id TEXT PRIMARY KEY, | |
user_id TEXT UNIQUE NOT NULL, | |
password TEXT NOT NULL, | |
password_reset_code TEXT NULL, | |
email TEXT UNIQUE NOT NULL, |
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
DOMTokenList.prototype.add.apply( | |
window.document.documentElement.classList, | |
window.location.host.substring(0, window.location.host.lastIndexOf('.')).split('.') | |
); |
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 bash | |
# servers | |
jeeves="localhost:7211" | |
alfred="localhost:7212" | |
abyss="/dev/null" | |
cd "public" | |
php -S "$jeeves" &> "$abyss" & |
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 | |
define(SUCCESS, 0); | |
define(ERROR, 1); | |
if (count($argv) != 2) { | |
printf("usage: %s <filename>\n", basename($argv[0])); | |
exit(ERROR); | |
} |
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
#include <stdio.h> | |
#define as while | |
// as seen on Stack Overflow | |
// http://stackoverflow.com/q/1642028 | |
int main(int argc, char **argv) { | |
int x = 42; | |
as (x --> 0) { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.whymarrh.apps.mediakeys</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/path/to/the/executable/file</string> | |
</array> |
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
void swap(int *a, int *b); | |
int main(int argc, char **argv) { | |
int a = 1; | |
int b = 2; | |
swap(&a, &b); | |
return 0; | |
} | |
void swap(int *a, int *b) { |
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 python3 -OO | |
import itertools | |
import serial | |
import shlex | |
import subprocess | |
MESSAGE = """ | |
Hi there! You have a serial port: |
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
var re = /^(?!app[\\\/])|(app[\\\/]test)/; | |
console.log(); | |
console.log(); | |
console.log(); | |
console.log(); | |
[ | |
"app/test/Config.js", | |
"app/test/OtherConfig.js", |