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
| # Prompt Setup | |
| function minutes_since_last_commit { | |
| now=`date +%s` | |
| last_commit=`git log --pretty=format:'%at' -1` | |
| seconds_since_last_commit=$((now-last_commit)) | |
| minutes_since_last_commit=$((seconds_since_last_commit/60)) | |
| echo $minutes_since_last_commit | |
| } |
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
| function! s:ToDoList () | |
| cclose | |
| let task_list = [] | |
| for row in split(system('ack --column "(TODO|CHANGED|FIXME)"'), '\n') | |
| let t = split(row, ':') | |
| let task_dict = {'filename': t[0], 'lnum': t[1], 'col': t[2]} | |
| let task_dict.text = substitute(join(t[3:-1]), '\s\+', ' ', '') | |
| let task_list += [task_dict] | |
| endfor | |
| call setqflist(task_list, 'r') |
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
| function! s:JSLint () | |
| cclose | |
| let out = system('jslint', join(getline(1, '$'), "\n")) | |
| if out != "jslint: No problems found.\n" | |
| let errors = split(out, '[^\n]\n[^\n]\zs') | |
| let error_list = [] | |
| for e in errors | |
| let thise = split(e, '|||') | |
| let error_list += [{'filename': expand("%"), 'lnum': thise[0], 'col': thise[1], 'text': thise[2]}] | |
| endfor |
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 C-a for the prefix | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| unbind C-b | |
| # Make the delay a little shorter | |
| set -sg escape-time 1 | |
| # Number windows starting with one | |
| set -g base-index 1 |
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
| NameVirtualHost *:80 | |
| Include conf.d/vihosts.d/*.conf | |
| <VirtualHost *:80> | |
| ServerName cashier-dev.comporium.com | |
| ServerAlias * | |
| DocumentRoot /var/ww/cashier/current | |
| DirectoryIndex index.php index.html | |
| <Directory "/var/www/cashier/current"> |
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
| ################################################################# | |
| ################################################################# | |
| # | |
| # This is a sample Capistrano deployment recpie for use with | |
| # deploying PHP applications. For more information please visit: | |
| # | |
| # http://www.lengelzigich.com | |
| # http://www.capify.org |
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
| /*jslint browser: true, regexp: true */ | |
| /*global define: false */ | |
| define(['require'], function (require) { | |
| 'use strict'; | |
| return { | |
| init: function () { | |
| } | |
| }; |
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
| JobQueue.prototype.nextJob = function () { | |
| var that = this; | |
| match(this.queue.shift(), { | |
| 'string': function (url) { | |
| $.ajax(url, function () { | |
| that.nextJob(); | |
| }); | |
| }, | |
| 'function': function (callback) { | |
| callback(function () { |
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
| module TestSDL where | |
| import qualified Graphics.UI.SDL.General as SDLG | |
| import Graphics.UI.SDL.Joystick (countAvailable, tryName) | |
| main = do | |
| SDLG.init [SDLG.InitJoystick] | |
| name <- tryName 0 | |
| case name of |
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
| diff --git a/themes/comporium/js/sales.js b/themes/comporium/js/sales.js | |
| index 95e84f6..3c47286 100644 | |
| --- a/themes/comporium/js/sales.js | |
| +++ b/themes/comporium/js/sales.js | |
| @@ -201,10 +201,15 @@ var init = function ($, Complete, Cart, queue) { | |
| this.registerEvents(); | |
| $('script[type="text/underscore-template"]').forEach(function (t) { | |
| - var pn = $(t).parent(), | |
| + var parNo = t.parentNode, |
OlderNewer