Test Code here
for i in range(10):
print iNo support for code blocks. gist.io should really be using github's markdown!
| (defadvice org-archive-subtree | |
| (around org-archive-subtree-to-data-tree activate) | |
| "org-archive-subtree to date-tree" | |
| (if (org-entry-is-done-p) | |
| (let* ((dct (decode-time | |
| (org-time-string-to-time | |
| (cdar (org-entry-properties nil 'special "CLOSED"))))) | |
| (y (nth 5 dct)) | |
| (m (nth 4 dct)) | |
| (d (nth 3 dct)) |
| #!/bin/bash | |
| upto=`date -d "Mar 30 14:30" +%s` | |
| text="to go!" | |
| while true; do | |
| now=`date +%s` | |
| count=`expr $upto - $now` | |
| hours=`expr $count / 3600` | |
| minutes=`expr $count % 3600 / 60` |
| #!/bin/bash | |
| # Usage ./qotd.sh "This is sample text" | |
| # Depends | |
| # - Gnome2/3 | |
| # - ImageMagick | |
| # TODO | |
| # - Add intelligent font color selection |
| #!/bin/sh | |
| # Links to pages listing interesting packages | |
| # https://help.ubuntu.com/community/UbuntuScience | |
| # http://www.lifehack.org/articles/technology/linux-for-children.html | |
| # http://www.edubuntu.org/news/11.10-release (get package list?) |
| ############################################################################## | |
| # R - Red, B- Blue, G-Green | |
| # We name vertices as follows: | |
| # R B R | |
| # B G B | |
| # R B R | |
| ############################################################################## |
Test Code here
for i in range(10):
print iNo support for code blocks. gist.io should really be using github's markdown!
| (defun bhanu/scroll-up (&optional num) | |
| "Scroll up num number of lines." | |
| (interactive "p") | |
| (scroll-down num) | |
| (previous-line num)) | |
| (defun bhanu/scroll-down (&optional num) | |
| "Scroll down num number of lines." | |
| (interactive "p") | |
| (scroll-up num) |
| #!/usr/bin/env python | |
| from github import Github | |
| from datetime import datetime | |
| from pylab import plot, show, figure, legend, title, ylabel | |
| def set_repo_name(repo_name, username): | |
| if '/' in repo_name: | |
| return repo_name | |
| else: | |
| return "%s/%s" %(username, repo_name) |
| #!/usr/bin/env python | |
| # Written for an import to Pivotal Tracker | |
| from github import Github | |
| FMT = 'Story,Labels,Story Type,Created at,Requested By,Owned By,Description,Comment' | |
| PT_GH_map = { | |
| 'story': 'title', | |
| 'labels': 'labels', | |
| 'story type': 'type', |
| // ==UserScript== | |
| // @name GitHub IPynb rendering | |
| // @namespace ghipynb | |
| // @version 0.3.1 | |
| // @description Renders raw IPython notebooks on GitHub using nbviewer and Frames! | |
| // @license WTFPL | |
| // @match *://*.github.com/* | |
| // @match *://github.com/* | |
| // @match *://gist.github.com/* | |
| // @grant none |