I hereby claim:
- I am railsstudent on github.
- I am connieleung (https://keybase.io/connieleung) on keybase.
- I have a public key ASA3Ysv7oXXzgowqK-0hdfqiVvp4-W_zr-7CPmxKC4fOyAo
To claim this, I am signing this object:
| /// <reference path="../../library.test.d.ts"/> | |
| import * as angular from "angular"; angular; | |
| import * as mocks from "angular-mocks/ngMock"; mocks; | |
| describe('feat(localStorage Mock): ', function() { | |
| beforeAll(() => { | |
| angular.module('mock-module',[]) | |
| }); |
| const COLUMNS = 7; | |
| const ROWS = 6; | |
| const grid = []; | |
| const height = []; // next available row at column j | |
| for (let j = 0; j < COLUMNS; j++) { | |
| height.push(0); | |
| for (let i = 0; i < ROWS; i++) { |
I hereby claim:
To claim this, I am signing this object:
| // Async function returns promise | |
| async function asyncFunc() { | |
| return "123"; | |
| } | |
| async function resolveAfter1Second(n) { | |
| return new Promise(resolve => { | |
| setTimeout(() => { | |
| resolve(n); |
| var NonsenseAPI = (function() { | |
| var publicAPI = { | |
| name, | |
| gender, | |
| profession, | |
| languages | |
| }; | |
| function name(nickname) { |
| // Reference: https://godoc.org/github.com/cenkalti/backoff#pkg-examples | |
| // expect the following object to pass to constructor | |
| // { | |
| // retryInterval, | |
| // randomizationFactor, | |
| // multiplier, | |
| // maxInterval, | |
| // maxElapsedTime | |
| // } | |
| function ExponentialBackoff(data) { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/4.0.6/rx.all.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> |
| "use strict"; | |
| var Observable = Rx.Observable; | |
| var textbox = document.getElementById("textbox"); | |
| var textArea = document.getElementById("results"); | |
| var keypresses = Observable.fromEvent(textbox, 'keypress'); | |
| keypresses.forEach(function (x) { |
| function getPINs(observed) { | |
| // return [observed].concat(getPINsHelper(observed)); | |
| // return getPINsHelper(observed); | |
| let adjacentPins = { | |
| '1': ['1','2','4'], | |
| '2': ['1','2','3','5'], | |
| '3': ['2','3','6'], | |
| '4': ['1','4','5','7'], | |
| '5': ['2','4','5','6','8'], | |
| '6': ['3','5','6','9'], |