I hereby claim:
- I am michiel on github.
- I am michielkalkman (https://keybase.io/michielkalkman) on keybase.
- I have a public key whose fingerprint is 7A12 8594 3745 859D B6F6 B417 E8F4 53D6 FDC5 CCFA
To claim this, I am signing this object:
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
// Bootstrap3 | |
App.ActiveLiComponent = Ember.Component.extend({ | |
tagName : 'li', | |
classNameBindings : ['isActive:active:inactive'], | |
router: function() { | |
return this.container.lookup('router:main'); | |
}.property(), | |
isActive: function() { |
#!/bin/sh | |
host=localhost:9200 | |
curl -X DELETE "${host}/test" | |
curl -X PUT "${host}/test" -d '{ | |
"settings" : { "index" : { "number_of_shards" : 1, "number_of_replicas" : 0 }} | |
}' |
import os | |
import sys | |
# constants, configure to match your environment | |
HOST = 'http://localhost:9200' | |
INDEX = 'test' | |
TYPE = 'attachment' | |
TMP_FILE_NAME = 'tmp.json' |
map $request_method $not_allowed_method { | |
default 1; | |
GET 0; | |
HEAD 0; | |
POST 0; | |
} | |
if ($not_allowed_method) { | |
return 405; | |
} |
I hereby claim:
To claim this, I am signing this object:
function logslider(pos) { | |
var minp = 0; | |
var maxp = 100; | |
var minv = Math.log(100); | |
var maxv = Math.log(10000000); | |
var scale = (maxv - minv) / (maxp - minp); | |
return Math.exp(minv + scale * (pos - minp)); | |
} |
var position = $(this).position(); | |
var cssProps = { | |
top : position.top, | |
left : position.left, | |
opacity : '0.55' | |
}; | |
$(this).click(function() { | |
$(this).clone().css(cssProps).appendTo(this); | |
}); |