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
bigPipe.onPageletArrive({ | |
"is_last": true, | |
"content": { | |
"pagelet_sidebar": { | |
"container_id": "u5da1gw108" | |
} | |
}, | |
"jsmods": { | |
"instances": [ | |
["m229365_110", ["ScrollableArea", "m229365_109"], |
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
<?php | |
ini_set('display_errors','on'); | |
error_reporting(E_ALL); | |
//This is less than desirable, but we'll figure out restructuring later | |
$backend_path = '../../../backend/'; | |
require_once($backend_path . 'lib/logger.php'); | |
require_once($backend_path . 'config.php'); | |
$logger = new Logger(); |
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 fileref=document.createElement('script'); fileref.setAttribute("type","text/javascript");fileref.setAttribute("src", 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js'); document.getElementsByTagName("head")[0].appendChild(fileref); | |
$('div[href^="/files"]').each(function(idx, el) { href = $(el).attr('href'); $(el).replaceWith('<a href="' + href + '">Download</a>') }); |
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
postpone(); | |
function postpone() | |
{ | |
init(); | |
window.setTimeout(postpone,500); | |
} | |
function init() | |
{ |
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
from sys import argv | |
import wave | |
sound = wave.open(argv[1],"r") | |
one = wave.open("split_one.wav","w") | |
two = wave.open("split_two.wav","w") | |
data = sound.readframes(sound.getnframes()) | |
one.setparams(sound.getparams()) |
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/bash | |
FRAME="frame.gif" | |
INFILE=$1 | |
OUTFILE=$2 | |
MOVEBY=2 | |
NUMFRAMES=`gifsicle -I $INFILE | | |
perl -ne 'if(/(\d+) images/) { print $1;}'` | |
echo "Cleaning up any previous runs..." | |
rm -rf left | |
rm -rf right |
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
/** | |
* @preserve | |
* FullCalendar v1.5.1 | |
* http://arshaw.com/fullcalendar/ | |
* | |
* Use fullcalendar.css for basic styling. | |
* For event drag & drop, requires jQuery UI draggable. | |
* For event resizing, requires jQuery UI resizable. | |
* | |
* Copyright (c) 2011 Adam Shaw |
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
<?php | |
if (!function_exists('http_build_url')) | |
{ | |
define('HTTP_URL_REPLACE', 1); // Replace every part of the first URL when there's one of the second URL | |
define('HTTP_URL_JOIN_PATH', 2); // Join relative paths | |
define('HTTP_URL_JOIN_QUERY', 4); // Join query strings | |
define('HTTP_URL_STRIP_USER', 8); // Strip any user authentication information | |
define('HTTP_URL_STRIP_PASS', 16); // Strip any password authentication information | |
define('HTTP_URL_STRIP_AUTH', 32); // Strip any authentication information | |
define('HTTP_URL_STRIP_PORT', 64); // Strip explicit port numbers |
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
#!/usr/local/bin/perl | |
#use strict; | |
#use warnings; | |
use LWP::Simple; | |
my $baseurl = 'http://www.xkcd.com/'; | |
my $comicnum = 1; | |
open (TSV, '>>index.csv'); | |
while($pagecontent = get("$baseurl$comicnum/")) { | |
$comicnum++; |
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
#!/usr/bin/perl | |
use LWP::Simple; | |
use WWW::Mechanize; | |
use HTTP::Cookies; | |
use Term::ReadKey; | |
use POSIX qw(strftime mktime); | |
my $interneturl = "http://www.google.com"; | |
my $internet = "Google"; |