Skip to content

Instantly share code, notes, and snippets.

View pingiun's full-sized avatar

Jelle Besseling pingiun

View GitHub Profile
@pingiun
pingiun / p002.rs
Created August 7, 2015 20:10
Problem 2 of the Euler project
struct Fibonacci {
cur: i32,
prev: i32,
}
//! Problem 2 of the Euler project
impl Iterator for Fibonacci {
type Item = i32;
@pingiun
pingiun / p001.rs
Created August 7, 2015 19:24
Problem 1 of the Euler project
//! Problem 1 of the Euler project
fn main() {
println!("{}", (1..1000).filter(|x| (x % 3 == 0 || x % 5 == 0)).fold(0, |a,b| a+b));
}
Promise = require('bluebird')
Promise.longStackTraces();
fs = require('fs')
Promise.promisifyAll(fs);
youtube = require('./youtube')
ffmpeg = require('fluent-ffmpeg')
ffmetadata = require('ffmetadata')
Promise.promisifyAll(ffmetadata)
mb = require('musicbrainz')
Promise.promisifyAll(mb)
@pingiun
pingiun / geturls.py
Created May 9, 2014 21:12
This is a simple python program that allows you to input a list of video names and automatically search all those videos on YouTube and get the YouTube urls
#!/usr/bin/env python
# geturls.py by Jelle Besseling
# This file is licenced under the MIT Licence (MIT)
# The MIT License (MIT)
# Copyright (c) 2014 Jelle Besseling
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal