Skip to content

Instantly share code, notes, and snippets.

puts "niggersaed"
module DSI
class Message
attr_accessor :body
def initialize body, private = false
@body = body
@private = private
end
def private?
#include <stdio.h>
#include <unistd.h>
#include "oculus.hpp"
Oculus::Oculus() {
if ((disp = XOpenDisplay(":0")) == NULL)
printf("Could not connect to X server\n");
Window active = this->getActiveWindow();
printf("%s - %dx%d\n", this->getWindowName(&active), this->getWindowWidth(&active), this->getWindowHeight(&active));
#!/usr/bin/env ruby1.9
# encoding: utf-8
require 'pp'
module Boyfriend
class Client
# http://boyfriend.dk/xml/newsticker.php
# http://boyfriend.dk/xml/onlinestatus.php
# http://boyfriend.dk/xml/statusbar.php
# http://boyfriend.dk/xml/list_additional.php?member=<int>
#!/usr/bin/env ruby
# encoding: utf-8
begin
require 'curb'
rescue LoadError
puts "This utillity depends on the curb library. (gem install curb)"
exit 1
end
max = ARGV.map{ |p| File.basename p }.map(&:length).max
#!/bin/bash
OSD=true # Notify when the screenshot has been uploaded (requires imagemagick and libnotify)
name="`date +%s`.png" # The local file name of the screenshot
function save {
case "$1" in
selection)
`scrot -bs /tmp/$name 2> /dev/null`
;;
<?php
$row = FALSE;
// show the first row in the table.
print "<tr>
<td colspan=\"3\" class=\"sechead\"><span>C</span>ontact <span>I</span>nfo</td>
</tr>";
// now foreach the bastards array...
foreach($contactArray as $key=>$value) {
if ($value == NULL || $key == "user_id" || $key == "pc_id" || trim($value) == "")
continue;
#!/usr/bin/env ruby
# encoding: utf-8
oldrev, newrev, refname = gets.split
repository = File.expand_path($0)[/([^\/]*?)\.git/]
refs, type, name = refname.split ?/
# encoding: utf-8
module Grooveshark
module Players
class MPlayer
attr_accessor :stream
def initialize stream = nil
@stream = stream
@streaming = false
set source to POSIX path of "/tmp/it.metabox.png"
do shell script "screencapture -i " & source
tell application "Finder"
if exists source as POSIX file then
set response to do shell script "curl -F file=@" & source & " metabox.it"
if response starts with "http" then
set the clipboard to response & ".png"