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
'string-replace': { | |
optimized: { | |
files: { | |
'source/index.html': 'source/index.html' | |
}, | |
options: { | |
replacements: [{ | |
pattern: /static\/js\/main/, | |
replacement: 'static/js/main.optimized' | |
}] |
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
Show hidden characters
{ | |
"installed_packages": | |
[ | |
"ApacheConf.tmLanguage", | |
"Base16 Color Schemes", | |
"Gist", | |
"GitGutter", | |
"JsFormat", | |
"nginx", | |
"Package Control", |
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
{ | |
"color_scheme": "Packages/Base16 Color Schemes/base16-eighties.dark.tmTheme", | |
"enable_telemetry": true, | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 12, | |
"git_command": "/opt/boxen/homebrew/bin/git", | |
"ignored_packages": | |
[ | |
"Vintageous" | |
], |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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
public function getTotalDonationImpactOfUserIds($user_ids_array){ | |
$queryGZ = "SELECT SUM(amount) FROM gz_donations where "; | |
$queryMGF = "SELECT SUM(amount) FROM mgf_donations where "; | |
for ($i=0; $i<count($user_ids_array); $i++){ | |
$id = $this->db->escape($user_ids_array[$i]); | |
if ($i == count($user_ids_array) - 1) { | |
$queryGZ = $queryGZ . "referrer_user_id ='$id' OR donated_by_user_id ='$id'"; |
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
var app = require(process.cwd() + '/app'); | |
var winston = require('winston'); | |
var _ = require('lodash'); | |
// Set up logger | |
var customColors = { | |
trace: 'white', | |
debug: 'green', | |
info: 'green', | |
warn: 'yellow', |
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
# DOCKER-VERSION 0.6.6 | |
FROM ubuntu:12.10 | |
# Install Node.js from Chris Lea's PPA to get v0.10.x | |
RUN apt-get install -y software-properties-common | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN apt-get update | |
RUN apt-get install -y nodejs | |
ADD . /var/www |
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
/* ----- BOOKMARK BUTTONS ----- */ | |
toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button), | |
#personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder { | |
border: 0; | |
border-radius: 2.5px !important; | |
padding: 1px 8px !important; | |
margin: 0 0 1px; | |
font-weight: bold; | |
color: rgb(85, 85, 85); |
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
var winston = require('winston'); | |
var logger = new(winston.Logger)({ | |
transports: [ | |
new(winston.transports.Console)({ | |
level: 'debug', | |
colorize: true, | |
timestamp: true | |
}), | |
new winston.transports.File({ |
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
process.env.NODE_ENV = process.env.NODE_ENV || 'test'; | |
require('dotenv').load(); | |
var keystone = require('keystone'); | |
var chai = require('chai'); | |
var dbURI = process.env.MONGO_URL | |
keystone.init({ | |
'name': 'Post Model Test', | |
's3 config': {} //has to be set, but isn't used in our models |