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/python | |
import random | |
import unittest | |
on_disk = None | |
class Error(Exception): | |
pass |
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 | |
""" | |
Consumer example to use the shared object created in Rust. | |
Ref: http://blog.skylight.io/bending-the-curve-writing-safe-fast-native-gems-with-rust/ | |
Rust program: points.rs | |
use std::num::pow; | |
pub struct Point { x: int, y: int } | |
struct Line { p1: Point, p2: Point } |
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/python2 | |
import datetime | |
import subprocess | |
import sys | |
import time | |
start_date=datetime.date(2012,11,1) | |
end_date = datetime.date(2013, 04, 9) |
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/bash | |
# glusterfs adds 'trusted.gfid' as extended attribute to the files | |
# and creates hard link to that file in .glusterfs directory | |
# This script accepts gfid as parameter and finds respective file in | |
# system | |
# Example Usage: | |
# ./file-by-gfid f6b2307a-8d3f-4e61-94eb-c565f48240fb |
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/sh | |
# Cover page | |
wget "http://74.127.61.106/epaper/Deepavali_Visheshanka/Deepa_2010_Cover.pdf" | |
# all pages | |
i=3 | |
while [ $i -lt 308 ] | |
do | |
start=`printf "%03d" $i` |
NewerOlder