Skip to content

Instantly share code, notes, and snippets.

View davorb's full-sized avatar
👋

Davor Babić davorb

👋
View GitHub Profile
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();
X←100◊M←⍳X◊F←{(⍵∧0=⍺|⍵)~0}◊M[3 F M]←'f'◊M[5 F ⍳X]←'b'◊M[15 F ⍳X]←'Z'◊M
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
@davorb
davorb / rc.sh
Last active December 30, 2015 15:19
#!/bin/sh
# cat /usr/local/etc/rc.d
# PROVIDE: rtorrent
# REQUIRE: DAEMON
#############
###<Notes>###
#############
# This script depends on screen.
@davorb
davorb / 0_reuse_code.js
Created November 29, 2013 12:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#
# 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|
@davorb
davorb / guide.sh
Created October 21, 2012 16:06
shoes4 guide
# 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
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"
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) {
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