Skip to content

Instantly share code, notes, and snippets.

@AlexNisnevich
AlexNisnevich / Tips
Last active January 4, 2016 13:08
RailsBridge tips [ http://git.io/WCKhtA ]
Thanks for coming to RailsBridge!!
If you have any questions at any time, feel free to email us at
alex [dot] nisnevich [at] gmail [dot] com
markmillan [at] gmail.com
lindseysugino [at] gmail.om
Resources
=========
@AlexNisnevich
AlexNisnevich / Sound Effects
Created August 25, 2014 10:43
I think these are all the sound effects?
General effects:
- jump
- fall off screen
- get key and move to next level
- overlay world (maybe different for each world type?)
Zombie world:
- zombie growl
- player killed by barbed wire
- player killed by zombie
@AlexNisnevich
AlexNisnevich / request_example.rs
Created October 7, 2014 02:07
JSON requests with rust-http
extern crate serialize;
extern crate http;
extern crate url;
use std::string::String;
use serialize::json;
use serialize::json::Json;
use serialize::json::ToJson;
use http::client::RequestWriter;
use http::headers::content_type::MediaType;
@AlexNisnevich
AlexNisnevich / shuffle.elm
Last active February 13, 2017 15:07
Shuffling a list in Elm
import List
import Random
without : Int -> [a] -> [a]
without i arr =
let before = take i arr
after = drop (i+1) arr
in
before ++ after
findColumn : Location -> Board -> [Location]
findColumn (x,y) board = (findAbove (x,y) board) ++ (findBelow (x,y) board)
findAbove : Location -> Board -> [Location]
findAbove (x,y) board =
if Dict.member (x,y+1) board
then [(x,y)] ++ findAbove (x,y+1) board
else [(x,y)]
{
"nodes": [
{
"id": "Markus_Stenz"
},
{
"id": "Erik_Bergman"
},
{
"id": "William_Blezard"