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
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofBackground(255); | |
ofEnableSmoothing(); | |
layoutPoints(); | |
} |
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 p = document.createElement('p'); | |
var prefixes = ['webkit','Moz','ms','O']; | |
var len = prefixes.length; | |
var style = p.style; | |
p = null; | |
module.exports = prefix; | |
function prefix(prop) { | |
for (i = 0; i < len; i++) { |
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 fs = require( 'fs' ) | |
var struggle = fs.readFileSync( __dirname + '/struggle.txt', 'utf-8' ) | |
console.log( mirror(struggle, 45, true ) ); | |
console.log( '--------------------' ); | |
console.log( mirror(struggle, 90, false ) ); | |
function mirror( str, gap, keep ) { | |
var lines = str.split( '\n' ) |
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
// Page init code is at the bottom | |
var Map = (function(map, $){ | |
var exports = map || {}; | |
var geo = new google.maps.Geocoder(), | |
geocode = { | |
address: [ config.project_location.street, | |
config.project_location.city, | |
config.project_location.country].join(", ") |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
padding: 100px; | |
} | |
.word-container{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>CoffeeScript+Stylus</title> | |
<script src="http://jashkenas.github.com/coffee-script/extras/coffee-script.js"></script> | |
<script src="http://learnboost.github.com/stylus/stylus.js"></script> | |
<style id="stylus"> | |
body | |
font-family helvetica |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
padding: 100px; | |
} | |
.word-container{ |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
padding: 100px; | |
} | |
.word-container{ |
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
.wiggle{ | |
position: relative; | |
font-size: 20em; | |
} | |
.wiggle span{ | |
position: absolute; | |
} | |
span#top{ | |
z-index: 3; | |
opacity: .8; |
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
express = require("express") | |
routes = require("./routes") | |
swig = require('swig') | |
app = module.exports = express.createServer() | |
app.configure -> | |
swig.init | |
root: __dirname + "/views" |
OlderNewer