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
### Keybase proof | |
I hereby claim: | |
* I am dreamiurg on github. | |
* I am dreamiurg (https://keybase.io/dreamiurg) on keybase. | |
* I have a public key whose fingerprint is 94C4 271D B090 BBB2 92DE 0FA3 ED90 F588 25F7 5764 | |
To claim this, I am signing this object: |
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
https://gist.github.com/dreamiurg/df8f175d469f10cda3e178ba57d6424a |
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
import requests | |
import arrow | |
LOGIN_URL = 'https://strengthlevel.com/signin-or-register' | |
BASE_LIFT_URL = 'https://strengthlevel.com/XXX-lifter' | |
def login(session): | |
data = { | |
'email': r'XXX', |
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
brew cask install iterm2 sublime-text istat-menus | |
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
import arrow | |
import csv | |
import boto3 | |
import datetime | |
import logging | |
import numpy as np | |
import os | |
import re | |
import sys | |
import StringIO |
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
$ cat buffer.c | |
#include <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
int main() { | |
char src[4] = {0}; | |
char dst[1] = {0}; | |
time_t epoch; | |
time(&epoch); |
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
# The version info for the project you're documenting, acts as replacement for | |
# |version| and |release|, also used in various other places throughout the | |
# built documents. | |
# The short X.Y version. | |
version = get_version().lstrip('v') | |
# The full version, including alpha/beta/rc tags. | |
release = version |
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
/* | |
before http://pix.am/ArBv/ | |
after http://pix.am/uvye/ | |
*/ | |
#top-bar { | |
display: none; | |
} |
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
""" | |
This fabric file makes setting up and deploying a django application much | |
easier to webfaction servers or your dedicated server, but it does make a | |
few assumptions. Namely that you're using Git, Apache and mod_wsgi. Also | |
you should have SSH installed on both the local machine and any servers you | |
want to deploy to. | |
Thanks to: | |
http://github.com/ryanmark/django-project-templates |
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
# override settings with environment and local_settings | |
FLAVOR = os.environ.get('FLAVOR') | |
if FLAVOR: | |
override_settings('config.' + FLAVOR) |
NewerOlder