Skip to content

Instantly share code, notes, and snippets.

🔎
Looking for a developer job in the military/airspace area [RQTH]

Diti Marguin Diti

🔎
Looking for a developer job in the military/airspace area [RQTH]
Block or report user

Report or block Diti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View issue.net
+------------------------------------------------------------------------------+
| Kraaa! |
| This server belongs to a RL penguin. [E-mail] |
| kra@diti.me The |
| ,d ,d name's> |
| 88 88 [PGP] Diti. I |
| MM88MMM 8b d8 MM88MMM ,adPPYba, AE1E0000 love pen- |
| 88 `8b d8' 88 a8" "8a guins \and |
| 88 `8b d8' 88 8b d8 owls. /`-' |
| 88, `8b,d8' 88, "8a, ,a8" ,;; `#. |
@Diti
Diti / Doc.trait.php
Last active Aug 29, 2015
[School 42] Documentation & traits
View Doc.trait.php
<?php
trait Doc {
public static function doc() {
$filler = str_repeat('-', 80 - strlen(__CLASS__) - 4);
return '<- ' . __CLASS__ . ' ' . $filler . PHP_EOL
. file_get_contents(dirname(__FILE__) . '/' . __CLASS__ . '.doc.txt') . PHP_EOL
. $filler . ' ' . __CLASS__ . ' ->' . PHP_EOL;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am diti on github.
  • I am diti (https://keybase.io/diti) on keybase.
  • I have a public key whose fingerprint is FD4F 1D56 6452 19A0 C6F6 F9AB 31A4 9121 CD42 FF00

To claim this, I am signing this object:

@Diti
Diti / gist:7684035
Created Nov 27, 2013
Adding a `case` after the default one in a `switch` control structure still works. Compiled on a POSIX system with `gcc` and flags `-Wall -Wextra -pedantic -std=c89`.
View gist:7684035
#include <unistd.h>
void say(int x)
{
switch(x)
{
case 0:
write(1, "Case 0\n", 7);
break;
default:
You can’t perform that action at this time.