I hereby claim:
- I am zuk on github.
- I am zuk (https://keybase.io/zuk) on keybase.
- I have a public key ASBcP-PkF8fSEym3UrGtc3noRG-AH3dFlKDPCcReah2Gzwo
To claim this, I am signing this object:
Hi Akira! |
// Here's how to do basic integer<->byte (string/char) operations in JavaScript. | |
// Took me a good while to dig this up. | |
function intToChar(integer) { | |
return String.fromCharCode(integer) | |
} | |
function charToInt(char) { | |
return char.charCodeAt(0) | |
} |
function Promise() { }; | |
Promise.prototype = { | |
then: function(cb) { | |
var p = new Promise(); | |
this.resolve = function(v) { | |
var value = cb(v); | |
if (p.resolve) p.resolve(value); | |
}; | |
return p; | |
} |
import './Foo.scss' | |
export default class Foo extends React.Component { | |
render() { | |
const { someProp } = this.props | |
return ( | |
<div className="Foo"> | |
... | |
</div> |
I hereby claim:
To claim this, I am signing this object:
// copied from https://github.com/dotcs/normalizr/blob/963f9297ef5c97866bc3e6de5cdef730155a3e09/src/index.js | |
// ... waiting until this gets merged into normalizr | |
// see https://github.com/gaearon/normalizr/pull/20 | |
import isObject from 'lodash/lang/isObject' | |
import clone from 'lodash/lang/clone' | |
import { Schema as EntitySchema } from 'normalizr' | |
function visitObjectForDenorm(obj, schema, bag) { | |
var denormalized = {}, |
# re-run last command with sudo/root | |
:w !sudo tee % |
curl http://127.0.0.1:8080/ & | |
P=$! | |
sleep 0.008 && kill -9 $P | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Algae</string> |
import scala.io.Source | |
import scala.util.matching.Regex | |
import scala.collection._ | |
object Spreadsheet extends App { | |
val RefFormat = new Regex("([a-z]+)([1-9]+)", "row", "col") | |
val LineFormat = new Regex("^([a-z]+)([1-9]+):(.*)", "row", "col", "expr") | |
val ExprInt = new Regex("(-?\\d+)", "v") | |
val ExprFloat = new Regex("(-?\\d+\\.\\d+)", "v") |