Skip to content

Instantly share code, notes, and snippets.

View RX14's full-sized avatar

Stephanie Wilde-Hobbs RX14

View GitHub Profile
@RX14
RX14 / 1.yml
Created January 24, 2015 19:32
series:
- Tokyo Ghoul:
seasons:
- 2: "Tokyo Ghoul Root A"
secrets: secrets.yml
templates:
global:
parsing:
series: guessit
torrent:
transmission:
host: localhost
# Ignore everything
/*
#except:
# Source
!/src/
# Readme
!/README
<RX14-chibi> http://i.imgur.com/oVzmIhp.png
<RX14-chibi> http://i.imgur.com/6MPYP7Z.png
<RX14-chibi> http://i.imgur.com/XfEKUkD.png
<RX14-chibi> http://i.imgur.com/Dc8ZoXJ.png
<RX14-chibi> http://i.imgur.com/TwU1UKJ.png
<RX14-chibi> http://i.imgur.com/PjpiqoG.png
<RX14-chibi> http://i.imgur.com/EX2v4Mf.png
@RX14
RX14 / 1.java
Created February 6, 2015 23:43
public Dependency[] getDependencies() {
return Arrays.asList(
new MavenDependency("com.nova:NovaThingy:1.5"),
new URLDependency("http://github.com/My/Project/release/wahtever")
)
}
package nova.core.deps;
import java.net.URL;
/**
* //TODO
*
* @author rx14
*/
public interface Dependency {
// just to close the streams...
try (ReadableByteChannel channel = Channels.newChannel(connect.getInputStream());
FileOutputStream outStream = new FileOutputStream(outFile))
{
outStream.getChannel().transferFrom(channel, 0, Long.MAX_VALUE);
outStream.flush();
}
require "bundler"
require "open-uri"
require "json"
require "benchmark"
Bundler.require
def parse_link_xml(link_xml)
link = {}
link[:type] = link_xml.text
console.log('Loading event');
var url = require("url");
var http = require("http");
exports.handler = function(event, context) {
var body = JSON.stringify(event.body);
event.handlers.forEach(function(handler) {
var thisURL = url.parse(handler.url);
@RX14
RX14 / gradle-domain-debug.rb
Created March 10, 2015 19:14
gradle-domain-debug.rb
#!/usr/bin/env ruby
#USAGE: ./gradle-domain-debug.rb <gradle --debug log file>
#EXAMPLE: ./gradle-domain-debug.rb .gradle/gradle.log
require "uri"
require "time"
file = File.new(ARGV[0])
results = []