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
(if window-system | |
(progn | |
(set-background-color "Black") | |
(set-foreground-color "LightGray") | |
(set-cursor-color "Gray") | |
(set-frame-parameter nil 'alpha 80))) | |
(setenv "PATH" | |
(concat "/usr/local/flex3sdk/bin:" | |
"/usr/local/bin:" |
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
# An example of bootstrapping remote echo client via SSH connection | |
import socket | |
import subprocess | |
import sys | |
host = '192.168.1.20' | |
SSH_CLIENT = sys.platform=='win32' and 'plink' or 'ssh' | |
REMOTE_CODE = '''"import os, socket, sys |
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
--- youtube.py.orig 2009-04-24 12:40:50.861929605 +0900 | |
+++ youtube.py 2009-04-25 02:35:27.190928256 +0900 | |
@@ -3,6 +3,7 @@ | |
gobject.threads_init() | |
import gdata.service | |
import urllib | |
+import urllib2 | |
import httplib | |
import atom | |
import threading |
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
/* From given size of area and rect, examine maximum number of rects can be | |
contained in the area, and print its pattern. | |
( answer for a programming question at http://q.hatena.ne.jp/1245118420 ) | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
int do_num_contain_rect(int aw, int ah, int w, int h) | |
{ | |
if (w>aw || h>ah) return 0; |
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
;; CHM file support for Python help | |
;; Prerequisites: hhh.exe http://saitou155.catfood.jp/hhh.htm | |
;; TODO: support Mac and Linux | |
(require 'python-mode) | |
(defcustom py-chmhelp-path "/Python26/Doc/python262.chm" | |
"path for Python CHM help file" | |
:type 'string | |
:group 'python) |
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
#!/usr/bin/env python | |
# Your account information | |
username="" | |
password="" | |
# screen_resolution is used for balloon positioning | |
screen_resolution=1024,768 | |
# Minimum update_interval under Twitter API restriction is 60*60/70=51.4 | |
update_interval=52 | |
# Balloon will disapear after notify_timeout 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
/* | |
userstreams.go: Reads ChirpUserStreams continuously, format tjem, then put them | |
into standard output. For detail, read:http://apiwiki.twitter.com/ChirpUserStreams . | |
Author: Yusuke Yanbe (y.yanbe@gmail.com) | |
*/ | |
package main | |
import ( |
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
(defun ac-python-candidates () | |
(python-find-imports) | |
(car (read-from-string | |
(python-send-receive | |
(format "emacs.complete(%S,%s)" | |
(python-partial-symbol) | |
python-imports))))) | |
(ac-define-source python | |
'((candidates . ac-python-candidates) |
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
var s=jQuery.makeArray($('img + a')), b=jQuery.makeArray($('.body')), lines=new Array(); for(var i=0; i<s.length; i++) {lines.push([s[i].innerText,': ',b[i].innerText].join(''))} console.log(lines.join('\n')); |
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
$ wget -q -O /dev/stdout example.com | w3m -dump -T text/html > formatted.txt |
OlderNewer