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
--- js/bootstrap-datepicker.js.orig 2013-03-09 00:59:04.000000000 -0500 | |
+++ js/bootstrap-datepicker.js 2013-03-09 01:23:06.000000000 -0500 | |
@@ -77,6 +77,7 @@ | |
this.startViewMode = this.viewMode; | |
this.weekStart = options.weekStart||this.element.data('date-weekstart')||0; | |
this.weekEnd = this.weekStart === 0 ? 6 : this.weekStart - 1; | |
+ this.setOnHide = options.setOnHide === false ? false : true; | |
this.fillDow(); | |
this.fillMonths(); | |
this.update(); |
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
// | |
// This is a userscript for activecollab that allows for you to press the 's' | |
// key on any page and have it focus the search input box allowing for quick | |
// searching. | |
// | |
// author: Evan Borgstrom (@borgstrom) | |
// license: MIT | |
// | |
window.onkeydown = function(event) { |
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
import logging | |
try: | |
from nacl.auto import * | |
from nacl.state import default_registry | |
HAS_NACL = True | |
except ImportError: | |
HAS_NACL = False | |
__virtualname__ = 'nacl' |
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
#!pyobjects | |
class Samba(Map): | |
__merge__ = 'samba:lookup' | |
class Debian: | |
server = 'samba' | |
client = 'samba-client' | |
service = 'samba' |
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
TIME_DURATION_UNITS = ( | |
('week', 60*60*24*7), | |
('day', 60*60*24), | |
('hour', 60*60), | |
('min', 60), | |
('sec', 1) | |
) | |
def human_time_duration(seconds): |
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
import time | |
import pytest | |
from unittest import TestCase | |
IPSUM1 = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ut semper quam.' | |
IPSUM2 = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue sagittis eros ac aliquet.' | |