I'm setting up a new Mac. I'm using this Gist to keep track of the software I install (roughly in order, in case it's useful later.
This file contains hidden or 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
var gulp = require('gulp'); // Gulp! | |
var sass = require('gulp-sass'); // Sass | |
var prefix = require('gulp-autoprefixer'); // Autoprefixr | |
var minifycss = require('gulp-minify-css'); // Minify CSS | |
var concat = require('gulp-concat'); // Concat files | |
var uglify = require('gulp-uglify'); // Uglify javascript | |
var svgmin = require('gulp-svgmin'); // SVG minify | |
var imagemin = require('gulp-imagemin'); // Image minify | |
var rename = require('gulp-rename'); // Rename files |
This file contains hidden or 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
// A global file to provide the countries and cities | |
exports.countries = [{ | |
name: 'Australia', | |
cities: ['Melbourne', 'Sydney', 'Canberra'] | |
}, { | |
name: 'España', | |
cities: ['Madrid', 'Barcelona', 'Sevilla'] | |
}, { | |
name: 'Italia', |
This is an example of how to scaffold API endpoints to list / get / create / update / delete Posts in a Keystone website.
It's a modification of the default project created with the yo keystone
generator (see https://github.com/JedWatson/generator-keystone)
Gists don't let you specify full paths, so in the project structure the files would be:
routes-index.js --> /routes/index.js // modified to add the api endpoints
routes-api-posts.js --> /routes/api/posts.js // new file containing the Post API route controllers
This file contains hidden or 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
@mixin no-select { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
This file contains hidden or 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
## Markus Gesmann, February 2012 | |
## This R script requires the googleVis package, | |
## a browser with Flash and an Internet connection. | |
gvisWeeklyStockData <- function(tckr = "AAPL", | |
chartid ="Apple", | |
start.year=1984){ | |
require(googleVis) | |
d <- Sys.time() |
NewerOlder