Skip to content

Instantly share code, notes, and snippets.

$ RUST_LOG=trace cargo install seed
[2019-01-27T10:13:39Z DEBUG cargo::sources::config] loading: registry `https://github.com/rust-lang/crates.io-index`
[2019-01-27T10:13:39Z TRACE cargo::core::source::source_id] loading SourceId; registry `https://github.com/rust-lang/crates.io-index`
[2019-01-27T10:13:39Z DEBUG cargo::sources::registry::remote] updating the index
[2019-01-27T10:13:39Z TRACE cargo::sources::registry::remote] opened a repo without a lock
Updating crates.io index
[2019-01-27T10:13:39Z DEBUG cargo::sources::git::utils] attempting GitHub fast path for https://github.com/rust-lang/crates.io-index
[2019-01-27T10:13:41Z DEBUG cargo::sources::git::utils] fast path failed, falling back to a git fetch
[2019-01-27T10:13:41Z DEBUG cargo::sources::git::utils] skipping gc as there's only 27 pack files
{
"name": "reason-cli",
"version": "1.7.3",
"dependencies": {
"abbrev": {
"version": "1.1.0",
"from": "abbrev@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz"
},
"ajv": {
function benchmark( times, fn ) {
var start = performance.now()
for( var i = 0; i < times; i++ ) {
fn();
}
return ( performance.now() - start ) / times;
}
import * as https from 'https';
async function fetchHeaders( url: string ) {
return new Promise( ( resolve, reject ) => {
https.get( url, response => {
resolve( response.headers );
} );
} );
}
@jordwest
jordwest / Makefile
Created April 20, 2015 06:23
Simple front-end builds with Makefiles
# Specify directories under /client/src to be copied directly
COPYDIRS = lib img
client: copy client/build/js/app.js client/build/css/app.css
clean:
rm -Rf client/build
rebuild: clean client
@jordwest
jordwest / bcd2number.js
Last active December 31, 2015 19:09 — forked from joaomaia/bcd2number.js
/**
* bcd2number -> takes a nodejs buffer with a BCD and returns the corresponding number.
* @param buffer The node.js Buffer object
* @param offset The byte offset in the buffer where the BCD starts
* @param length The number of bytes to read (a single byte represents 2 digits)
* @return number
*/
var bcd2number = function(buffer, offset, length)
{
var n = 0;
<html>
<head>
<title>This is the title of the page</title>
</head>
<body>
<h1>This is the biggest heading</h1>
<h2>This is the second biggest heading</h2>