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
function re { gcc $1.c -o $1; export PATH=$PATH:.; $1 ${@:2} } |
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 <string.h> | |
#include <unistd.h> | |
size_t ft_strlen(char *s) | |
{ | |
size_t i; | |
i = 0; | |
while (s[i]) | |
++i; |
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
/* ************************************************************************** */ | |
/* */ | |
/* ::: :::::::: */ | |
/* get_next_line.c :+: :+: :+: */ | |
/* +:+ +:+ +:+ */ | |
/* By: zmichels <[email protected]> +#+ +:+ +#+ */ | |
/* +#+#+#+#+#+ +#+ */ | |
/* Created: 2017/02/28 01:08:57 by zmichels #+# #+# */ | |
/* Updated: 2017/02/28 01:11:12 by zmichels ### ########.fr */ | |
/* */ |
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
/* ************************************************************************** */ | |
/* */ | |
/* ::: :::::::: */ | |
/* get_next_line.c :+: :+: :+: */ | |
/* +:+ +:+ +:+ */ | |
/* By: zmichels <[email protected]> +#+ +:+ +#+ */ | |
/* +#+#+#+#+#+ +#+ */ | |
/* Created: 2017/02/28 01:08:57 by zmichels #+# #+# */ | |
/* Updated: 2017/02/28 01:11:12 by zmichels ### ########.fr */ | |
/* */ |
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
'use strict' | |
var $0 = 'html', $1 = 'body' | |
function title() | |
{ | |
if (!arguments.length) | |
{ | |
$('html').prepend('\n\t').append('\n') | |
$('head, body').empty() |
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
#!/bin/bash | |
function robinhood | |
{ | |
echo | |
echo " >_ robinhood:function" | |
echo " >_ robinhood:function:usage" | |
echo | |
} |
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
HISTCONTROL=ignoredups |
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
#!/bin/bash | |
owl_sources=("cli" "head" "time" "auth" "repl" "eval" "tail") | |
function owl_create_sources { | |
for owl_source in "${owl_sources[@]}" | |
do | |
printf '#!/bin/bash\n\n' > "owl_"$owl_source".sh" | |
done |
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
curl -s 'https://docs.google.com/feeds/download/documents/export/Export?id=1MSbarpRMe_a8tGfJYSxOP9w27ENVgapyyTLToMk7bEo&exportFormat=txt' | | |
tr -d '\r' | { cat -s; echo; } > prog.d | |
rdmd prog.d |
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
struct Ratio | |
{ | |
import std.experimental.checkedint; | |
Checked!long[2] data; | |
this(long x, long y) | |
{ | |
data[0] = x; | |
data[1] = y; |