Skip to content

Instantly share code, notes, and snippets.

James Marca jmarca

Block or report user

Report or block jmarca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jmarca on github.
  • I am jmarca ( on keybase.
  • I have a public key ASDOZyqQNeeNmM1lUq5km8TtJF03Y9sFVzXCr1HoArct1Ao

To claim this, I am signing this object:

jmarca / .block
Last active Apr 6, 2017
Doing the letter fall thing in Elm
View .block
license: GPL-3.0
View index.html
<div class="container">
<header class="site-header">
<a href="#0" class="logo">CalVAD Status</a>
<nav class="site-nav">
<li><a href="#0">downloads</a></li>
<li class="active"><a href="#0">raw processing</a></li>
<li><a href="#0">imputations</a></li>
<li><a href="#0">grid modeling</a></li>
jmarca / agency_redirect.js
Created Sep 21, 2012
test for preserving headers on redirect for superagent
View agency_redirect.js
var express = require('express')
, app = express()
, secapp = express()
, request = require('../../')
, assert = require('assert')
, should = require('should')
, querystring = require('querystring')
, https = require('https');
jmarca / makedir.js
Created Aug 31, 2011
naive way of recursive directory creation in node.js
View makedir.js
/** makedir.js
* How I make directories recursively in node.js
* If you pass it a directory that you want to exist, it will traverse
* the directory tree up until it finds a directory that does exist,
* and then it will go back down the directory structure making all
* directories as needed.
* For example, if you have /home/james and you want to create
* /home/james/node/repository/makedir,
jmarca / copyorref.js
Created Jul 12, 2011
javascript assignment exploration
View copyorref.js
// assignment as copy or reference?
// run in node.js as node copyorref.js
console.log('assignment by value for simple scalars')
var a = 8;
var b = a;
console.log('a: '+a + ', b (not changed): '+b);
console.log('\nassignment by reference: aa[4]=45 is also in other vars')
You can’t perform that action at this time.