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
#!/usr/bin/env ruby | |
module Game2048 | |
class Matrix | |
attr_reader :squares | |
def initialize | |
@prng = Random.new | |
@did_move = false | |
@score = 0 | |
@moves = 0 |
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
# Created by https://www.gitignore.io | |
# Created with the parameters Android, Gradle, IntelliJ, Linux, Windows and OSX | |
# Creation URL for possible updates: https://www.gitignore.io/api/android,gradle,intellij,windows,linux,osx | |
### Android ### | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM |
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 core; | |
import processing.core.*; | |
import SimpleOpenNI.*; | |
public class Test extends PApplet { | |
SimpleOpenNI kinect; | |
int rectx = 240; |
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
require 'uri' | |
require 'resolv' | |
text = File.open("trackers.txt").read.split(/\n|(\r\n)/) | |
hosts = text.map{ |uri| [URI(uri).host, uri] }.to_h | |
resolvs = {} | |
hosts.each do |h, uri| | |
if /\d+\.\d+\.\d+\.\d+/.match(h) | |
resolvs[h] = h |