You can install XCode from the AppStore. Once done, install the XCode Command Line tools.
xcode-select --install
package controllers; | |
import controllers.Constants; | |
import play.mvc.Controller; | |
import utils.PaginationInfo; | |
import java.util.List; | |
/** | |
* Sample controller. | |
*/ |
<?php | |
/** | |
* Pagination class that outputs HTML compatible with Twitter Bootstrap. | |
* It uses a sliding scale when displaying the pagination links. | |
* | |
* @author Amir Khawaja <[email protected]> | |
*/ | |
class Pagination | |
{ |
<dependencies> | |
<dependency> | |
<groupId>com.tinkerpop.blueprints</groupId> | |
<artifactId>blueprints-core</artifactId> | |
<version>${blueprints.version}</version> | |
<exclusions> | |
<exclusion> | |
<artifactId>commons-logging</artifactId> | |
<groupId>commons-logging</groupId> | |
</exclusion> |
#!/bin/sh | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e | |
/usr/bin/which -s git || abort "brew install git first!" | |
test -d /usr/local/.git || abort "brew update first!" |
#!/usr/bin/env bash | |
npm ls -gp | awk -F/ '/node_modules/ && !/node_modules.*node_modules/ {print $NF}' | xargs npm -g rm |
var express = require('express'), | |
app = express(); | |
// More variables initialized... | |
// More routes, settings, etc. | |
// This is the OPTIONS endpoint | |
app.options('*', function (req, res, next) { | |
origin = req.headers.origin; | |
if (origin == undefined) { |
CREATE CLASS USState EXTENDS V; | |
CREATE PROPERTY USState.name string; | |
CREATE INDEX USState.generalSearch ON USState (name COLLATE ci) FULLTEXT; | |
CREATE VERTEX USState SET name = "Alabama"; | |
CREATE VERTEX USState SET name = "Alaska"; | |
CREATE VERTEX USState SET name = "Arizona"; | |
CREATE VERTEX USState SET name = "Arkansas"; | |
CREATE VERTEX USState SET name = "California"; |
if (!window.loadScripts) { | |
/** | |
* Load scripts given an array of URLs. | |
* @author Amir Khawaja <[email protected]> | |
* @license MIT | |
* @param {array} scripts - An array of URLs of scripts. | |
* @param {function} done - The function to call once the scripts are loaded. | |
*/ | |
window.loadScripts = function (scripts, done) { | |
var loader = function (src, handler) { |