Skip to content

Instantly share code, notes, and snippets.

View dignifiedquire's full-sized avatar

Friedel Ziegelmayer dignifiedquire

View GitHub Profile
INFO global: Vagrant version: 1.4.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: help command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: package command
INFO manager: Registered plugin: plugin command
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 1.4.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.1/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
var cp = require('child_process');
var async = require('async');
function discover(opts, callback) {
var listOfItems = [1,2,3,4,5];
async.map(listOfItems, function (item, cb) {
// Gets executed for every item in the list
// when exec is done it calls the cb
cp.exec(cmd(item), cb)
}, function (error, results) {
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;