I hereby claim:
- I am muromec on github.
- I am muromec (https://keybase.io/muromec) on keybase.
- I have a public key whose fingerprint is 2716 F175 82CF 9833 DD1D D244 9180 15F3 1BE0 0922
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| default partial alphanumeric_keys | |
| xkb_symbols "latin" { | |
| include "latin" | |
| name[Group1]= "Ukrainian (latin)"; | |
| key <AC02> { [ s, S, scaron, Scaron ] }; | |
| key <AB01> { [ z, Z, zcaron, Zcaron ] }; | |
| key <AB03> { [ c, C, ccaron, Ccaron ] }; | |
| key <AD08> { [ i, I, idiaeresis, Idiaeresis ] }; | |
| include "level3(ralt_switch)" |
| function MyObject(val) { | |
| this.val = val; | |
| this.myCallback = this.myCallback.bind(this); // or lodash.bindall(this, 'myCallback'); | |
| } | |
| MyObject.prototype.myCallback = function(err, data){ | |
| console.log(err,data); | |
| console.log(this.val); | |
| }; |
| import React from 'react'; | |
| class Inside extends React.Component { | |
| static contextTypes = { | |
| section: React.PropTypes.string, | |
| }; | |
| render() { | |
| return (<span>INSIDE {this.context.section}</span>); | |
| } |
| from threading import Thread, current_thread, local | |
| def thread(): | |
| other = current_thread() | |
| local().name = 'WHAT?' | |
| print 'generator hijack', next(gen) | |
| def where_am_i(): | |
| for x in range(10): |
| describe('Jest', ()=> { | |
| it('what', (done)=> { | |
| Promise.resolve().then(()=> { | |
| throw new Error('ya yaya'); | |
| }).then(done, done); | |
| }) | |
| it('okay', ()=> { | |
| return Promise.resolve().then(()=> { | |
| throw new Error('ya yaya'); |
| import wcurve | |
| import hashlib | |
| def inverse_mod(a, m): | |
| """Inverse of a mod m.""" | |
| if a < 0 or m <= a: | |
| a = a % m | |
| # From Ferguson and Schneier, roughly: |
| from datetime import date | |
| import json | |
| import re | |
| from collections import namedtuple | |
| def make_date(date_str): | |
| [day, month, year] = date_str.split('.') | |
| return date(day=int(day), month=int(month), year=int(year)) | |
| function spawn(fn, pname, toParent = ()=> null) { | |
| let current = null; | |
| let state = null; | |
| function getState() { | |
| return state; | |
| }; | |
| let listeners = []; | |
| let buffer = []; | |
| function subscribe(fn) { | |
| listeners.push(fn); |
| import { computed, readonly, reactive, ref, watch } from 'vue' | |
| function spawn(fn, pname, toParent = ()=> null) { | |
| let current = null; | |
| let state = reactive({}); | |
| let buffer = []; | |
| let resolveExit; | |
| let exitPromise = new Promise(resolve => { | |
| resolveExit = resolve; | |
| }); |