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
#!/bin/bash | |
# | |
# A hook to update files for package managers | |
# bin/post-checkout-merge-hook | |
# | |
# This is a post-merge/post-checkout/post-rewrite hook. | |
# | |
#set -x | |
if [[ "$SKIP_COM_GIT_HOOK" == '1' ]]; then |
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
#!/bin/bash | |
# | |
# A hook to disallow js lint errors to be committed | |
# | |
# This is a pre-commit hook. | |
# | |
# To install this you can either copy or symlink it to | |
# $GIT_DIR/hooks/pre-commit | |
# | |
# Set up with npm install --save-dev jshint jscs |
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
'use strict'; | |
var AngularPage = function () { | |
browser.get('http://www.angularjs.org'); | |
}; | |
AngularPage.prototype = Object.create({}, { | |
todoText: { get: function () { return element(by.model('todoText')); }}, | |
addButton: { get: function () { return element(by.css('[value="add"]')); }}, | |
yourName: { get: function () { return element(by.model('yourName')); }}, |
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
(function (window) { | |
var slice = [].slice; | |
window.ngWatchCount = function(base) { | |
var elems; | |
if (base && typeof base !== "string") { | |
elems = slice.call(base.querySelectorAll("*")); | |
elems.unshift(base); | |
} else if (typeof base === "string") { | |
elems = slice.call(document.querySelectorAll(base + ", " + base + " *")); | |
} else { |
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 express = require("express"); | |
var path = require("path"); | |
var favicon = require("serve-favicon"); | |
var logger = require("morgan"); | |
var cookieParser = require("cookie-parser"); | |
var bodyParser = require("body-parser"); | |
var session = require("express-session"); | |
var cookie = require("cookie"); | |
var q = require("q"); |
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
/*! | |
* preload-clicks.js v0.1.0 | |
* http://www.closedinterval.com/ | |
* | |
* Click capturing functionality for delaying all clicks until all events have been bound | |
* | |
* Copyright 2011-2012, Wei Kin Huang | |
* Classify is freely distributable under the MIT license. | |
*/ | |
var releaseClicks = (function(document) { |
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 getUsableHeight = function() { | |
"use strict"; | |
// check if this page is within a app frame | |
var isInAppMode = ("standalone" in navigator && navigator.standalone) || (window.chrome && window.top.chrome.app && window.top.chrome.app.isInstalled); | |
var ua = navigator.userAgent; | |
// memoized values | |
var isIphone = ua.indexOf('iPhone') !== -1 || ua.indexOf('iPod') !== -1; |
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
# Special repo status function for git and svn | |
__repo_ps1 () { | |
local info=$(svn info 2> /dev/null) | |
# if not a svn repo, then try the git method | |
if [[ -z "$info" ]] ; then | |
echo -n "$(__git_ps1)" | |
return | |
fi | |
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
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |