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
[alias] | |
co = checkout | |
ec = config --global -e | |
cob = checkout -b | |
cm = !git add -A && git commit -m | |
new = !git co master && git pull origin master && git checkout -b | |
track = git | |
st = status | |
br = branch | |
last = log -1 --stat |
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
[\w\/:=_]+|"[\w\s\/:=_]*" |
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
protected void Application_Start() | |
{ | |
WebRequest.DefaultWebProxy = new WebProxy("127.0.0.1", 8888); | |
// ... | |
} |
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
ngHtml2JsPreprocessor = { | |
cacheIdFromPath: function(filepath) { | |
var areaTemplatePattern = /\/?.*\/(.*)\/[Tt]emplates\/(.*\.html)/g; | |
var pathParts = areaTemplatePattern.exec(filePath); | |
// cachedTemplates/<AreaName>/<TemplateFileName.html> | |
var cachedName = 'cachedTemplates/' + pathParts[1] + '/' + pathParts[2]; | |
console.log("[ caching preprocessed template ] " + cachedName + "; original filePath:=" + filePath); |
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 | |
echo "iPhoto Dropbox Backup v0.1"; | |
echo "==================="; | |
echo ""; | |
RUNLOG="./uploader_runlog.txt" | |
COUNTER=0 | |
if [ ! -f $RUNLOG ]; 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
define(['app', 'jquery'], function (App, $) { | |
describe("when the app starts", function () { | |
it("outputs 'App Started!' in the target", function () { | |
var target = $("<div></div>"); | |
var app = new App(target); | |
app.start(); | |
expect(target.html()).toEqual("App Started!"); |
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 allTestFiles = []; | |
var TEST_REGEXP = /(spec|test)\.js$/i; | |
var pathToModule = function(path) { | |
var returnValue = path.replace(/^\/base\//, '').replace(/\.js$/, ''); | |
return returnValue; | |
}; | |
Object.keys(window.__karma__.files).forEach(function(file) { | |
if (TEST_REGEXP.test(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
// Karma configuration | |
// Generated on Tue May 27 2014 16:04:16 GMT+0100 (GMT Daylight Time) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
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
define(["jquery"], function ($) { | |
"use strict"; | |
var App = function (target) { | |
this.target = target || $("body"); | |
}; | |
App.prototype.start = function () { | |
this.target.html("App Started!"); | |
}; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Lab : Karma, RequireJS, Jasmine</title> | |
</head> | |
<body> | |
<script src="node_modules/requirejs/require.js" data-main="src/main.js"></script> | |
</body> | |
</html> |