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
-- find all psql tables owned by user 'pkf' that are of type date, timestamp, or timestamp with timezone | |
select c.relname, a.attname, format_type(a.atttypid, a.atttypmod) as coltype from pg_class c | |
join pg_attribute a on (c.oid = a.attrelid) | |
join pg_roles r on (c.relowner = r.oid) | |
where | |
c.relkind = 'r' and r.rolname = 'pkf' and | |
a.atttypid in (select oid from pg_type where typname in ('date', 'time', 'timestamp', 'timestamptz')) | |
order by c.relname, a.attname; | |
-- output is like |
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/reddit.el b/reddit.el | |
index 68b5f2f..d0de91c 100644 | |
--- a/reddit.el | |
+++ b/reddit.el | |
@@ -140,6 +140,13 @@ | |
(assoc-default 'message error nil "<no message>")) | |
(message "Login successful"))))) | |
+(defun reddit-site-select () | |
+ (interactive) |
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
(defadvice url-cookie-host-can-set-p (before reddit-cookie-fix 'activate) | |
(if (and (string= (ad-get-arg 0) "www.reddit.com") | |
(string= (ad-get-arg 1) "reddit.com") | |
t))) |
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
Index: js/core.js | |
=================================================================== | |
--- js/core.js (revision 103) | |
+++ js/core.js (working copy) | |
@@ -86,7 +86,7 @@ | |
count: function () { | |
var value = counter.el.value; | |
var count = value.length; | |
- chars_left = 140 - count; | |
+ chars_left = 1024 - count; |
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
Index: settings.py | |
=================================================================== | |
--- settings.py (revision 117) | |
+++ settings.py (working copy) | |
@@ -372,8 +372,8 @@ | |
# Things to measure to taste | |
MAX_COMMENT_LENGTH = 2000 | |
+MAX_POST_LENGTH = 140 | |
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
I haven't followed cameras that much. Generic advice (from an | |
Olympus user): | |
- Olympus makes great lenses. Thus, they are very expensive. There are | |
few/no cheap lenses that will work with Olympus DSLR's. It's a major | |
flaw. If this situation remains, I'll never buy an Olympus DSLR. | |
- In camera image stabilization (Olympus + Pentax) vs in lens | |
stabilization (Canon + Nikon). I don't have either. The latter is | |
"better", but then you have to get a lens that supports it, which I |
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
package main | |
import ( | |
"bufio"; | |
"fmt"; | |
"net"; | |
"os"; | |
) | |
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
package main | |
import ( | |
"bufio"; | |
"fmt"; | |
"net"; | |
"os"; | |
) | |
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/Rakefile b/Rakefile | |
index 07c45e7..7a6f08e 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -2,8 +2,9 @@ require 'rubygems' | |
require 'rake' | |
require 'rake/testtask' | |
require 'rake/gempackagetask' | |
+require 'require_all' | |
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
(defun dump-status-to-buffer () | |
(save-excursion | |
(set-buffer (get-buffer-create "some-buffer")) | |
(loop for status in twittering-new-tweets-statuses | |
do (insert (format "%s\n\n" status))))) | |
(add-hook 'twittering-new-tweets-hook 'dump-status-to-buffer) |
OlderNewer