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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"log" | |
"os" | |
"io/ioutil" | |
"encoding/json" | |
b64 "encoding/base64" |
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
// An example of how to bind a C++ class in four scripting languages: lua, squirrel, mruby, and angelscript. | |
// Written by James S Urquhart ( http://www.cuppadev.co.uk/ ). Feel free to experiment! | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <assert.h> | |
// Lua includes | |
extern "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
## | |
# Calendar helper with proper events | |
# http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/ | |
# | |
# (C) 2009 James S Urquhart (jamesu at gmail dot com) | |
# Derived from calendar_helper | |
# (C) Jeremy Voorhis, Geoffrey Grosenbach, Jarkko Laine, Tom Armitage, Bryan Larsen | |
# Licensed under MIT. http://www.opensource.org/licenses/mit-license.php | |
## | |
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
/* | |
Reverse Engineered MarbleBlast Marble class attempt | |
TODO: pretty much everything | |
*/ | |
class MarbleData : public ShapeBaseData | |
{ | |
private: | |
typedef ShapeBaseData Parent; |
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
// | |
// Generate DTMF tones | |
// | |
#include <stdio.h> | |
#include <math.h> | |
float OutData[44100]; | |
typedef struct ToneInfo { |
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
# Decrypts and prints a rudimentary decompilation of onverse script files | |
# Usage: ruby decrypt_onverse.rb in.cs | |
# | |
require 'json' | |
$is_encrypted = true | |
def decrypt_data(size, data) | |
if !$is_encrypted | |
return data |
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
// Creating CSS Animations dynamically | |
// - jamesu | |
// | |
// Assuming: | |
// - styleSheets[0] is the main stylesheet | |
// - frames[] is a list of translation,rotation,scale keyframe values | |
// Note: | |
// If you modify an existing animation, the old keyframes | |
// will continue being used until you re-assign the animation. |
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
#!/bin/sh | |
formail -D 100000000 idcache < $1 -s > $1_new |
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
<?xml version="1.0" encoding="utf-8"?> | |
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> | |
<Type Name="Vector<*>"> | |
<DisplayString>{{ size={mElementCount} }}</DisplayString> | |
<Expand> | |
<Item Name="[size]" ExcludeView="simple">mElementCount</Item> | |
<Item Name="[capacity]" ExcludeView="simple">mArraySize</Item> | |
<ArrayItems> | |
<Size>mElementCount</Size> | |
<ValuePointer>mArray</ValuePointer> |
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
# Script to generate cryptokitty images using assets from: | |
# https://github.com/BytesForBites/cryptokitty-designer | |
# NOTE: requires imagemagick built with --with-librsvg | |
require 'rubygems' | |
require 'rmagick' | |
require 'digest' | |
class KittyGen |