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/sh | |
# | |
# Automatically add branch name and branch description to every commit message except merge commit. | |
# | |
COMMIT_EDITMSG=$1 | |
addBranchName() { | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
DESCRIPTION=$(git config branch."$NAME".description) |
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
fe60357 (HEAD, FEATURE-MAKE_CAT_FLUFFYLOL) [FEATURE-MAKE_CAT_FLUFFYLOL]: Integrating fluffy cats |
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/sh | |
# | |
# Automatically add branch name and branch description to every commit message except merge commit. | |
# | |
COMMIT_EDITMSG=$1 | |
addBranchName() { | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
DESCRIPTION=$(git config branch."$NAME".description) |
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
Math.ceil( (Math.log(teams)/Math.log(2)) / Math.log(2)) / Math.log(2)) + Math.ceil(Math.log(teams)/Math.log(2)) | |
var teams = 128; | |
var initialRounds = Math.ceil(Math.log(teams)/Math.log(2)); | |
var surplus = Math.ceil( Math.log(initialRounds)/Math.log(2) ); | |
console.log(initialRounds); | |
console.log(surplus); |
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
dojo.provide("clubn.controller.CycleController"); | |
dojo.declare("clubn.controller.CycleController", mojo.controller.Controller, | |
{ | |
addObservers: function() { | |
this.addObserver(this, "onInit", "InitializeCycle", function(context, caller) { | |
return { | |
timeout: 6000 | |
}; | |
}); | |
}, |
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 MyAddon:OnInitialize() | |
self.db = LibStub("AceDB-3.0"):New("NinjalistDB") | |
end |
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
#!/usr/bin/env ruby | |
$: << ENV['TM_SUPPORT_PATH'] + '/lib' | |
require 'escape' | |
def esc(str) | |
e_sn(str).gsub(/\}/, '\\}') # escaping inside a placeholder | |
end | |
s = STDIN.read | |
if s.empty? then | |
print "<strike>$1</strike>" |
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
for i,v in ipairs(self.db.global) do | |
print("Row: "..v) | |
end |
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
table.insert(self.db.global, "my data goes here") |
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
google.pacman || | |
function () { | |
var a = true, | |
e = false, | |
g = {}, | |
i = [1, 4, 2, 8], | |
l = { | |
0: { | |
axis: 0, | |
increment: 0 |
OlderNewer