Skip to content

Instantly share code, notes, and snippets.

View wozozo's full-sized avatar
😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
  • Tokyo, Japan
  • 18:10 (UTC +09:00)
  • X @wozozo
View GitHub Profile
### 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:
import json
from pyramid.renderers import JSON
class FlaskRenderer(JSON):
def __call__(self, info):
def _render(value, system):
request = system.get('request')
/***** 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;
}
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
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
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
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 {
@wozozo
wozozo / r.js
Created September 29, 2015 14:53
__DEV__=!1,__BUNDLE_START_TIME__=Date.now(),function(e){function t(e){for(var t,n,r,o,i=Array.prototype.slice.call(e),a={};i.length;)if(n=i.shift(),!a[n]&&(a[n]=!0,r=h[n],r&&r.waiting))for(t=0;t<r.dependencies.length;t++)o=r.dependencies[t],(!h[o]||h[o].waiting)&&i.push(o);for(n in a)y.call(a,n)&&i.push(n);var s=[];for(t=0;t<i.length;t++){n=i[t];var u=n;if(r=h[n])if(r.waiting){for(var c=[],l=0;l<r.dependencies.length;l++)o=r.dependencies[l],(!h[o]||h[o].waiting)&&c.push(o);u+=" is waiting for "+c.join(", ")}else u+=" is ready";else u+=" is not defined";s.push(u)}return s.join("\n")}function n(e){this.name="ModuleError",this.message=e,this.stack=Error(e).stack,this.framesToPop=2}function r(o){var i,a,s,u=h[o];if(u&&u.exports)return 1===u.refcount--&&delete h[o],u.exports;if(e.ErrorUtils&&!T){T=!0;try{var c=r.apply(this,arguments)}catch(d){e.ErrorUtils.reportFatalError(d)}return T=!1,c}if(!u)throw s='Requiring unknown module "'+o+'"',l&&(s+=". If you are sure the module is there, try restarting the packager."),

Vagrant の Postgresql に外部から接続

前提

  • CentOS

以下のファイルを編集

/var/lib/pgsql/9.4/data/pg_hba.conf

convert -geometry 128x128 in.png out.png