Skip to content

Instantly share code, notes, and snippets.

@quanticle
quanticle / gist:846884
Created Feb 28, 2011
set_wallpaper error
View gist:846884
File "set_wallpaper.py", line 112, in <module>
db['size'] = get_resolution()
File "set_wallpaper.py", line 67, in get_resolution
out = Popen(['xrandr'], stdout=PIPE, stderr=PIPE).communicate()[0]
File "C:\Python27\lib\subprocess.py", line 672, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
View count.py
#! /usr/bin/python
ones = [ "",
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
View counting.py
#! /usr/bin/python
ones = [ "",
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
@quanticle
quanticle / gist:3984966
Created Oct 31, 2012
The error page when I remove quotes around socialauth_begin
View gist:3984966
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
<title>NoReverseMatch at /</title>
<style type="text/css">
html * { padding:0; margin:0; }
View gist:4122787
struct foo {
struct foo *next; /* List of active foo. */
struct mumble amumble; /* Comment for mumble. */
int bar; /* Try to align the comments. */
struct verylongtypename *baz; /* Won't fit in 2 tabs. */
};
struct foo *foohead; /* Head of global foo list. */
View gist:4173904
foo = {"hello": "world",
"foo": "bar",
"baz": "echo"}
View gist:4173918
a = 3
short = 4
reallyLong = 5
evenlongervar = 6
ThisIsAVarThatsOnlyFoundInJava = 7
View gist:4173933
foo = ["bar"
"bar",
"bar",
"bar",
"bar",
"bar",
"bar",
"bar",
"bar",
"bar"];
View gist:4173953
(defn func-foo [arg1 arg2 arg3]
(let bar (+ arg1 arg2)
(let baz (+ bar arg3)
(cond (= (% baz 2) 0)
(handle-even baz)
(handle-odd baz)))))
View test.clj
;; This is a clojure file