Skip to content

Instantly share code, notes, and snippets.

@scopevale
scopevale / fiddle.css
Created February 8, 2012 11:17
Prototype jQuery noConflict test - 2
div {
display: none;
}
@scopevale
scopevale / firebug.js
Created March 19, 2012 15:12
javascript snippets
jQuery('form').each(function () { console.log(jQuery(this).attr('name')); })
http://garys35.workbuddy/roster/shift/edit/4,,5707,4641,?render=partial&method=iframe&referrer=%2Froster%2Fedit%2F%2C%2C%2C%2C3%2C%3F
@scopevale
scopevale / README.md
Created December 4, 2012 16:00 — forked from mbostock/.block
Epicyclic Gearing

From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Built with D3.js.

@scopevale
scopevale / index.html
Created December 5, 2012 09:37 — forked from jeffpflueger/index.html
Experiment 1 with d3 and svgweb
<!DOCTYPE html>
<html>
<head>
<!-- SVG web to turn svg into flash for IE
This might not be working on bl.ocks.org for the following reasons:
1) MIME types not added to the bl.ocks.org webserver:
AddType text/x-component htc
AddType application/x-shockwave-flash swf
AddType image/svg+xml svg
{"libraries":["Highcharts"]}
{"libraries":["d3"]}
@scopevale
scopevale / index.html
Created April 24, 2013 11:39
A CodePen by Gary Smith.
<div class="gantt">Hello World</div>
@scopevale
scopevale / data1.json
Created November 25, 2013 19:04
SAM JSON test data
{"valid":true,"staffList":{"45793":{"leaves_destination":[],"leaves_source":[],"destination_shifts":[{"roster_id":"575358","division_id":"3111","job_id":null,"start_date":"2015-12-12","end_date":"2015-12-25","week_begin_day":"6","week_end_day":"19","roster_type":"","template_id":"0","avail_cost":"0","offered_cost":"0","num_avail":"4","num_offered":"4","num_avail_assigned":"0","num_offered_assigned":"4","status":"PUBLISHED","extra_status":"0","confirmed":"0","confirmed_by":null,"confirmed_date":null,"published":"1","published_by":"34","published_date":"2013-11-25 10:35:48","cancelled":"0","cancelled_by":null,"cancelled_date":null,"publish_priority":"1","alert_method":"","date_confirmed":null,"date_published":"2013-11-25 10:35:48","date_created":"2013-11-25 10:32:23","notes":"","ref_id":"0","deleted":"0","referenced":"127","star_rating":null,"date_start":"2009-10-12","date_end":null,"date_modified":"2013-11-24 01:37:36","rsg_id":"84662358","template_shift_id":"0","task_id":"7905","shift_name":"","shift_date":"2
/**
* Copyright (c) 2010 Maxim Vasiliev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var less = require('gulp-less');
var concat = require('gulp-concat');
var jshint = require('gulp-jshint');
var watch = require('gulp-watch');
var outDir = './temp';
var isWatch = false;