-
Download JDK 7 for OS X x64 and follow the installation wizard.
-
Add
JAVA_HOMEto env variables in .bash_profile, .bashrc or .zshrcexport JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home' -
Add
java_homealias to .bash_profile, .bashrc or .zshrcalias java_home='/usr/libexec/java_home'
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
| #! /bin/sh | |
| function help () { | |
| echo "jazz - A simple script that makes using the Jasmine testing framework in a standalone project a little simpler." | |
| echo "" | |
| echo " jazz init - include jasmine in the project"; | |
| echo " jazz create FunctionName - creates ./src/FunctionName.js ./spec/FunctionNameSpec.js"; | |
| echo " jazz run - runs tests in browser"; | |
| } |
-
Download Oracle InstantClient basic, sqlplus, and SDK packages
instantclient-basic-macos.x32-11.2.0.4.0.zip instantclient-sqlplus-macos.x32-11.2.0.4.0.zip instantclient-sdk-macos.x32-11.2.0.4.0.zip -
Extract files and rename directory, if desired
/instantclient
|
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
| on run {} | |
| activate application "Microsoft Outlook" | |
| tell application "Microsoft Outlook" | |
| set selected folder to folder "Archive" | |
| end tell | |
| tell application "System Events" | |
| keystroke "f" using {option down, command down} | |
| end tell | |
| end run |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
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
| 'use strict'; | |
| var gulp = require('gulp'), | |
| gp = require('gulp-load-plugins')(), | |
| wiredep = require('wiredep').stream, | |
| bs = require('browser-sync').create(), | |
| reload = bs.reload; | |
| // lint js with jshint, combine all files into one, | |
| // write a minified and unminified version of file |
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
| npm install -g sails | |
| sails new someAppName && cd someAppName | |
| npm install --save sails-hook-adminpanel jade sails-mysql # or sails-mongo or sails-postgresql | |
| touch config/adminpanel.js # TODO draw the rest of the owl here... | |
| # in config/views.js, set 'engine' to 'jade' | |
| mysql -uroot # only if you need a new mysql user | |
| CREATE USER 'testuser'@'localhost'; # only if you need a new mysql user | |
| GRANT ALL PRIVILEGES ON * . * TO 'testuser'@'localhost'; # only if you need a new mysql user | |
| exit; # only if you need a new mysql user |
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
| { | |
| "name": "package", | |
| "version": "0.0.0", | |
| "dependencies": { | |
| "foundation-sites": "^5.5.2", | |
| "jquery": "^2.1.4" | |
| }, | |
| "devDependencies": { | |
| "browser-sync": "^2.7.1", | |
| "browserify": "^10.2.4", |
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
| let articles = [ | |
| { | |
| body: 'lorem ipsum dolor sit amet', | |
| title: 'i love articles' | |
| }, | |
| { | |
| body: 'lorem ipsum', | |
| title: 'stuff and things' | |
| }, | |
| { |