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
package wlhacknight | |
import scala.io.Source | |
import java.io.File | |
import java.util.Arrays | |
import scala.collection.mutable.ArrayBuffer | |
import scala.collection.immutable.HashMap | |
/** | |
* Alice in Markov Chains for West London Hack Night |
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
package spotifybox | |
import java.net.HttpURLConnection | |
import java.net.URI | |
import java.net.URL | |
import scala.io.Source | |
import scala.xml.XML | |
import java.net.URLEncoder | |
object SpotifyBox extends App { |
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
package javascratch; | |
import java.awt.Graphics; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import java.awt.event.WindowStateListener; | |
import java.awt.image.BufferedImage; | |
import java.awt.image.Raster; | |
import java.awt.Color; | |
import java.util.Arrays; |
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 javax.sound.midi.ShortMessage | |
import javax.sound.midi.Synthesizer | |
import javax.sound.midi.Receiver | |
import javax.sound.midi.MidiSystem | |
import javax.sound.midi.MidiChannel | |
import javax.sound.midi.MidiMessage | |
import scala.swing._ | |
import scala.swing.event._ | |
import scala.util.Random | |
import javax.sound.midi.Instrument |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
#define HASHMASK 0xFFFF | |
uint64_t hash(const char* key, uint64_t seed) | |
{ |
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
package soundex | |
import scala.io.Source | |
import java.io.File | |
import scala.util.Random | |
object SoundexHack extends App { | |
val dictWords = Source.fromFile(new File("/usr/share/dict/words")).getLines.toList | |
val dict = dictWords.groupBy(x => soundex(x)) |
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
package langtonsant | |
import scala.annotation.tailrec | |
import scala.collection.immutable.Map | |
object Ants extends App { | |
val columnNb = 80 | |
val rowNb = 80 |
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
package csssprite; | |
import java.awt.Rectangle; | |
import java.awt.image.BufferedImage; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.ArrayList; |
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
package stuff | |
import scala.io.Source | |
import scala.util.Random | |
import twitter4j.TwitterFactory | |
import twitter4j.Query | |
import twitter4j.conf.Configuration | |
import twitter4j.auth.AuthorizationConfiguration | |
import twitter4j.auth.AccessToken | |
import scala.collection.JavaConversions._ |
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
package main | |
import ( | |
"net/http" | |
"net/url" | |
"io/ioutil" | |
"encoding/xml" | |
// "fmt" | |
"math/rand" | |
"strings" |
OlderNewer