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 Unicode < Formula | |
desc "Display Unicode character properties" | |
homepage "https://github.com/garabik/unicode" | |
version "2.4" | |
url "https://github.com/garabik/unicode/archive/v#{version}.tar.gz" | |
sha256 "0e3dbf8ae9b136e1799d3ed59628d2908cd89cf4ee8f3a8277d5cffc6e12e8e4" | |
# Python 2 has somewhat brain-dead Unicode behavior | |
depends_on :python3 |
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/env python | |
from __future__ import print_function | |
import re | |
import sys | |
import subprocess | |
from datetime import datetime | |
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
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <Security/Security.h> | |
// Compile with: | |
// gcc -o ourpath -framework CoreFoundation -framework Security main.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
#include <stdio.h> | |
#include <windows.h> | |
int main(void) { | |
int ctr = 0; | |
int i; | |
for( i = 0; ; i++ ) { | |
void* ret = VirtualAllocEx( |
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 clear = function(){ | |
var names = {}; | |
var count = 0; | |
var tds = document.querySelectorAll('div#actualscores td'); | |
for( var i in tds ) { | |
var text = tds[i].innerText; | |
if( text !== undefined && !text.match(/^[\d ,]+$/) ) { | |
var newText = text.split(', '). |
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
#include <stdio.h> | |
#include <stdlib.h> | |
// Define me for interactivity! | |
//#define DEBUG | |
void print_matrix(int* matrix, int x, int y) { | |
int i, j; | |
for( i = 0; i < y; 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
import time | |
import random | |
import subprocess | |
SNARK_CHANCE = 0.5 | |
MAX_PRIME = 100 | |
snark = [ | |
'Are you kidding me?', | |
'Not yet, really?', |
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/env python | |
import sys | |
from SocketServer import ThreadingMixIn, ForkingMixIn | |
from BaseHTTPServer import HTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
class ThreadingSimpleServer(ThreadingMixIn, HTTPServer): | |
pass | |
class ForkingSimpleServer(ForkingMixIn, HTTPServer): |
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/env ruby | |
require 'logger' | |
require 'optparse' | |
require 'rubygems' | |
require 'net/http' | |
require 'net/https' | |
require 'json' | |
@log = Logger.new(STDERR) |
NewerOlder