๐
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
sel=geany.selection() | |
geany.launch('rxvt-unicode', '-e', 'man','2', sel) |
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
#! /usr/bin/python3 | |
import urllib.parse | |
import http.client | |
import html.parser | |
from datetime import datetime | |
def get_seat_status(location, month): | |
""" get free seat status for given location(Beijing) and month(201104) | |
""" |
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
var YAHOO_PIPE_URL = "http://pipes.yahoo.com/pipes/pipe.run?_id=7NxhUNSA3RG_BCC6BBNMsA&_render=json"; | |
function lifeStreamCallback(stream){ | |
var lifeStreamRootDom = document.getElementById("lifestream"); | |
try{ | |
lifeStreamRootDom.removeChild(lifeStreamRootDom.getElementsByTagName("ul")[0]); | |
}catch(e) {} | |
var lifeStreamListDom = document.createElement("ul"); | |
for(var i=0; i<stream.count; 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
# | |
# usage, convert this work method to a Runnable anonymous class | |
# | |
# @anonymous_class(Runnable, 'run') | |
# def work(dummy): | |
# print 'hello world' | |
# | |
# work.run() | |
# | |
import types |
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
server.document-root="/your/path/to/share" | |
server.port = 8099 | |
#server.bind = "192.168.1.100" | |
dir-listing.activate = "enable" |
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
# conky configuration | |
# edited by [email protected] | |
# set to yes if you want Conky to be forked in the background | |
background no | |
# X font when Xft is disabled, you can pick one with program xfontsel | |
#font 5x7 | |
#font 6x10 | |
#font 7x13 |
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
;;; init.el --- Where all the magic begins | |
;; | |
;; Part of the Emacs Starter Kit | |
;; | |
;; This is the first thing to get loaded. | |
;; | |
;; "Emacs outshines all other editing software in approximately the | |
;; same way that the noonday sun does the stars. It is not just bigger | |
;; and brighter; it simply makes everything else vanish." | |
;; -Neal Stephenson, "In the Beginning was the Command Line" |
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
(ns reddit-visualization.core | |
(:require [reddit.clj.core :as reddit]) | |
(:import [javax.swing JFrame]) | |
(:import [org.jfree.chart ChartFactory ChartPanel]) | |
(:import [org.jfree.data.general DefaultPieDataset]) | |
(:import [org.jfree.util SortOrder])) | |
(def reddit-client (reddit/login nil nil)) | |
(defn map-reddits [user after-id] |
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
(ns reddit-visualization.core | |
(:refer-clojure :exclude [replace]) | |
(:use [clojure.pprint]) | |
(:use [clojure.string :only [lower-case replace split]]) | |
(:require [clojure.java.jdbc :as jdbc]) | |
(:require [reddit.clj.core :as reddit]) | |
(:import [javax.swing JFrame]) | |
(:import [org.jfree.chart ChartFactory ChartPanel]) | |
(:import [org.jfree.data.general DefaultPieDataset]) | |
(:import [org.jfree.util SortOrder])) |
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
"""Display commit summary by week.""" | |
import time | |
def summary(ui, repo, fs='', **opts): | |
"""Display commit summary by week""" | |
buckets = [] | |
init_date = repo[0].date()[0] | |
now = time.time() |
OlderNewer