Skip to content

Instantly share code, notes, and snippets.

View EtherTyper's full-sized avatar

ELI JOSEPH BRADLEY EtherTyper

  • Private Proxy
View GitHub Profile
@EtherTyper
EtherTyper / 0_reuse_code.js
Created February 3, 2016 20:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EtherTyper
EtherTyper / unit-1.rb
Last active February 10, 2016 18:42
Some codecademy thing I was doing...
print "What's your first name?"
first_name = gets.chomp
first_name.capitalize!
print "What's your last name?"
last_name = gets.chomp
last_name.capitalize!
print "What's your city name?"
city = gets.chomp
city.capitalize!
print "What's your State code?"
public class javirus{
public void main(String[] args){
System.out.println("Running virus.exe\n");
for (int i=1; i<=10; i++){
System.out.println(i+"0\n");
if (i==7)
System.out.println("Libraries acquired.");
}
System.out.println("JK this is a java virus, not .NET\n\nYou're still screwed, though.");
}
@EtherTyper
EtherTyper / app.kt
Last active March 2, 2016 23:59
My first real Kotlin app!
/**
* Created by pigmasterisawesome on 3/2/16.
*/
class app {
init {
println("HELLO KOTLIN!")
}
}
fun main(args: Array<String>){
if (args.isEmpty()) return
@EtherTyper
EtherTyper / hackathon.md
Created March 5, 2016 00:37 — forked from karalabe/hackathon.md
Gopher Gala - Ether APIs

Gopher Gala - Ether APIs

This document intends to be kind of an outline as to what we'd like to do for the Gopher Gala hackathon. The idea behind it is to gather and polish our ideas a bit so that we don't run around like some headless chickens durng the weekend, but rather have a solid approach as to what and how we'd like to accomplish.

I chose a GitHub gist as the medium for this document mainly because it's simple to write using all the features of markdown and because we can move it into the Gopher Gala repo when the hackathon starts. Feel free to fork it and modify any parts and I'll merge them in straight away, this extra step is really only needed as long as we need to keep this document private.

Timeline

First thing's first, the timeline of the hackathon is 48 hours, starting at Janaury 22 at 5pm PST (that's 01:00 UTC on January 23). Or to put it another way:

contract ForumSite{
struct message{
string title;
string content;
int replyTo;
uint8[3] replies;
}
mapping (uint=>message) chain;
uint pos;
function ForumSite(string title_, string message_){
@EtherTyper
EtherTyper / multisig.js
Created March 24, 2016 18:33 — forked from anonymous/Untitled
Multisig wallet, very useless
contract multisig{
struct tx{
address to;
uint amount;
mapping (address => bool) approved;
}
uint nextId=0;
mapping (uint => tx) txBook;
address[] owners;
function multisig(address[] _owners){
@EtherTyper
EtherTyper / icon_MPC.svg
Last active April 2, 2016 16:10
Meta PyCharm Beta - The logo for my new IDE!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@EtherTyper
EtherTyper / www.youtube.com--app=desktop(Nexus 5X).png
Last active May 4, 2016 16:27
Material Design compliant Youtube on Chrome Canary's Nexus 5X simulator
www.youtube.com--app=desktop(Nexus 5X).png
@EtherTyper
EtherTyper / freemovies.sh
Created June 6, 2016 14:41
4.5 GB of free movies on your computer
#!/bin/bash
head -c 4718592 /dev/urandom > \
~/MyMovie.mp3