sudo apt-get update
sudo apt-get upgrade
// Copyright 2012 Google Inc. All Rights Reserved. | |
/* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
// initial utilities | |
var gutil = require('gulp-util'); // tools to help, e.g. detect env, colour our output + logging | |
var changeEvent = function(evt) { | |
// log | |
gutil.log('File', gutil.colors.cyan(evt.path.replace(new RegExp('/.*(?=/' + paths.appSrc + ')/'), '')), 'was', gutil.colors.magenta(evt.type)); | |
}; | |
require('autostrip-json-comments'); // https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr | |
// 'development' is just default, production overrides are triggered by adding the production flag to the gulp command e.g. `gulp build --production` |
define(function(require, exports, module){ | |
var React = require('react'); | |
var constants = require('constants'); | |
var _ = require('underscore'); | |
var motivationalLines = [ | |
'Life isn’t about getting and having, it’s about giving and being.', | |
'Whatever the mind of man can conceive and believe, it can achieve.', | |
'You miss 100% of the shots you don’t take.', | |
'Every strike brings me closer to the next home run.', | |
'The mind is everything. What you think you become.', |
// context | |
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://...'); | |
/** | |
* Generates Mongoose uniqueness validator | |
* | |
* @param string modelName | |
* @param string field | |
* @param boolean caseSensitive |
function main() { | |
// change the CampaignName condition to whatever suits you | |
var adIter = AdWordsApp.ads().withCondition("CampaignName contains WP").withCondition("Status = ENABLED").get(); | |
while(adIter.hasNext()) { | |
var ad = adIter.next(); | |
var headline = ad.getHeadline(); | |
var d1 = ad.getDescription1() | |
var d2 = ad.getDescription2(); |
.ab-hidden { | |
opacity:0 !important; | |
filter:alpha(opacity=0) !important; | |
background:none !important; | |
} |
{ | |
"cmd": ["java", "-jar", "${packages}/Google Closure/compiler.jar", "--js", "$file", "--js_output_file", "/dev/null", "--compilation_level", "WHITESPACE_ONLY"], | |
"file_regex": "^(.*):([0-9]+):() ERROR - (.*)", | |
"selector": "source.js" | |
} |
// Create the test | |
var pixelRatio = (window.devicePixelRatio >= 1.5) ? "high" : "normal"; | |
.. | |
// Pass it along through GA | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-xxxxxxxx-x']); | |
// --- IMPORTANT LINE! | |
// params: event method, custom variable slot, variable name, variable value, scope level |