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
#!/bin/env python | |
""" | |
os.walk is an awesome generator. | |
However, I needed the same functionality, | |
only I wanted to walk 'up' the | |
directory tree. | |
This allows seaching for files | |
in directories directly above |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; diff-region* - Diff two regions | |
;; | |
;; To compare two regions, select the first region | |
;; and run `diff-region`. The region is now copied | |
;; to a seperate diff-ing buffer. Next, navigate | |
;; to the next region in question (even in another file). | |
;; Mark the region and run `diff-region-now`, the diff | |
;; of the two regions will be displayed by ediff. | |
;; |
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 | |
from random import random | |
class seq_selector: | |
""" | |
Given an arbitrary and unknown length sequence of objects recieved | |
one at a time, this module provides a random selection from the | |
sequence using O(1) space. |
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
; Sample of self modifying code in | |
; (Dcpu-16) assembly. Takes advantage | |
; of the fact that the opcodes for | |
; addition and subtraction only differ | |
; by a single bit. | |
; Computes the following series: | |
; B = 10 + 1 - 2 + 3 - 4 + 5 ... | |
SET A, 1 ; initial values | |
SET B, 10 |
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
;;; typing.el --- The Typing Of Emacs | |
;; Copyright (C) 2000, 2001 Alex Schroeder <[email protected]> | |
;; Zombie mode and Q&A game (c) 2011 Sacha Chua <[email protected]> | |
;; Author: Alex Schroeder <[email protected]> | |
;; Maintainer: Alex Schroeder <[email protected]> | |
;; Version: 1.1.4 | |
;; Keywords: games | |
;; URL: http://www.geocities.com/kensanata/emacs.html |
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
-- Problem 5: Clock Repair | |
-- | |
-- November 3, 2007 | |
-- ACM North Central North America Regional Programming Contest Problem 5 | |
-- acm.org | |
-- | |
-- Mr. Horologia's House of Clocks contains various cuckoo clocks that | |
-- customers have brought in for repair. Since they are in the clock | |
-- shop, one might rightly assume that these clocks don't quite run as | |
-- they should. In fact, a fast clock may take 3500 seconds to advance |
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
-- About: Run a command using the text on the clipboard. | |
-- | |
-- The command line arguments form the command. If "{}" is | |
-- in the arguments, it is substituted with the text from the | |
-- clipboard, otherwise the clipboard text is appended to the end. | |
-- Examples: | |
-- copy the filename on the clipboard to the parent directory | |
-- > withcb cp {} ../ | |
-- |
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
// ppsapi_client.c | |
// Zach Davis 07-06-2013 | |
// (C) Same license as FreeBSD | |
/* | |
* Monitors a PPS port for events | |
* | |
* See sample Makefile at the bottom | |
*/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> | |
<_name>DOT Input</_name> | |
<id>org.inkscape.input.dot</id> | |
<dependency type="executable" location="extensions">dot.py</dependency> | |
<input> | |
<extension>.dot</extension> | |
<mimetype>text/plain</mimetype> | |
<_filetypename>DOT (*.dot)</_filetypename> |
OlderNewer