{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
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
<?php | |
return array( | |
/* | |
|-------------------------------------------------------------------------- | |
| PDO Fetch Style | |
|-------------------------------------------------------------------------- | |
| | |
| By default, database results will be returned as instances of the PHP |
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
<!doctype html> | |
<html ng-app="app"> | |
<head> | |
<meta charset="utf-8"> | |
<title>AngularJS App</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> |
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path": {
"windows": "node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/opt/boxen/nodenv/shims/node"
},
https://docs.strongloop.com/display/public/LB/AngularJS+JavaScript+SDK#AngularJSJavaScriptSDK-Read(querying) https://docs.strongloop.com/display/public/LB/Where+filter
Project.find().$promise.then(function(data){
console.log(data)
})
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
!function (window) {"use strict"; | |
// by WebReflection - WTFPL License | |
var | |
prefixes = "r webkitR mozR msR oR".split(" "), | |
process = "process", | |
nextTick = "nextTick", | |
i = 0, | |
p = window[process] || (window[process] = {}) | |
; | |
while (!p[nextTick] && i < prefixes.length) |
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
web: | |
build: ./node | |
volumes: | |
- "app:/src/app" | |
expose: | |
- "3000" | |
links: | |
- "db:redis" | |
- "mongodb" | |
command: nodemon -L app/server/server.js |
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
web: | |
build: ./coder/ | |
expose: | |
- "5000" | |
links: | |
- "db:redis" | |
- "mongodb" | |
command: nodemon -L app/server/server.js | |
nginx: |
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/bash | |
dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo && | |
docker pull mongo:2.6.11 && | |
apt-get install -y mongodb-clients && | |
echo 'export MONGO_CONFIG_OPTIONS=" --auth "' >> ~/.bashrc && | |
echo 'export MONGO_IMAGE_VERSION="2.6.11"' >> ~/.bashrc && | |
sudo swapon -s && | |
sudo fallocate -l 4G /swapfile && | |
ls -lh /swapfile && |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
OlderNewer