Skip to content

Instantly share code, notes, and snippets.

@EFox2413
EFox2413 / leaderboard.js.jsx
Last active July 13, 2016 21:50
React leaderboard component of Rails webapp designed for FCC React leaderboard project, uses bootstrap for some CSS. Live version at www.efox.us/leaderboard/show
var Leaderboard = React.createClass({
propTypes: {
recentArr: React.PropTypes.array,
alltimeArr: React.PropTypes.array,
reverseBool: React.PropTypes.bool
},
getDefaultProps: function() {
return {
recentArr: [],
@EFox2413
EFox2413 / leaderboard.js.jsx
Created July 12, 2016 01:17
React leaderboard component of Rails webapp designed for FCC React leaderboard project, uses bootstrap for some CSS
var userData = [];
var userData2 = [];
var reverseBool = false;
var Leaderboard = React.createClass({
getInitialState: function() {
return {data: [], sortBy: '',
url: 'https://fcctop100.herokuapp.com/api/fccusers/top/recent'};
},
// ==UserScript==
// @name initium-plus
// @namespace https://github.com/EFox2413/initiumGrease
// @version 0.0.1.2
// @updateURL https://raw.githubusercontent.com/EFox2413/initiumGrease/master/initium-plus.meta.js
// @downloadURL https://raw.githubusercontent.com/EFox2413/initiumGrease/master/initium-plus.js
// @supportURL https://github.com/EFox2413/initiumGrease/issues
// @match https://www.playinitium.com/*
// @match http://www.playinitium.com/*
// @grant none
// ==UserScript==
// @name Display Stats
// @namespace https://github.com/EFox2413/initiumGrease
// @version 0.1.0
// @updateURL https://gist.githubusercontent.com/EFox2413/658707f6b497488524bb/raw/5a9ffecc2b0047596db41c2ca0684cfcf7691cbb/Display%2520Stats
// @downloadURL https://gist.githubusercontent.com/EFox2413/658707f6b497488524bb/raw/5a9ffecc2b0047596db41c2ca0684cfcf7691cbb/Display%2520Stats
// @description try to take over the world!
// @author EFox2413
// @match https://www.playinitium.com/*
// @grant none
@EFox2413
EFox2413 / Day1
Last active August 29, 2015 13:56
Day 1: Billiards
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=15&page=show_problem&problem=1328
Problem 3
http://fsu.acm.org/documents/spring-11-programming-contest-packet/
submissions
https://gist.github.com/anonymous/8855549
diff --git a/main.ts b/main.ts
index 1778148..2c04212 100644
--- a/main.ts
+++ b/main.ts
@@ -327,15 +327,24 @@ function newSpellList() : Spell[] {
class Player extends Actor {
x : number = 0;
img : heart.HeartImage = null;
+ imgFlip : heart.HeartImage = null;
xp : number = 975;
@EFox2413
EFox2413 / diff.ts
Created July 30, 2013 13:26
why no worky
diff --git a/main.ts b/main.ts
index 1778148..0cb906a 100644
--- a/main.ts
+++ b/main.ts
@@ -327,6 +327,7 @@ function newSpellList() : Spell[] {
class Player extends Actor {
x : number = 0;
img : heart.HeartImage = null;
+ imgFlip : heart.HeartImage = null;
xp : number = 975;
@EFox2413
EFox2413 / main.ts
Created July 30, 2013 13:16
why no work
// Base tile interface. All tiles implement this.
interface Tile {
getImage() : heart.HeartImage;
isSolid() : bool;
}
class Wall implements Tile {
getImage() { return tile_top; }
isSolid() { return true; }
package hackThisSite2;
import java.io.*;
import java.awt.image.*;
class Mission2 {
public static void main(String[] args) {
BufferedImage img = null;
try {
img = javax.imageio.ImageIO.read(new File("C:\\Users\\Fox\\Downloads\\mission2.png"));
public void permutate(String beginning, String input){
if(input.length() == 1){
System.out.println(beginning + input);
}
else
for(int i = 0; i < input.length(); i++){
permutate(beginning + input.charAt(i), input.substring(0,i) + input.substring(i + 1));
}
}