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
// WASM-4: https://wasm4.org/docs | |
// ┌───────────────────────────────────────────────────────────────────────────┐ | |
// │ │ | |
// │ Platform Constants │ | |
// │ │ | |
// └───────────────────────────────────────────────────────────────────────────┘ | |
pub const CANVAS_SIZE: u32 = 160; |
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 sbt._ | |
import Keys._ | |
import java.net._ | |
import java.io.File | |
import play.PlayRunHook | |
/* | |
Grunt runner should be in project directory to be picked up by sbt | |
*/ | |
object Grunt { |
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
### Keybase proof | |
I hereby claim: | |
* I am freiguy1 on github. | |
* I am freiguy1 (https://keybase.io/freiguy1) on keybase. | |
* I have a public key whose fingerprint is E01F 9B01 451F 6626 159C C6DB 66F5 87C6 1E2C 53CC | |
To claim this, I am signing this object: |
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
fn generate_roundrobin(teams: &Vec<IdAndName>) -> Vec<Vec<(&IdAndName, &IdAndName)>> { | |
let static_team: &IdAndName = &teams[0]; | |
let mut other_teams: Vec<&IdAndName> = teams.iter().skip(1).collect(); | |
let mut result: Vec<Vec<(&IdAndName, &IdAndName)>> = Vec::new(); | |
for _ in range(0u, teams.len() - 1) { | |
let mut session: Vec<(&IdAndName, &IdAndName)> = Vec::new(); | |
session.push((other_teams[0], static_team)); | |
for i in range(0u, (other_teams.len() - 1) / 2) { |
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
/* | |
********************UTILITY********************* | |
*/ | |
var Ajaxable = function(url){ | |
this.create = function(newObject, onDone, onFail) { | |
$.ajax({ | |
type: "POST", | |
url: "/api/" + url, | |
data: JSON.stringify(newObject), |