Skip to content

Instantly share code, notes, and snippets.

View skairunner's full-sized avatar

Skye Im skairunner

View GitHub Profile
#include <iostream>
using namespace std; // USING NAMESPACE SEXUALLY TRANSMITTED DISEASE
int doubleNumber(int x) // HOLY SHIT I WROTE A FUNCTION I AM AWESOME
{
return x * 2; // DOUBLE THAT GOD DAMN NUMBER
}
int main()
@skairunner
skairunner / stdout
Created January 8, 2014 14:52
output
from pybrain.structure import FeedForwardNetwork
from pybrain.structure import LinearLayer, SigmoidLayer
from pybrain.structure import FullConnection
from pybrain.datasets import ClassificationDataSet
from pybrain.utilities import percentError
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.structure.modules import SoftmaxLayer
import time
#include <random>
#include <time.h>
#include <iostream>
// Source: http://www.cplusplus.com/reference/random/
// Source: http://en.cppreference.com/w/cpp/numeric/random
int main()
{
// Starting up the rng
@skairunner
skairunner / eclecticgen
Created February 4, 2014 10:13
Dieharder test results, mt19937 vs EclecticGen
#=============================================================================#
# dieharder version 3.31.1 Copyright 2003 Robert G. Brown #
#=============================================================================#
rng_name | filename |rands/second|
file_input_raw| eclectic.txt| 1.96e+07 |
#=============================================================================#
test_name |ntup| tsamples |psamples| p-value |Assessment
#=============================================================================#
diehard_birthdays| 0| 100| 100|0.00000000| FAILED
diehard_operm5| 0| 1000000| 100|0.18539163| PASSED
import cairo
import math
w = 2000
h = 2000
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h)
ctx = cairo.Context(surface)
ctx.scale(w, h)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skairunner
skairunner / blockcircle.py
Last active August 29, 2015 13:59
gen.py and mcworldgen
import math
from enum import Enum
class Block(Enum):
upperShell = 1
lowerShell = 2
upperInterior = 3
lowerInterior = 4
upperInnerShell = 5
lowerInnerShell = 6
Name Classification Tier Active Passive
Solar class battleship 7 Majesty (toggle) Looks exceptionally majestic. False Gravity Well All ships (including allies, excluding self) cannot run when under 50% HP.
Venus class carrier 7 Pitstop A Rapier or Erinies may give up its action and instead be fully repaired and restocked. Fighter Hangar Bays Can carry up to 12 Rapiers and 2 Erinies.
Pelsk class battlecruiser 6 - - Blaze of Glory When this ship is destroyed, deal 40 damage to a random enemy ship.
Vanguard class cruiser 5 - -
Zakharov class cruiser 5 Mine the Waters Drop a Mine in a sector. It explodes to deal 10 damage to 5 ships, or 50 damage to 1. One Zakharov only carries 3 mines at a time. Scrap collection For every 4 damage dealt, heal 1. Scrambling Device
Amelia class supply 5 Active Camo (toggle) Each turn, burn 1 fuel. Cannot be targetted. Nanobot Swarm Each turn, heal all friendly ships by 2.
Havoc class frigate 4 - -
Thunderlance class destroyer 4 - Disintegration Beam Each time this s
@skairunner
skairunner / calculate.py
Created January 14, 2016 18:45
minecraft recipe calculator
#
# Minecraft Recipe Calculator
# by Skyyrunner (fluffyterran at gmail dot com)
#
import json
import fractions
from pprint import pprint
import sys
@skairunner
skairunner / composition.js
Created September 13, 2016 07:17
Code of Music: Simple composition
"use strict";
document.addEventListener("DOMContentLoaded", init);
var melody = [
["C5","2n"],
["E5","2n"],
["G5","2n"],
["E5","2n"],
["C5","1n"]