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
#!/bin/bash | |
PATH=path/to/images | |
IMAGE=Image-`date +%Y%m%d-%H%M` | |
AWS_ACCESS_KEY=AGWEGAWEGAWEGAWEG | |
AWS_SECRET_KEY=waWG#reH5452HE23raWy432% | |
echo "building image ${IMAGE}" | |
sudo ec2-bundle-vol -k /home/ubuntu/.ssh/id_rsa -c /home/ubuntu/keys/server.crt -u USER_ID -r x86_64 --no-filter |
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
crypto = require('crypto') | |
cipher_key = "awegohaewiot2#%@#A#()GAWJVZDz34t#$TJOP#A$TA" | |
cipher = (txt) -> | |
c = crypto.createCipher('aes-256-cbc', cipher_key) | |
crypted = c.update(txt, 'utf8', 'hex') | |
crypted += c.final('hex') | |
return crypted |
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
// ==UserScript== | |
// @name Trello Timer | |
// @namespace http://blmarket.net/users | |
// @description Display open time for each cards | |
// @include https://trello.com/board/* | |
// @include https://trello.com/b/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== |
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
async_call = (callback) -> | |
setTimeout callback, 1 | |
class ThisPlus | |
# 생성자 | |
constructor: -> | |
# javascript의 this.do_something과 동일 | |
@do_something() | |
callback = => # => 를 통해 내부 함수에 this를 binding | |
@do_something() |
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
number_format = (num) -> return String(num).replace(/(\d)(?=(\d{3})+\b)/g,'$1,') |
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
require('crypto').createHash('md5').update(STRING_TO_BE_HASHED).digest("hex") |
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
body | |
margin 0 | |
padding 0 | |
background #fff | |
color #000 | |
font 12px/1.2 sans-serif | |
form, fieldset, h1, h2, h3, ul, ol, li, p, button, input, textarea, dl, dt, dd | |
margin 0 | |
padding 0 |
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
var async = { | |
map: function (arr, iterator, callback) { | |
throw "IMPLEMENT ME PLZ" | |
}, | |
mapSeries: function (arr, iterator, callback) { | |
throw "IMPLEMENT ME PLZ" | |
} | |
}; | |
var test_arr = [1,2,3,4,5,6,7,8,9,0]; |
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
/* old IE(~7) clearing float */ | |
.clear{*zoom:1} | |
/* modern browser include IE(8~) clearing float */ | |
.clear:after{content:" ";display:block;clear:both} |
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
.blind { | |
position: absolute !important; | |
height: 1px; width: 1px; | |
overflow: hidden; | |
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
} |