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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
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
(Untested - this is the gist of what you need to do) | |
Install Macports | |
http://www.macports.org/install.php | |
Get the latest TCL/TK: | |
http://www.activestate.com/activetcl/ |
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
require 'rubygems' | |
require 'weary' | |
class Postie | |
def get(code) | |
(Weary.get "http://www.uk-postcodes.com/postcode/#{code.gsub(' ', '')}.json").perform | |
end | |
end | |
postie = Postie.new |
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
usernames = "mrmactout | |
angusmactout | |
elsbethmactout | |
sgtmacfuzz | |
mrsmactoffy | |
professordunkopf | |
ferociousness1983 | |
littleness1983 | |
hungryness1983".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
Here are the commands I used to create http://royalcourt.heroku.com | |
(Assuming ruby, rubygems, heroku, git) | |
sudo gem install caboodle | |
caboodle create royalcourt | |
cd royalcourt | |
caboodle kit:add flickr | |
(input flickr username) | |
caboodle kit:add twitter |
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
If you do this: | |
(205.00).floor | |
You would expect 205. | |
Likewise with: | |
(2.05*100).floor |
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
<cnpsXML StartTimeCode="00:00:05;00"> <Markers> | |
<Marker_1 MarkerTime_27MHz.QWD="270000000" MarkerName="Marker1"/> | |
<Marker_2 MarkerTime_27MHz.QWD="540000000" MarkerName="Marker2"/> | |
<MyMarker MarkerTime_27MHz.QWD="810000000" MarkerName="MyMarker"/> | |
</Markers> </cnpsXML> |
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
# Deal with the usual JSON gem idiocy. Guys, come on. I want to serialize an integer, surely this can't be that hard | |
class Fixnum | |
def to_json(options = nil) | |
to_s | |
end | |
end |
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
get %r{(.+)/$} do |r| redirect r; end; |
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
mediainfo -f /files/timecode/528006c9-33b0-4a89-9b94-c9bf7f6be2a9.mov | grep '^Delay.*: [0-9][0-9]:' | awk '{split($0,a,": "); print a[2]}' |
OlderNewer