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 <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() |
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
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 |
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 <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 |
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
#=============================================================================# | |
# 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 |
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 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.
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 math | |
from enum import Enum | |
class Block(Enum): | |
upperShell = 1 | |
lowerShell = 2 | |
upperInterior = 3 | |
lowerInterior = 4 | |
upperInnerShell = 5 | |
lowerInnerShell = 6 |
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
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 |
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
# | |
# Minecraft Recipe Calculator | |
# by Skyyrunner (fluffyterran at gmail dot com) | |
# | |
import json | |
import fractions | |
from pprint import pprint | |
import sys |
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
"use strict"; | |
document.addEventListener("DOMContentLoaded", init); | |
var melody = [ | |
["C5","2n"], | |
["E5","2n"], | |
["G5","2n"], | |
["E5","2n"], | |
["C5","1n"] |
OlderNewer