Skip to content

Instantly share code, notes, and snippets.

function re { gcc $1.c -o $1; export PATH=$PATH:.; $1 ${@:2} }
#include <string.h>
#include <unistd.h>
size_t ft_strlen(char *s)
{
size_t i;
i = 0;
while (s[i])
++i;
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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 */
/* */
@zaydek-old
zaydek-old / gnl.c
Last active March 3, 2017 06:28
gnl.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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 */
/* */
'use strict'
var $0 = 'html', $1 = 'body'
function title()
{
if (!arguments.length)
{
$('html').prepend('\n\t').append('\n')
$('head, body').empty()
#!/bin/bash
function robinhood
{
echo
echo " >_ robinhood:function"
echo " >_ robinhood:function:usage"
echo
}
HISTCONTROL=ignoredups
#!/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
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
struct Ratio
{
import std.experimental.checkedint;
Checked!long[2] data;
this(long x, long y)
{
data[0] = x;
data[1] = y;