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
var path = require("path"); | |
var forEachBail = require("enhanced-resolve/lib/forEachBail"); | |
var createInnerCallback = require("enhanced-resolve/lib/createInnerCallback"); | |
var basename = require("enhanced-resolve/lib/getPaths").basename; | |
var assign = require("object-assign"); | |
module.exports = DirectoryNamedWebpackPlugin; | |
function DirectoryNamedWebpackPlugin() { |
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
var path = require("path"); | |
var forEachBail = require("enhanced-resolve/lib/forEachBail"); | |
var createInnerCallback = require("enhanced-resolve/lib/createInnerCallback"); | |
var assign = require("object-assign"); | |
module.exports = DirectoryNamedWebpackPlugin; | |
function DirectoryNamedWebpackPlugin(honorIndex) { | |
this.honorIndex = !!honorIndex; | |
} |
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
dao = web3.eth.contract([{“constant”:true,”inputs”:[],”name”:”name”,”outputs”:[{“name”:””,”type”:”string”}],”type”:”function”},{“constant”:false,”inputs”:[{“name”:”_spender”,”type”:”address”},{“name”:”_amount”,”type”:”uint256"}],”name”:”approve”,”outputs”:[{“name”:”success”,”type”:”bool”}],”type”:”function”},{“constant”:true,”inputs”:[],”name”:”totalSupply”,”outputs”:[{“name”:””,”type”:”uint256"}],”type”:”function”},{“constant”:false,”inputs”:[{“name”:”_from”,”type”:”address”},{“name”:”_to”,”type”:”address”},{“name”:”_amount”,”type”:”uint256"}],”name”:”transferFrom”,”outputs”:[{“name”:”success”,”type”:”bool”}],”type”:”function”},{“constant”:true,”inputs”:[],”name”:”decimals”,”outputs”:[{“name”:””,”type”:”uint8"}],”type”:”function”},{“constant”:true,”inputs”:[],”name”:”standard”,”outputs”:[{“name”:””,”type”:”string”}],”type”:”function”},{“constant”:true,”inputs”:[{“name”:”_owner”,”type”:”address”}],”name”:”balanceOf”,”outputs”:[{“name”:”balance”,”type”:”uint256"}],”type”:”function”},{“constant”:true,”inputs”:[ |
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
public class BetterFileProvider extends android.support.v4.content.FileProvider { | |
@Override | |
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { | |
Cursor source = super.query(uri, projection, selection, selectionArgs, sortOrder); | |
String[] columnNames = source.getColumnNames(); | |
String[] newColumnNames = columnNamesWithData(columnNames); | |
MatrixCursor cursor = new MatrixCursor(newColumnNames, source.getCount()); |
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 React from 'react' | |
import RouterContext from 'react-router/lib/RouterContext' | |
class StoreLoader extends React.Component { | |
static childContextTypes = { | |
storeIsSynchronized: React.PropTypes.bool | |
}; | |
constructor(props) { | |
super(props); |
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
#!/usr/bin/env python | |
""" | |
Fixes a MySQL dump made with the right format so it can be directly | |
imported to a new PostgreSQL database. | |
Dump using: | |
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root databasename | |
""" |
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 React from 'react'; | |
export default class ContentEditable extends React.Component { | |
constructor() { | |
super(); | |
this.emitChange = this.emitChange.bind(this); | |
} | |
render() { | |
return <div id="contenteditable" |
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
set -xg GOPATH $HOME/development/go | |
set -xg GOBIN $GOPATH/bin | |
set -xg PATH $GOBIN $PATH |
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
gothic.GetProviderName = func(request *http.Request) (string, error) { | |
vars := mux.Vars(request) | |
provider := vars["provider"] | |
if provider == "" { | |
return provider, errors.New("you must select a provider") | |
} | |
return provider, nil | |
} |
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 sebastiandeutsch on github. | |
* I am sippndipp (https://keybase.io/sippndipp) on keybase. | |
* I have a public key whose fingerprint is 43E1 2E79 7907 07A8 1C78 3484 3D44 6B59 C0C5 8CBB | |
To claim this, I am signing this object: |