Skip to content

Instantly share code, notes, and snippets.

@alp82
alp82 / glamorous-proxy.js
Created August 19, 2017 18:11
Cosmos Proxy for Glamorous Theme
import createThemeProviderProxy from './glamorous-theme-provider-proxy';
import { mainTheme } from 'theme/theme';
export default () => {
return createThemeProviderProxy({
theme: mainTheme,
});
};
@alp82
alp82 / es6katas-75-basics.js
Created November 10, 2016 16:58
ES6 Katas: basics (#75)
// 75: Promise - basics
// To do: make all tests pass, leave the assert lines unchanged!
describe('a Promise represents an operation that hasn`t completed yet, but is expected in the future', function() {
it('`Promise` is a global function', function() {
const expectedType = 'function';
assert.equal(typeof Promise, expectedType);
});
@alp82
alp82 / robot.js
Created December 21, 2012 22:40
Alp
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);