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 ascii-art.rs
use std::error::Error;
use std::io::{prelude::*, stdin};
type AsciiArtResult<T> = Result<T, Box<Error>>;
#[derive(Debug, Default, PartialEq)]
struct AsciiArtData {
alphabet_rows: Vec<String>,
letter_width: u8,
letter_height: u8,
View Alphabet (lowercase) – concrete (brick background).txt
0eNrt3dtuXNeRgOFXMXiVBCLQq6rW7qbvHDsH53xwThMEgSQTDmFFEiTaM4ZhYN5h3nCeZEh7HBthwu6Pako81JVteu1mN3t3ddW//lX1+cGjJ58cP39x8vT0r4+ePfv44O3Pv/nJy4O3//yt/zz/fyePnz396scvTz56+vDJ+c9OP3t+fPD2wacnL04/OfvJg4OnD/9+/oOvVhy+d/DFg4OTpx8e/9fB2+OLB3Dl+9+6MujKD751ZV75d9YXf3lwcHry5PirV/z82cuT05NnT88f5ez/Hs58cPDZ2T/H2av6x6OcPnt6fPj84enfDs5/7b+9ZMWXHPEVG75izVcsfMXkK4qvSL4i/C3UK/gCfk78svkvy28e3x98C/Jdzh8k/7BKRAgPIuFBJDiIxIUgchb6H784Pj2+dP0a1y+4fuL6wvWJ6wPX89vMF4RegC8Z/6L4huH9gLcb3s38cfGPpHzuh4eK4aFicKgYGCoGZxuDs43B2cbAgDE41xicawwOGkODxvjnoLHLq+YXXXrBtCfEdwbffBu9gD9A/iGVSLDy4LHy4LHi4LHC4LHi4LHi4LHi4LHC4LHi4LHi4LHi4LHS4LHSjGOl4WOl4WOlhcpKA8hKA8hKA8hKA8iKA8hKA0gdcQD5xyUrvuSIr9jwFbvmjl+vX3D9xPXFryD5ivA3T6/gC/g58csueyfwjcP7Am+7jS3nD45/OCUCbDxobDxobDhobDhobDTv+PqKha+YfEXxFclXhL+FegVfwM+JX/bOoWODecf/X8B3B9+AfI/zx8g/qhIP1h5C1hdDyOVv3poDyNrKlq/Xr3H9gusnri9cn/wXCn/b9Aq+gJ8Tv+zSC6ZesOgFa71goxfwx0cCx5oDx+KBY/HcY+HQsXDusXDusXDusXDusXDusXAQWTiILBxEFg0iiwaRRYPIokFkscJlscJlscJl0fCxaPhYOHwsHD6mh4/p4WNy+JiYeUzMPCaHjom5x8TcY3LYmBw2JoeNqWFjatiYGjamlSx
@Diti
Diti / main.go
Created Jan 4, 2018
Losowowybieracz 2018
View main.go
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"math/rand"
"os"
"strings"
@Diti
Diti / cv.en.md
Created Sep 27, 2017
CV – 2017-09
View cv.en.md
linktitle title date
Curriculum Vitæ
Dimitri Torterat – CV
2017-09-27 15:18:19 +0200
  • Developer from P2P-based school.
  • Project-based education (42 + company experience in R&D).
  • Rigorous (enjoys conforming to specs & standards).
  • Adaptive (quickly gets used to new company tools & languages).
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" ,;; `#. |
View vanity-pgp_0.1a.go
package main
import (
"fmt"
"log"
"golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/packet"
)
View out.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View emoji.md
date title type
2016-10-12
Emoji & symbols
page
<style scoped> dl, dt, dd { margin: 0; }
@Diti
Diti / ImageMenuAdapter.java
Last active Sep 12, 2016
[Android] Simple ListView-based “menu” using compound drawables.
View ImageMenuAdapter.java
package me.diti.tests.android.exampleimagemenu.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import me.diti.tests.android.exampleimagemenu.R;
import me.diti.tests.android.exampleimagemenu.entity.ImageMenuItem;
@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.