I hereby claim:
- I am mrkschan on github.
- I am mrkschan (https://keybase.io/mrkschan) on keybase.
- I have a public key whose fingerprint is E55A 36A8 E3E5 CBD6 467F F8FC 8530 7567 FE26 5CC9
To claim this, I am signing this object:
{ | |
'subtotal_price': Decimal('38.0'), | |
'buyer_accepts_marketing': True, | |
'shipping_lines': [{ | |
'source': 'shopify', | |
'price': Decimal('10.0'), | |
'code': 'Standard Shipping', | |
'title': 'Standard Shipping' | |
}], | |
'cart_token': None, |
#!/bin/bash | |
git log --graph --pretty="format:%C(yellow)%h%Cgreen%d%Creset %s %C(cyan) - %an, %Cred%ar%Creset" |
o = type('anonymous', (object,), {'attr_1': 'value_1', 'attr_2': 'value_2'}) | |
print o.attr_1, o.attr_2 |
" Taglist integration | |
let Tlist_Process_File_Always = 1 | |
" statusline config | |
set laststatus=2 | |
set statusline= | |
set statusline+=%< " cut at start | |
set statusline+=%f " relative path | |
set statusline+=\ -\ %{Tlist_Get_Tagname_By_Line()} " taglist |
from datetime import datetime, timedelta | |
import functools | |
import pickle | |
def days_ago(days): | |
dt = datetime.now() - timedelta(days=days) | |
return dt.strftime('%y%m%s') | |
print pickle.dumps(functools.partial(days_ago, 1)) |
I hereby claim:
To claim this, I am signing this object:
curl -v -k -s -o /dev/null -w 'remote_ip=%{remote_ip}, total=%{time_total}, dns=%{time_namelookup}, connect=%{time_connect}, appconnect=%{time_appconnect}, pretransfer=%{time_pretransfer}, redirect: %{time_redirect}, starttransfer: %{time_starttransfer}' |
import http.server | |
import socketserver | |
PORT = 8080 | |
class H(http.server.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
self.send_response(200) | |
self.end_headers() |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type TimedLock struct { | |
mutex chan (uint) |
FROM debian:stretch | |
RUN set -ex; \ | |
apt-get update; \ | |
apt-get install -y --no-install-recommends \ | |
build-essential \ | |
curl \ | |
python-pip python-setuptools python-virtualenv \ | |
; \ | |
rm -rf /var/lib/apt/lists/* |