My Recent Pastes (634 and counting)
Pastes by Allan Odgaard (634 and counting)
Below are the 15 most recent pasties by Allan Odgaard.
August 01, 2007
10:49PM EDT
by Allan Odgaard
View all 22 lines
# Preferences Window * Title should be “LaTeX Preferences” (strike “Bundle”). * Save button: Name it “Done” (since closing window is also saving) and set key equivalent to return (↩). * Spacing is a bit excessive, but maybe that’s just me.
August 01, 2007
4:22AM EDT
by Allan Odgaard
View all 26 lines
Index: /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb =================================================================== --- /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb (revision 7870) +++ /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb (working copy) @@ -98,6 +98,9 @@
August 01, 2007
4:13AM EDT
by Allan Odgaard
View all 11 lines
a = @net.read
if a[0] == 255 then
if a.length > 3 then
@errno = a[1]+a[2]*256
@error = a[3 .. -1]
July 30, 2007
5:51PM EDT
by Allan Odgaard
View all 13 lines
def convert_grep
open(SRC) do |io|
open(DST, 'w') do |out|
io.grep(/^"(\d+)","(\d+)","([^"]+)","[^"]*","[^"]*"\r?\n|(^.+\r?\n)/) do |match|
if $4
July 26, 2007
12:04PM EDT
by Allan Odgaard
View all 12 lines
if options['pattern'] =~ %r{\A/(.*)/([imx]*)\z}
transform = {
'i' => Regexp::IGNORECASE,
'x' => Regexp::EXTENDED,
'm' => Regexp::MULTILINE,
July 24, 2007
11:49PM EDT
by Allan Odgaard
View all 14 lines
rake --trace RAILS_ENV=production db:retro:load (in /usr/home/duff/retrospectiva) rake aborted! undefined method `gem' for main:Object /usr/home/duff/retrospectiva/config/boot.rb:39
July 24, 2007
11:47PM EDT
by Allan Odgaard
View all 12 lines
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': no such file to load -- ace (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1749:in `do_option'
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1787:in `handle_options'
from /usr/local/lib/ruby/1.8/getoptlong.rb:613:in `each'
July 23, 2007
10:37PM EDT
by Allan Odgaard
View all 7 lines
def run_viewer(viewer,fileName):
"""docstring for run_viewer"""
pdfFile = shell_quote(fileName[:fileName.rfind('.tex')]+'.pdf')
if viewer != 'builtin':
viewCmd = '/usr/bin/open -a ' + viewer + '.app ' + pdfFile
July 23, 2007
10:25PM EDT
by Allan Odgaard
View all 39 lines
Index: /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js =================================================================== --- /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js (revision 7789) +++ /Users/duff/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texlib.js (working copy) @@ -26,7 +26,7 @@
July 22, 2007
11:57AM EDT
by Allan Odgaard
View all 16 lines
--- Checkout.class.php (saved version)
+++ (current document)
@@ -59,13 +59,13 @@
protected function calculate_price($amount)
{
July 21, 2007
11:35AM EDT
by Allan Odgaard
View all 7 lines
security add-internet-password -r "abcd" -s "example.org" -a "user" -w "secret" security find-internet-password -r "abcd" -s "example.org" -a "user" security find-internet-password -r "dcba" -s "example.org" -a "user" security add-internet-password -r "http" -s "example.org" -a "user" -w "secret"
July 20, 2007
8:33AM EDT
by Allan Odgaard
View all 62 lines
When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that
July 19, 2007
7:38AM EDT
by Allan Odgaard
View all 14 lines
Index: SQL.tmbundle/Support/lib/connectors/mysql.rb =================================================================== --- SQL.tmbundle/Support/lib/connectors/mysql.rb (revision 7751) +++ SQL.tmbundle/Support/lib/connectors/mysql.rb (working copy) @@ -98,6 +98,9 @@
July 19, 2007
7:33AM EDT
by Allan Odgaard
View all 14 lines
Index: /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb =================================================================== --- /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb (revision 7751) +++ /Users/duff/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/lib/connectors/mysql.rb (working copy) @@ -98,6 +98,9 @@
