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
jQuery(function(){ | |
// Cascading series of finds to focus the most likely relevant field | |
window.setTimeout(function() { | |
jQuery("div.fieldWithErrors :input:visible:enabled:first, :input:visible:enabled:first").focus(); | |
jQuery(".tabs-container").not(".tabs-hide").find("div.fieldWithErrors :input:visible:enabled:first, :input:visible:enabled:first").focus(); | |
}, 100); | |
}); |
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
my_time_formats = { | |
:date_time12 => "%m/%d/%y %I:%M%p", | |
:date_time24 => "%m/%d/%y %H:%M", | |
:file => "%Y-%m-%d-%H-%M%p", | |
:search => "%m/%d/%Y", | |
:default => "%m/%d/%y %I:%M%p" | |
} | |
my_date_formats = { | |
:date_time12 => "%m/%d/%y", | |
:date_time24 => "%m/%d/%y", |
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
describe SomeController do | |
before(:each) do | |
login as 'user' | |
end | |
... | |
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
function! s:gotoline() | |
let file = bufname("%") | |
let names = matchlist( file, '\(.*\):\(\d\+\)') | |
if len(names) != 0 && filereadable(names[1]) | |
exec ":e " . names[1] | |
exec ":" . names[2] | |
if foldlevel(names[2]) > 0 | |
exec ":foldopen!" | |
endif |
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 | |
# | |
# make a new self signed cert | |
# re: https://help.ubuntu.com/8.04/serverguide/C/certificates-and-security.html | |
# | |
SERVER=$1 | |
DAYS=3650 # 10 years | |
# uncomment to set a passphrase, which will be required when whatever's using the cert starts | |
# PASSPHRASE="-des3" |
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
mike@dirtyhippie:~/ftw$ gh clone mergulhao/ruby-bluetooth | |
Initialized empty Git repository in /home/mike/ftw/ruby-bluetooth/.git/ | |
remote: Counting objects: 100, done. | |
remote: Compressing objects: 100% (38/38), done. | |
remote: Total 100 (delta 45), reused 100 (delta 45) | |
Receiving objects: 100% (100/100), 16.81 KiB, done. | |
Resolving deltas: 100% (45/45), done. | |
mike@dirtyhippie:~/ftw$ cd ruby-bluetooth/ | |
/home/mike/ftw/ruby-bluetooth | |
mike@dirtyhippie:~/ftw/ruby-bluetooth(master)$ ls -l |
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
foooooooooooooooooooooooooooo |
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
fooooo!!! |
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
private NameValueCollection parameters; | |
private List<TextSyntaxItem> supportedLanguages; |
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
mike@dirtyhippie:~/ftw/gnome-do-plugins/Pastebin$ gnome-do |
OlderNewer