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
I had a dream. Like there is ahead | |
An endless, empty and the wildest plane, | |
And I stand there, held by iron chain, | |
Under the tall rock made from finest stone, | |
And next to me are thousands just like me. | |
The face of each is marked by life and sorrow, | |
Love's favour burn in each and every eye, | |
And hands of everyone are chained with snakes of iron, | |
And every shoulder's bent low to the ground, |
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 | |
# I hereby place this script into public domain. | |
# database is CSV file containing position (in seconds) and filename, separated by a comma | |
db="$HOME/.mama.db" | |
# timeout is number of seconds to wait between checks if user is asleep | |
# default is 10 minutes | |
timeout="600" |
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
#include <stdlib.h> | |
#include <string.h> | |
#include "routines.h" | |
int main(int argc, const char *argv[]) { | |
int status, | |
status0, | |
status1; | |
char **argv0, | |
**argv1, |
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
import IR | |
type C = String | |
genC x = helper "" "" 0 x | |
where helper :: C -> C -> Int -> Statement -> C | |
helper defs code n (Sequence (x:[])) = helper (defs ++ genDefs n True x) (code ++ genCode n True x) (n + countDefs x) (Sequence []) | |
helper defs code n (Sequence (x:xs)) = helper (defs ++ genDefs n False x) (code ++ genCode n False x) (n + countDefs x) (Sequence xs) | |
helper defs code n (Sequence _ ) = "#include \"routines.h\"\nint main(){" ++ defs ++ code ++ "}" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
int exec_command(const char**); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> // sleep() | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
int make_redirection(int stream, const char* file) { |
NewerOlder