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 <string.h> | |
#define TRUE 0 | |
#define FALSE -1 | |
static void start(char argc, char **argv); | |
static void hello(char argc, char **argv); | |
typedef struct |
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
$b = [] | |
NUM = 3 | |
def truth_table(k) | |
if k < NUM | |
$b[k] = false | |
truth_table(k+1) | |
$b[k] = true | |
truth_table(k+1) | |
else |
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
puts <<`_EOB_` | |
git clone --depth 1 https://github.com/riywo/anyenv ~/.anyenv | |
cat >> #{ARGV[0]} <<'_EOF_' | |
## anyenv setup | |
export PATH="$HOME/.anyenv/bin:$PATH" | |
eval "$(anyenv init -)" | |
_EOF_ | |
puts `exec $SHELL -l` |
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 <string.h> | |
#include <stdio.h> | |
#define SIZE 10 | |
int main() { | |
int i = 0; | |
char data[] = "foo bar piyo fuga"; | |
char *argv[SIZE]; | |