Skip to content

Instantly share code, notes, and snippets.

View dignifiedquire's full-sized avatar

Friedel Ziegelmayer dignifiedquire

View GitHub Profile
export var app = {
start: function () {
console.log('Starting application');
},
load: function (module) {
console.log('Loading %s', module);
return System.import(module);
}
};
@dignifiedquire
dignifiedquire / functions.sjs
Last active August 29, 2015 14:04
TypeScript Patternmatching
// Translation of functions.ts using sparkler
// https://github.com/natefaubion/sparkler
function pickCard(x) {
[...{ suit @ String, card @ number }] => {
var pickedCard = Math.floor(Math.random() * x.length);
return pickedCard;
}
x @ Number => {
var pickedSuit = Math.floor(x / 13);
@dignifiedquire
dignifiedquire / package.json
Last active August 29, 2015 14:04
Streaming JSON to and from redis
{
"name": "redis-streaming-test",
"version": "0.0.0",
"description": "",
"main": "redis.js",
"dependencies": {
"blocked": "^1.0.0",
"flow-parse": "^0.0.1",
"flow-stringify": "^0.0.1",
"hiredis": "^0.1.17",
export default React.createClass({
displayName: 'ModalHeader',
propTypes: {
onClose: React.PropTypes.func
},
getDefaultProps() {
return {
onClose: function () {}
import { Component } from "react";
const Enhance = Target => class extends Component {
state = {
data: null
}
constructor() {
super()
}
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
const Parent = React.createClass({
getInitialState() {
selectedItem: null
},
_onChildSelect(i) {
this.setState({selectedItem: i})
},

Guides Style Guidelines

Colors

@light-blue: #f7f9fc;
@blue: #c7d5f6;
@text-color: #212c3f;
❯ be cap site:staging deploy
/Users/dignifiedquire/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Developer/NVIDIA/CUDA-7.0/bin in PATH, mode 040777
/Users/dignifiedquire/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /Developer/NVIDIA/CUDA-7.0/bin in PATH, mode 040777
INFO [09a2d80d] Running /usr/bin/env mkdir -p /var/build/site/repo as capistrano@build.int.codio.com
DEBUG [09a2d80d] Command: /usr/bin/env mkdir -p /var/build/site/repo
INFO [09a2d80d] Finished in 2.268 seconds with exit status 0 (successful).
INFO [bfcc5d63] Running /usr/bin/env mkdir -p /tmp/site/ as capistrano@build.int.codio.com
DEBUG [bfcc5d63] Command: /usr/bin/env mkdir -p /tmp/site/
INFO [bfcc5d63] Finished in 0.247 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/site/git-ssh.sh 0.0%