Skip to content

Instantly share code, notes, and snippets.

View gs-akhan's full-sized avatar
😇

Azharuddin gs-akhan

😇
View GitHub Profile
@gs-akhan
gs-akhan / BorderedInput.js
Created October 13, 2015 14:40 — forked from danharper/BorderedInput.js
BorderedInput, with Material design style focus animation. Preview: https://i.imgur.com/Fek7rXF.gif
// note there may be a better way to abuse flexbox than this :)
var React = require('react-native')
var { View, TextInput } = React
var BorderedInput = React.createClass({
getInitialState() {
return { i: 0 }
},
@gs-akhan
gs-akhan / concurrent_sync.js
Last active August 29, 2015 14:27 — forked from laser/concurrent_sync.js
Modifying "sync" to do parallel stuff
function sync(gen) {
var iterable, resume, check, vals, ops;
vals = [];
ops = 0;
check = function() {
if (vals.length == ops) {
if (ops == 1) {
iterable.next(vals[0]);