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
var xLBD = {}; | |
xLBD.c = function () { | |
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7); | |
xLBD.m = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0]; | |
xLBD.f = xLBD.m.hd_src ? xLBD.m.hd_src : xLBD.m.sd_src; | |
xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>"; | |
document.body.innerHTML += xLBD.a; | |
}; | |
if(document.readyState == "complete") | |
xLBD.c(); |
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
X←100◊M←⍳X◊F←{(⍵∧0=⍺|⍵)~0}◊M[3 F M]←'f'◊M[5 F ⍳X]←'b'◊M[15 F ⍳X]←'Z'◊M |
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
raven.js:1280 Uncaught TypeError: Cannot read property 'childNodes' of nulli @ main-84d65d3842ed51b295fe.js:29a @ main-84d65d3842ed51b295fe.js:29f @ main-84d65d3842ed51b295fe.js:29i @ main-84d65d3842ed51b295fe.js:7i @ main-84d65d3842ed51b295fe.js:51a.detachRefs @ main-84d65d3842ed51b295fe.js:51o.unmountComponent @ main-84d65d3842ed51b295fe.js:11g.unmountComponent @ main-84d65d3842ed51b295fe.js:50o.unmountComponent @ main-84d65d3842ed51b295fe.js:11u.unmountChildren @ main-84d65d3842ed51b295fe.js:50g.Mixin.unmountChildren @ main-84d65d3842ed51b295fe.js:51v.Mixin.unmountComponent @ main-84d65d3842ed51b295fe.js:51o.unmountComponent @ main-84d65d3842ed51b295fe.js:11g.unmountComponent @ main-84d65d3842ed51b295fe.js:50o.unmountComponent @ main-84d65d3842ed51b295fe.js:11g.unmountComponent @ main-84d65d3842ed51b295fe.js:50o.unmountComponent @ main-84d65d3842ed51b295fe.js:11u.unmountChildren @ main-84d65d3842ed51b295fe.js:50g.Mixin.unmountChildren @ main-84d65d3842ed51b295fe.js:51v.Mixin.unmountComponent @ main-84d65d3 |
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
#!/bin/sh | |
# cat /usr/local/etc/rc.d | |
# PROVIDE: rtorrent | |
# REQUIRE: DAEMON | |
############# | |
###<Notes>### | |
############# | |
# This script depends on screen. |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# | |
# a translation from a processing example | |
# http://vormplus.be/weging/an-introduction-to-processing/ | |
# | |
Shoes.app :width => 420, :height => 420, :resizable => false do | |
stage, wide, sw, basesize, step = 0, 3.0, 1.0, 600, 60 | |
stroke gray(127) | |
nofill | |
animate 40 do |i| |
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
# Just do this | |
git clone git://github.com/shoes/shoes4.git | |
cd shoes4 | |
# not sure about how many 'o'-es are in there. | |
./bin/swt-shoooes my_shoes_file.rb |
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
class TestClass | |
def initialize | |
if defined?(@@app_created) | |
Window.new | |
return | |
end | |
@@app_created = true | |
puts "app hasn't been created, so I'll make one" |
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
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.events.PaintEvent; | |
import org.eclipse.swt.events.PaintListener; | |
import org.eclipse.swt.graphics.Font; | |
import org.eclipse.swt.widgets.Display; | |
import org.eclipse.swt.widgets.Shell; | |
public class SwtApp { | |
public SwtApp(final Display display) { |
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
lorem_ipsum = <<EOS | |
Lorem ipsum dolor sit amet, consectetur | |
adipisicing elit, sed do eiusmod tempor | |
incididunt ut labore et dolore magna | |
aliqua. Ut enim ad minim veniam, quis | |
nostrud exercitation ullamco laboris nisi | |
ut aliquip ex ea commodo consequat. | |
Duis aute irure dolor in reprehenderit | |
in voluptate velit esse cillum dolore | |
eu fugiat nulla pariatur. Excepteur sint |
NewerOlder