Skip to content

Instantly share code, notes, and snippets.

@bdss58
bdss58 / copy.js
Last active November 29, 2015 03:31
nodejs copy file
'use scrict';
var fs = require('fs');
var stat = fs.stat;
function copy(src, dest){
fs.readdir(src, function(err, paths) {
if (err) {
console.log(err);
throw err;
@bdss58
bdss58 / hashmap_h
Created April 14, 2015 15:12
hashmap header file
#ifndef HASHMAP_H
#define HASHMAP_H
/*
* Generic implementation of hash-based key-value mappings.
* See Documentation/technical/api-hashmap.txt.
*/
/* FNV-1 functions */