I hereby claim:
- I am sgulseth on github.
- I am sgulseth (https://keybase.io/sgulseth) on keybase.
- I have a public key ASCMC9koGfiEjNgky8ddBbEnb6UWTPhjKquRJMf9Lm2SzQo
To claim this, I am signing this object:
git commit -a -m "`curl http://whatthecommit.com/index.txt`" |
<script> | |
(function(d) { | |
var config = { | |
kitId: 'ccr4zex', | |
scriptTimeout: 3000 | |
}, | |
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s) | |
})(document); | |
</script> |
-keep class com.squareup.okhttp.** { *; } | |
-keep interface com.squareup.okhttp.** { *; } | |
-dontwarn com.squareup.okhttp.** | |
-dontwarn rx.** | |
-dontwarn retrofit.** | |
-dontwarn okio.** | |
-keep class retrofit.** { *; } | |
-keepclasseswithmembers class * { | |
@retrofit.http.* <methods>; |
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 | |
file=$2 |
{ | |
"@attributes": { | |
"sid": "50003" | |
}, | |
"navdate": "2012-04-02", | |
"proddate": "2012-04-03", | |
"sysexectime": "2012-04-04T10:01:13", | |
"symbol": "UTMSEMF", | |
"security_name": "MSCI EMF (Em. Markets Free) (TR)", | |
"quotationcurrency": "USD", |
/* AST v0.2.6 Updated : 2015-10-13 (1444771604718) */ ! function(e) { | |
function t(a) { | |
if (n[a]) return n[a].exports; | |
var r = n[a] = { | |
exports: {}, | |
id: a, | |
loaded: !1 | |
}; | |
return e[a].call(r.exports, r, r.exports, t), r.loaded = !0, r.exports | |
} |
I hereby claim:
To claim this, I am signing this object:
// Scenario 1: | |
function someFunction() { | |
return new Promise(function (resolve, reject) { | |
const someVariable = 1; | |
resolve(someVariable); | |
}); | |
} | |
callIt = someFunction() | |
// the variable 'someVariable' will be cleaned by garbage collector |
<?php | |
$code = 200; | |
if (preg_match('/(\d+)$/', $_SERVER["REQUEST_URI"], $match)) { | |
$code = $match[1]; | |
} | |
http_response_code($code); | |
echo "Status code: $code"; |