This file contains 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
(function() { | |
var baseURL = 'https://b.hatena.ne.jp'; | |
var redirect = function(qArgs) { | |
var url = baseURL + '/add?b2=1' + ( qArgs || '' ) + '&url=' + encodeURIComponent(location.href); | |
location.href = url; | |
} | |
if (document.getElementsByTagName('frameset').length) { | |
return redirect('&frame=1'); |
This file contains 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 threading | |
from uuid import uuid4 | |
import redis | |
r = redis.StrictRedis(host='', port=0, db=0, password='') | |
class Attacker(threading.Thread): | |
def __init__(self, name): |
This file contains 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 wozozo on github. | |
* I am wozozo (https://keybase.io/wozozo) on keybase. | |
* I have a public key whose fingerprint is 83E3 B3A5 513F F7EA 1623 5129 236D 55AC 842A 1315 | |
To claim this, I am signing this object: |
This file contains 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 json | |
from pyramid.renderers import JSON | |
class FlaskRenderer(JSON): | |
def __call__(self, info): | |
def _render(value, system): | |
request = system.get('request') |
This file contains 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
/***** Fadding Entrances ******/ | |
.flip-left { | |
-webkit-animation: flipLeft 1 1s ease-out; | |
-moz-animation: flipLeft 1 1s ease-out; | |
-ms-animation: flipLeft 1 1s ease-out; | |
-o-animation: flipLeft 1 1s ease-out; | |
animation: flipLeft 1 1s ease-out; | |
opacity: 1 !important; | |
visibility: visible !important; | |
} |
This file contains 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
from sqlalchemy import engine_from_config | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy.orm import configure_mappers | |
import zope.sqlalchemy | |
# import or define all models here to ensure they are attached to the | |
# Base.metadata prior to any initialization routines | |
from .mymodel import MyModel # flake8: noqa | |
# run configure_mappers after defining all of the models to ensure |
This file contains 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
from sqlalchemy import engine_from_config | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy.orm import configure_mappers | |
import zope.sqlalchemy | |
# import or define all models here to ensure they are attached to the | |
# Base.metadata prior to any initialization routines | |
from .mymodel import MyModel # flake8: noqa | |
# run configure_mappers after defining all of the models to ensure |
This file contains 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
heso% ~ python -V | |
Python 2.7.10 | |
heso% ~ which python | |
/usr/local/bin/python | |
heso% ~ pip install kytea | |
Collecting kytea | |
Using cached kytea-0.1.3.tar.gz | |
Building wheels for collected packages: kytea |
This file contains 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 Charge from './charge'; | |
import Customer from './customer'; | |
import Plan from './plan'; | |
import Subscription from './subscription'; | |
import Token from './token'; | |
import Transfer from './transfer'; | |
import Event from './event'; | |
import Account from './account'; | |
export default class Payjp { |
This file contains 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/sh | |
set -e | |
usage() { | |
echo "Usage: `basename $0` [template repo] [project name]" | |
echo " e.g.: `basename $0` https://github.com/user/repo.git prjectname" | |
exit 1 | |
} | |