Skip to content

Instantly share code, notes, and snippets.

@bmiles
bmiles / asc2csv.js
Created May 21, 2014 15:44
small JS that finds and replaces tabs with a comma and renames the file to csv from asc.
var fs = require('fs');
var filePath = process.argv[2];
console.log(filePath);
fs.readFile(filePath, function (err, data) {
if (err) {
return console.log(err);
}
var newFilePath = filePath.replace(/asc/g, 'csv');
@bmiles
bmiles / gist:36552527abec01a8a6bf
Created May 11, 2014 09:02
error when issuing ./configure
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
loading site script './config.site'
loading build-specific script './config.site'
checking for pwd... /bin/pwd
checking whether builddir is srcdir... yes
checking for working aclocal... found
checking for working autoconf... missing
checking for working automake... found
checking for working autoheader... missing
@bmiles
bmiles / gist:42f979d079f2be7f266e
Created May 10, 2014 12:06
r install gfortran issue
➜ ~ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: cdec40e4cab0768084c92d9732295a7e337c39be
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
require 'httparty'
require 'json'
require 'nokogiri'
require 'open-uri'
#
# This is a shart script to get demo content to populate an inial set of 'science gists'
# We started by trying to call the elife api directly, but it sucked balls
# then we tried to use content negotiation, but that is also flakey
#titleBlock {
background-color: rgb(26, 188, 156);
width: 100%;
height: 250px;
padding: 15px;
}