Skip to content

Instantly share code, notes, and snippets.

output = Array.new
[1..3,5,2,1,6,3,4,6,777,13..17].map{ |i|
begin
output << i.to_a
rescue
output << i
end
}
@DaveTD
DaveTD / README.md
Last active December 23, 2015 23:39
Gist for NightWatch

About

This is the gist for NightWatch - a somewhat incomplete video security management widget. I've included some stuff that sort of works, but doesn't really, that was originally meant to let the management widget control adding, removing and altering or freezing the pattern that the video feeds take.

Sadly, mjpgs aren't the nicest things, block ajax calls and generally just slow everything down.

The urls I've taken are from opentopia.com (http://www.opentopia.com/hiddencam.php?showmode=animated&country=Canada&seewhat=newest), please look at their disclaimers for legal information.

You'll probably want to use Chrome as your browser for this - mjpgs don't do so well in large numbers in firefox... and so everything ends up looking like garbage and won't load fast, and some mjpgs won't appear etc. In general, the page will load more or less in firefox, but it's just so much better in chrome.

@DaveTD
DaveTD / README.md
Last active December 13, 2017 15:19
Gist for baconify

A widget to turn your dashboard into a delicious example of beautiful, meaty goodness and to remind you to go eat lunch.

@DaveTD
DaveTD / Gemfile
Last active December 22, 2015 10:38
Dashing Paddles gist - for the Dashing Widget Challenge
source 'https://rubygems.org'
gem 'dashing'
# Remove this if you don't need a twitter widget.
gem 'twitter'
gem 'execjs'
gem 'therubyracer', :platforms => :ruby
gem 'rubame'
gem 'celluloid'