A Pen by Fabrizio Bianchi on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nodify = require('nodify'); | |
// Prints build time | |
console.log(nodify(function() { | |
return new Date(); | |
})); | |
// Prints current time | |
console.log(new Date()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
babel github-es6.js -o github.js --optional runtime --experimental |
adapters/
foo.js
models/
foo.js
serializers/
foo.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------------- | |
// EventTypes.js | |
//----------------------------------------------------------------------------- | |
// required event class definitions for MIDI events | |
//----------------------------------------------------------------------------- | |
// Event : base class for all events | |
//----------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var AWS = require('aws-sdk'); | |
var RSVP = require('rsvp'); | |
var exec = RSVP.denodeify(require('child_process').exec); | |
var fs = require('fs-promise'); | |
var chalk = require('chalk'); | |
var crypto = require('crypto'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System; | |
using System.Security.Policy; | |
using System.Threading; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using WebSocketSharp; | |
using WebSocketSharp.Net; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# set -x # -> for debug | |
#rm -rf /tmp/heroku | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1) /' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Controller } from 'lux-framework'; | |
import setUser from '../middleware/set-user'; | |
class PostsController extends Controller { | |
params = [ | |
'body', | |
'isPublic', | |
'userId' | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Controller, action } from 'lux-framework'; | |
class UsersController extends Controller { | |
params = [ | |
'name', | |
'email', | |
'password' | |
]; | |
@action |