gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
local usbWatcher = nil | |
function usbDeviceCallback(data) | |
if (data["productName"] == "Quickfire TKL 6keys") then | |
if (data["eventType"] == "added") then | |
hs.execute('/Applications/Karabiner.app/Contents/Library/bin/karabiner select 1') | |
elseif (data["eventType"] == "removed") then | |
hs.execute('/Applications/Karabiner.app/Contents/Library/bin/karabiner select 0') | |
end | |
end |
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"?> | |
<root> | |
<devicevendordef> | |
<vendorname>CM_Storm</vendorname> | |
<vendorid>0x2516</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>QuickFire_TK</productname> | |
<productid>0x0011</productid> |
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
[ | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } } | |
] |
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
bool Solve(configuration conf) { | |
if (no more choices) { // BASE CASE | |
return (conf is goal state) | |
} | |
for (all available choices) { | |
try one choice C: | |
// solve from here, if works out, you're done | |
if (Solve(conf with choice c made)) return true; | |
unmake choice c; |
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
function* genColor() { | |
const colors = ['#5cb8d6', '#79d4f2', '#ffc425', '#f2dd6a', '#4ac327', '#87db42', '#ef9520', '#f6c452', '#41c3c0', '#65e1dd', '#6ca1b6', '#8cc1d7', '#16bb93', '#44debb'] | |
let index = 0 | |
while(true) { | |
yield colors[index] | |
index++ | |
if (index >= colors.length) { | |
index = 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
function foo(x, y) { | |
ajax( | |
"http://some.url/?x=" + x + "&y=" + y, | |
function(err, data) { | |
if (err) { | |
it.throw(err); | |
} else { | |
it.next(data); | |
} | |
} |
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
༼ つ ◕_◕ ༽つ giff diretide | |
༼ つ ◕◡◕ ༽つ got diretide | |
(╯°□°)╯︵ ┻━┻ | |
ʕ •ᴥ•ʔ | |
┬─┬ ノ( ゜-゜ノ) | |
_____. | |
~(_]---' | |
/_(U | |
(ง ˘ᴗ˘ )ว | |
(ว ˘ᴗ˘ )ง |
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
// | |
// Spectator Hero Keys Dota 2 Config | |
// | |
// by Naikoh | |
// | |
bind "1" "dota_spectator_hero_index 0" | |
bind "2" "dota_spectator_hero_index 1" | |
bind "3" "dota_spectator_hero_index 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
# INITIAL QUERY | |
SELECT *, | |
( | |
( | |
ACOS( | |
SIN($LAT * Pi() / 180) | |
* SIN(latitude * Pi() / 180) | |
+ | |
COS($LAT * Pi() / 180) | |
* COS(latitude * Pi() / 180) |
NewerOlder