Skip to content

Instantly share code, notes, and snippets.

View faried's full-sized avatar

Faried Nawaz faried

View GitHub Profile
diff --git a/twittering-mode.el b/twittering-mode.el
index 3a34794..143599c 100644
--- a/twittering-mode.el
+++ b/twittering-mode.el
@@ -428,6 +428,7 @@ StatusNet Service.")
(mentions . "statuses/mentions")
(public . "statuses/public_timeline")
(replies . "statuses/replies")
+ (favorites . "favorites")
(retweeted_by_me . "statuses/retweeted_by_me")
;; i don't know if anyone needs this, but i find this useful: a context menu for twittering-mode
;;
(setq twittering-mode-menu-map (make-sparse-keymap "Twittering Mode"))
(let ((map twittering-mode-menu-map))
(define-key map [ct] (cons "Copy tweet" 'twittering-push-tweet-onto-kill-ring))
(define-key map [cl] (cons "Copy link" 'twittering-push-uri-onto-kill-ring))
(define-key map [ll] (cons "Load link" 'twittering-click)))
(defalias 'twittering-mode-menu-map twittering-mode-menu-map)
(define-key twittering-mode-map [C-down-mouse-3] 'mouse-set-point)
(define-key twittering-mode-map [C-mouse-3] 'twittering-mode-menu-map)
diff --git a/r2/r2/templates/base.xml b/r2/r2/templates/base.xml
index 8422b2d..11766a4 100644
--- a/r2/r2/templates/base.xml
+++ b/r2/r2/templates/base.xml
@@ -25,11 +25,13 @@
%>
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:media="http://search.yahoo.com/mrss">
+ xmlns:media="http://search.yahoo.com/mrss"
@faried
faried / example hook
Created August 18, 2010 17:21
twmode "feature"
(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)
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'
package main
import (
"bufio";
"fmt";
"net";
"os";
)
package main
import (
"bufio";
"fmt";
"net";
"os";
)
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
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
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;