- Download the perforce visual tool suite from here: http://www.perforce.com/perforce/downloads/index.html
- Copy only the p4merge.app file into your /Applications/ directory
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
| /** | |
| * Invokes a function, performing up to 5 retries with exponential backoff. | |
| * Retries with delays of approximately 1, 2, 4, 8 then 16 seconds for a total of | |
| * about 32 seconds before it gives up and rethrows the last error. | |
| * See: https://developers.google.com/google-apps/documents-list/#implementing_exponential_backoff | |
| <h3>Examples:</h3> | |
| <pre>//Calls an anonymous function that concatenates a greeting with the current Apps user's email | |
| var example1 = GASRetry.call(function(){return "Hello, " + Session.getActiveUser().getEmail();}); | |
| </pre><pre>//Calls an existing function | |
| var example2 = GASRetry.call(myFunction); |
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 | |
| # from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| ############################################### | |
| # To use: | |
| # wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" |
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 restify = require("restify"); | |
| var users = require("./users"); | |
| // The users module will have a getAuthorizationFromAccessTokenAsync promise-returning export. (Convert to callbacks if you wish). | |
| // It rejects in cause of not authorized, or fulfills with a { scope, customerId } object if the user is authorized. | |
| // The scope property indicates which scopes the user corresponding to a given access token has. | |
| module.exports = function authPlugin(serverRequest, serverResponse, next) { |
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
| requirejs.config({ | |
| shim: { | |
| 'foundation/jquery.foundation.topbar': { | |
| deps: ['jquery'], | |
| }, | |
| 'foundation/jquery.cookie': { | |
| deps: ['jquery'] | |
| }, | |
| 'foundation/jquery.event.move': { | |
| deps: ['jquery'] |
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
| /* | |
| * Copyright (c) 2012-2013 [CodeCatalyst, LLC](http://www.codecatalyst.com/). | |
| * Open source under the [MIT License](http://en.wikipedia.org/wiki/MIT_License). | |
| */ | |
| require( [ 'underscore' ], function ( _ ) { | |
| _.mixin( { | |
| 'toQueryString': function ( parameters ) { | |
| var queryString = _.reduce( | |
| parameters, | |
| function ( components, value, key ) { |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
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
| #!/usr/bin/env bash | |
| # checks if branch has something pending | |
| function parse_git_dirty() { | |
| git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*" | |
| } | |
| # gets the current git branch | |
| function parse_git_branch() { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/" |
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 | |
| npm install |
Read the blog at http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/