Skip to content

Instantly share code, notes, and snippets.

View itsbth's full-sized avatar

Bjørn Tore Håvie itsbth

View GitHub Profile
@itsbth
itsbth / tryjsil.cs
Created March 28, 2013 23:56 — forked from TryJSIL/tryjsil.cs
Unsafe Code Test
using System;
public static class Program {
public static unsafe void Main (string[] args) {
var ints = new int[] { 0, 1, 2, 3 };
fixed (int* pInts = ints) {
var pBytes = (byte*)pInts;
for (var i = 0; i < (ints.Length * 4); i++)
@itsbth
itsbth / crack.rb
Created January 3, 2012 20:18 — forked from anonymous/crack.rb
#!/usr/bin/env ruby
if ?A.is_a? String
ab = (?A..?Z).to_a
else
ab = (?A..?Z).map {|c| c.chr}
end
n = $<.readline.to_i
str = $<.read
puts str.split('').map {|oc| c = oc.upcase; if ab.include? c then r = ab[(ab.index(c) - n) % ab.length]; c == oc ? r : r.downcase else c end }.join
---
- API
- AbandonQuest
- AbandonSkill
- AcceptAreaSpiritHeal
- AcceptArenaTeam
- AcceptBattlefieldPort
- AcceptDuel
- AcceptGroup
- AcceptGuild