Skip to content

Instantly share code, notes, and snippets.

Avatar

<script>alert('test')</script> ozmm

View GitHub Profile
@ozmm
ozmm / gitio.rb
Created Oct 17, 2012 — forked from defunkt/gitio
Turn a github.com URL into a git.io URL.
View gitio.rb
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard.
url = ARGV[0]
code = ARGV[1]
View binary.html
<!-- http://emilsblog.lerch.org/2009/07/javascript-hacks-using-xhr-to-load.html -->
<html>
<head>
<script language="vbscript">
Function BinaryArrayToAscCSV( aBytes )
Dim j, sOutput
sOutput = "BinaryArrayToAscCSV"
For j = 1 to LenB(aBytes)
sOutput= sOutput & AscB( MidB(aBytes,j,1) )
sOutput= sOutput & ","