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
/// <summary> | |
/// A <see cref="Lazy"/> object that implements <see cref="IDisposable"/>. | |
/// </summary> | |
/// <typeparam name="T"> | |
/// The object being lazily created. | |
/// </typeparam> | |
public class LazyDisposable<T> : Lazy<T>, IDisposable where T: IDisposable | |
{ | |
/// <summary> |
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 math | |
import scipy.optimize | |
''' | |
This script attempts to predict how Git's popularity will increase | |
over the next few years by extrapolating the results of the annual | |
Eclipse Community Survey. | |
The forecast assumes that Git adoption is following an S-curve | |
(http://en.wikipedia.org/wiki/Sigmoid_function) up to an asymptotic |
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
var child_process = require('child_process'); | |
function install(modules, callback) { | |
if (modules.length == 0) { | |
if (callback) callback(null); | |
return; | |
} | |
var module = modules.shift(); | |
child_process.exec( | |
'npm install ' + module, |
NewerOlder