brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/
is a symlink to /usr/local/Cellar/mongodb/x.y.z
(e.g., 2.4.9
)
// This is from my comment here: http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-2#comment-466561 | |
/* | |
* How to delete items from an Array in JavaScript, an exhaustive guide | |
*/ | |
// DON'T use the delete operator, it leaves a hole in the array: | |
var arr = [4, 5, 6]; | |
delete arr[1]; // arr now: [4, undefined, 6] |
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/*! ======================================================================== | |
PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS | |
--------------------------------------------------- | |
Indrek Paas @indrekpaas |
import path from 'path'; | |
import webpack from 'webpack'; | |
import merge from 'lodash.merge'; | |
const DEBUG = !process.argv.includes('--release'); | |
const VERBOSE = process.argv.includes('--verbose'); | |
const WATCH = global.WATCH === undefined ? false : global.WATCH; | |
const AUTOPREFIXER_BROWSERS = [ | |
'Android 2.3', | |
'Android >= 4', |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
(* | |
File: OmniFocus_Due_List.scpt | |
Revision: 1.0 | |
Revised: 2015-07-01 | |
Summary: Create taskpaper list of tasks due +/- 7d from current date. | |
----------------------------------------------------------- | |
Script based on Justin Lancy (@veritrope) from Veritrope.com |
<!-- Live demo : http://bl.ocks.org/1213727 --> | |
<html> | |
<head> | |
<title>Un affichage de numéro vert avec Microformat et mise en forme en CSS</title> | |
<link rel="stylesheet" media="all" href="numero_vert.css" type="text/css" /> | |
</head> | |
<body> | |
<span class="vcard numerovert"> | |
<span class="fn">Nom de la société</span> |
At the time of writing, Hazel's default date attributes all refer to an image file's creation date rather than the date on which the photo was originally taken. The two dates may differ.
This script provides a custom date attribute reflecting the time the photo was actually taken. As written, it's intended to be added as an embedded script in a "Run JavaScript" rule action, so that it's custom attribute can be used in subsequent "Sort into subfolder" patterns.
The date this script exposes is obtained via sips -g creation [filename]
. It's not clear to me exactly which EXIF attribute the sips "creation" property comes from, but it seems reasonable to assume it's either DateTimeOriginal
or DateTimeDigitized
.