A Pen by John Hunter on CodePen.
This file contains 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 camera, scene, renderer, | |
geometry, material, mesh; | |
init(); | |
animate(); | |
function init() { | |
scene = new THREE.Scene(); |
This file contains 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
<snippet> | |
<content><![CDATA[function($1){${0:$TM_SELECTED_TEXT}}]]></content> | |
<tabTrigger>></tabTrigger> | |
<scope>source.js</scope> | |
<description>Lambda Function</description> | |
</snippet> |
This file contains 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
/** | |
* Throbbing glow effect | |
*/ | |
body { | |
background: #fff; | |
} | |
@-webkit-keyframes throb { | |
from { box-shadow: 0 0 20px #6cf; } | |
50% { box-shadow: 0 0 00px #6cf; } |
This file contains 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
/** | |
* Throbbing glow effect | |
*/ | |
body { | |
background: #fff; | |
} | |
@-webkit-keyframes throb { | |
from { box-shadow: 0 0 20px #6cf; } | |
50% { box-shadow: 0 0 00px #6cf; } |
This file contains 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
/** | |
* Chat view panel | |
*/ | |
body { | |
font: 13px/1 Arial,Helvetica,sans-serif; | |
} | |
.view { | |
position: fixed; | |
bottom: 0px; |
This file contains 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
/* jshint node: true */ | |
module.exports = function(grunt) { | |
grunt.registerTask('default', ['concat:test']); | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { |
This file contains 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
/* | |
From Doug Crockford's talk 'Monads and Gonads' | |
*/ | |
/* | |
Doug calls this a Macroid - a JavaScript version of a macro. | |
Its purpose is to create the monad unit function for a specific monad type | |
*/ | |
function MONAD (){ |
This file contains 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
/* jshint node:true, es3:false */ | |
// we need some complex maths functions :) | |
var maths = require('./maths'); | |
console.log(maths.XplusY(2, 4)); | |
console.log(maths.XtimesY(2, 4)); |
This file contains 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
https://github.com/joyent/node/blob/master/deps/uv/include/uv.h#L63 |