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
resources: | |
- name: my-code-pr | |
type: pull-request | |
check_every: 24h | |
webhook_token: ((webhook-token)) | |
source: | |
repository: user/my-code | |
access_token: ((github-access-token)) | |
v3_endpoint: https://github.com/api/v3/ |
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
# Set pane divider | |
set -g pane-border-bg white | |
set -g pane-border-fg white | |
set -g pane-active-border-bg white | |
set -g pane-active-border-fg white |
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 your spec file: | |
define('some/path/some_file_spec', | |
[ | |
// The file you want to test: | |
'some/path/some_file' | |
], function( | |
SomeFile) { | |
describe("SomeFile", function () { | |
it("exists", function () { |
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
git tag -a v0.0.1 -m "Version 0.0.1" | |
git push --tags |
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 DirectoryView = Backbone.View.extend({ | |
el: $("#recordings"), | |
initialize: function () { | |
this.collection = new Directory(contacts); | |
this.render(); | |
}, | |
render: function () { | |
var that = this; |
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
# View the log to find the commit you want to edit: | |
git log | |
# Quit out of the log | |
q | |
# Rebase from the commit you want to edit, in interactive mode: | |
git rebase SOME_COMMIT_ID^ --interactive | |
# This will open an interactive menu in Vi |
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
npm version patch -m "Version %s" | |
git push | |
git push --tags | |
npm publish |
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
url: http://phlapi.com:5984/v1//phl_bike_network/all | |
params: {} | |
response.headers: { server: 'CouchDB/1.0.2 (Erlang OTP/R14B)', | |
date: 'Thu, 04 Oct 2012 19:51:50 GMT', | |
'content-type': 'text/plain;charset=utf-8', | |
'content-length': '1938', | |
'cache-control': 'must-revalidate' } | |
{ error: 'render_error', | |
reason: 'function raised error: (new TypeError("req.headers.Accept is undefined", "", 11)) \nstacktrac | |
e: ([object Object],[object Object])@:11\nrunList(function (head, req) {var row, out, sep = "\\n";if (re |
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 placeholderElems = $('[data-test]'); | |
var placeholderAttr = 'data-test'; | |
var placeholderClass = 'placeholder'; | |
placeholderElems.focus(function() { | |
var input = $(this); | |
if (input.val() === input.attr(placeholderAttr)) { | |
input.val(''); | |
input.removeClass(placeholderClass); |
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
module.exports = function(app) { | |
app.get('/', function(req, res){ | |
console.log(__dirname) | |
res.render('index', { | |
title: '2012 PollWatcher' | |
}); | |
}); | |
app.get('/:state', function(req, res){ | |
console.log(__dirname) |
NewerOlder