Skip to content

Instantly share code, notes, and snippets.

View UndarkAido's full-sized avatar
🤠

Aido UndarkAido

🤠
View GitHub Profile
@UndarkAido
UndarkAido / expanded.md
Created June 21, 2017 17:32 — forked from jeremyBanks/expanded.md
one-line self-executing c header and expanded explanation
//

Since we don't want this visible in C, we put it in a comment.

&>/dev/null

Unfortunately // is interpreted as an invalid shell command and produces an error message, so we need to redirect that to /dev/null to get rid of it.

;x="${0%.*}"
@UndarkAido
UndarkAido / expanded.md
Created June 21, 2017 17:32 — forked from jeremyBanks/expanded.md
one-line self-executing c header and expanded explanation
//

Since we don't want this visible in C, we put it in a comment.

&>/dev/null

Unfortunately // is interpreted as an invalid shell command and produces an error message, so we need to redirect that to /dev/null to get rid of it.

;x="${0%.*}"
@UndarkAido
UndarkAido / gist:a8a62bae5faac65b0092
Created January 20, 2016 20:09 — forked from schacon/gist:1
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.