Skip to content

Instantly share code, notes, and snippets.

@tzafrir
tzafrir / gist:1068638
Created July 7, 2011 00:04
Google+ nitificator
javascript:function f() {var n = document.getElementById('gbi1').innerHTML; if (n == 0) {document.title = "Google+"} else { document.title = "(" + n + ") Google+" } }; window.setInterval(f, 1000)
@tzafrir
tzafrir / index.html
Created April 24, 2011 18:28
Youtube Remixer draft
<doctype html>
<html><head><title>Youtube Mixer</title>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load("swfobject", "2.1");
function _run() {
var videoID = "HgzGwKwLmgM"
var params = { allowScriptAccess: "always" };
var atts = { id: "y1", allowFullScreen: true };
@tzafrir
tzafrir / gist:813306
Created February 6, 2011 11:26
gedit external tool wrapper for gist.sh
#!/bin/sh
gnome-www-browser `gist.sh -f $GEDIT_CURRENT_DOCUMENT_PATH`
#ifndef __BOA_CONSTRAINT_PROBLEM_H__
#define __BOA_CONSTRAINT_PROBLEM_H__
#include <vector>
#include "Constraint.h"
using std::vector;
#ifndef __BOA_CONSTRAINT_PROBLEM_H__
#define __BOA_CONSTRAINT_PROBLEM_H__
#include <vector>
#include "Constraint.h"
using std::vector;
namespace boa {
@tzafrir
tzafrir / pre.c
Created January 25, 2011 15:56
Macro to output string
#define call(foo) "call " #foo
call(q)