Skip to content

Instantly share code, notes, and snippets.

/* mobile first */
.bathroom.label-icon {
@include tb-icon('bathroom', ms(3)); // Font size in tb-icon call required
}
.bedroom.label-icon {
@include tb-icon('bedroom', ms(3)); // Font size in tb-icon call required, ugly repetition
}
@lorennorman
lorennorman / hello.cljs
Created January 5, 2015 22:00
dirty dirty maze generator to learn clojure(script)
(ns cljsgame.hello)
(enable-console-print!)
(defn create []
(cljsgame.maze-builder.add-chrome cljsgame.hello.game))
(defn update []
(cljsgame.maze-builder.step))
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial timeout="10">706-325-2079</Dial>
<Dial timeout="15">404-451-0516</Dial>
<Say>Hello, you have reached Tourbuzz. Please leave us a message and we will get back to you as soon as possible.</Say>
<Record transcribe="true" transcribeCallback="http://twimlets.com/voicemail?Email=support@tourbuzz.net"/>
</Response>
@lorennorman
lorennorman / custom-pipe.js
Created February 9, 2012 03:56
ATLRUG Presentation: Asset Pipelines and You, 2-2012
app.get('/javascript/:buildable_js_file', function(req, res)
{
var jsFilename = req.params.buildable_js_file
, staticPath = 'public/javascript/' + jsFilename
, buildPath = 'app/client/' + jsFilename
, buildDir = buildPath.replace('.js', '')
, serveJS = function(jsString)
{
res.header('Content-Type', 'application/javascript')
res.send(jsString)
@lorennorman
lorennorman / hex_grid.scad
Created December 29, 2011 17:02
learning me some openscad by playing with a hexagonal grid
module hexagon(radius)
{
circle(r=radius,$fn=6);
}
module shell(radius)
{
difference()
{
hexagon(radius*1.2); // base
@lorennorman
lorennorman / worldmap.scss
Created July 27, 2011 01:59
100ish lines of scss that drive the worldmap page for http://scoutmob.com
@import "vendor/960";
@import "shared/position_and_dimensions";
$cities-sprite-dimensions: true;
@import "worldmap/cities/*.png";
@include all-cities-sprites;
$links-sprite-dimensions: true;
@import "worldmap/links/*.png";
@include all-links-sprites;
// Create a quick singleton object to represent our mock mobile app
var App = {};
// Our App has many states and state-change callbacks
App.currentState = null;
App.STATES = [
{name: 'main_menu'},
{name: 'loading'},
{
name: 'list_doables',
onEnter: function()
// Let's specify some Behaviors, first
// Gotta have x,y coords!
var Positionable =
{ x: 0
, y: 0 // phear my inverted c0mmaZ!
};
// Mmmm, delicious physics
var Physical =
// Watches the spec files for changes and reloads the Jasmine test runner
// Watches the source files for changes and auto-builds with Sprockets
// Rebuilds also trigger the tests
var SOURCE_DIR = "src";
var SOURCE_MAIN = SOURCE_DIR+'/application.js';
var BUILD_DIR = 'build';
var BUILD_MAIN = BUILD_DIR+'/application.js';
var SPEC_DIR = 'spec';
var WATCH_INTERVAL = 5000;
<% semantic_form_for @model_name do |form| %>
<%= form.inputs %>
<%= form.buttons %>
<% end %>