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
open System | |
open System.IO | |
// Structure to keep track of names for identical files | |
type Identical = { | |
Files: seq<string> | |
} | |
// Traverse and find all file paths and sizes | |
let rec getAllFiles minLength (root : DirectoryInfo) = |
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
{ | |
"name":"NDC Oslo 2015", | |
"days":[ | |
{ | |
"order":"0", | |
"name":"Wednesday", | |
"slots":[ | |
{ | |
"id":"09:00-10:00", | |
"from":"09:00", |
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
(function() { | |
var diff = 50; // max difference (% of 0-255) | |
$('*').each(function() { | |
var o = $(this); | |
var rgb = o.css('background-color'); | |
if (rgb.indexOf('rgb') == -1) return; | |
var adjusted = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/).map(function(c) { | |
var t = parseInt(c) + (((Math.random() * 2) - 1) * (255 * (diff / 100))); | |
if (t < 0) t = 0; | |
if (t > 255) t = 255; |