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
| #include <world.h> | |
| #include <interests.h> | |
| #include <nation.h> | |
| #include <all.h> | |
| #define GOLD "good thing" | |
| #define UTTERMOST INT_MAX | |
| #define GOLD_STANDARD standard(GOLD) | |
| #define CROSS_OF_GOLD cross(GOLD) |
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
| hwclock --set --date="`hwclock --debug|grep -P "^Time read from Hardware Clock:(.*)"|sed s/"Time read from Hardware Clock: "//`" |
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
| dep=$(shell ls *.h) # header files | |
| all-sources=$(shell ls *.c) # source files | |
| obj=$(all-sources:.c=.o) # objects | |
| EXE=sample.exe # executable | |
| CFLAGS_$@= # local C flags | |
| # Check for verbosity flag | |
| ifdef V | |
| ifeq ("$(origin V)", "command line") | |
| VERBOSE=$(V) |
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/env python | |
| # Automagical Lua Porter | |
| # | |
| # 2012-05-04 | |
| # | |
| import sys | |
| import os | |
| import re |
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
| /** | |
| * tag.c | |
| * | |
| * Generates a pseudo-random string of lowercase | |
| * letters of length TAG_LEN. A specific seed | |
| * for rand can be passed as an argument. | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
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
| # Binary Tree | |
| # | |
| class Node(object): | |
| left = None | |
| right = None | |
| data = None | |
| def __init__(self, data): | |
| self.data = data |
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
| ## | |
| # Flag Parse | |
| # | |
| # Command line flag/switch parsing | |
| ## | |
| import sys | |
| class ParserError(Exception): | |
| def __init__(self, m): |
NewerOlder