Skip to content

Instantly share code, notes, and snippets.

@Alcesmire
Alcesmire / Makefile
Created April 19, 2017 12:23
String concat vs integer math
all: catstr catint
CFLAGS += -O0
catstr: cat.c
gcc $(CFLAGS) -DSTR $< -o $@
catint: cat.c
gcc $(CFLAGS) $< -o $@
time: all
@Alcesmire
Alcesmire / keybase.md
Created August 21, 2016 01:50
Keybase

Keybase proof

I hereby claim:

  • I am alcesmire on github.
  • I am alcesmire (https://keybase.io/alcesmire) on keybase.
  • I have a public key ASCErqG4czp3ynWvcISkQLUljAVNbkvx1oQXgeBFi9u5oQo

To claim this, I am signing this object:

@Alcesmire
Alcesmire / dice.c
Created May 4, 2016 13:03
Dice Problem
/*
* My intentionally terse version of Katie Steckles' algorithm.
*
* Steps are commented, but not explained. I could have made
* this a lot more terse, short and unreadable, but I opted
* for sparing any potential reader that mess. Even though
* such code can be a lot of fun (google IOCCC). A recursive
* main function is one of my favorite things to throw in
* people's faces when I'm feeling frisky. :)
* ~ Alcesmire
#!/bin/bash
H=100
S=100
V=180
bright=0
if [[ "$1" != "" ]]; then
bright=$1
fi
if [[ "$2" != "" ]]; then
100,115c100,115
< 'black') color_ret='\033[30m';;
< 'red') color_ret='\033[31m';;
< 'green') color_ret='\033[32m';;
< 'brown') color_ret='\033[33m';;
< 'blue') color_ret='\033[34m';;
< 'purple') color_ret='\033[35m';;
< 'cyan') color_ret='\033[36m';;
< 'light grey') color_ret='\033[37m';;
< 'dark grey') color_ret='\033[1;30m';;
@Alcesmire
Alcesmire / A small livestreamer tutorial.md
Created January 9, 2014 17:33
A short livestreamer tutorial, written mainly to help some people during AGDQ 2014.

First, check out this livestreamer page.

That page should hold more or less all information you should need. But for your ease I'll compile what you need in a condensed format.

What is livestreamer?

Livestreamer is a program that allows you to view streams (twitch.tv, justin.tv and a LOT more) in a regular media player such as VLC, Mplayer or likely your preferred player.

@Alcesmire
Alcesmire / A short livestreamer tutorial.md
Last active April 8, 2017 20:22
A short livestreamer tutorial, written mainly to help some people during AGDQ 2014.

First, check out this livestreamer page.

That page should hold more or less all information you should need. But for your ease I'll compile what you need in a condensed format.

What is livestreamer?

Livestreamer is a program that allows you to view streams (twitch.tv, justin.tv and a LOT more) in a regular media player such as VLC, Mplayer or likely your preferred player.