This file contains hidden or 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
struct Fibonacci { | |
cur: i32, | |
prev: i32, | |
} | |
//! Problem 2 of the Euler project | |
impl Iterator for Fibonacci { | |
type Item = i32; | |
This file contains hidden or 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
//! 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)); | |
} |
This file contains hidden or 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
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) |
This file contains hidden or 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 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 |
NewerOlder