==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
exports:2: path contains non-directory or non-existent components: /Users/<username>/path/to/vagrant
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
- Install SIMBL http://culater.net/software/SIMBL/SIMBL.php
- Copy SpotlightSIMBL.bundle to /Library/Application Support/SIMBL/Plugins/ (a)
- Copy Flashlight.osax to ~/Library/ScriptingAdditions/ (b)
- Disable Flashlight
- Enable Flashlight
- Open Script Editor on your Mac (look for "Script Editor In Spotlight") and paste the following code (don't change Snow Leopard for Yosemite)
tell application "Spotlight" to inject SIMBL into Snow Leopard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will transplie our code using babel and evaluates it using node.js | |
# | |
# Steps: | |
# 1) Install babel globally: | |
# npm install -g babel-cli | |
# or | |
# yarn global add babel-cli | |
# 2) Create a new language in Coderunner preferences (eg. Javascript (Babel)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
void main() { | |
var url = 'https://a.wunderlist.com/api/v1/'; | |
var client_id = 'blabla'; | |
var client = new http.Client(); | |
client.post(url + "authenticate", body: { | |
"email": "[email protected]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var del = require('del'); | |
var uglify = require('gulp-uglify'); | |
var gulpif = require('gulp-if'); | |
var exec = require('child_process').exec; | |
var notify = require('gulp-notify'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"css": { | |
"abbreviations": { | |
"mqm": "@media screen and (min-width:${1}) {\n\t|\n}", | |
"mqx": "@media screen and (max-width:${1}) {\n\t|\n}" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove the ajax-processed class from the element so that | |
// attachBehaviors() will update the element | |
$('#my-element-id').removeClass('ajax-processed'); | |
// now re-attach the behaviors to this element | |
Drupal.attachBehaviors($('#my-element-id')); |