Skip to content

Instantly share code, notes, and snippets.

View NargiT's full-sized avatar

NargiT

View GitHub Profile
@NargiT
NargiT / vigenere.py
Created September 1, 2016 15:47 — forked from terrettaz/vigenere.py
Vigenere Cipher tool
#!/usr/bin/env python
import sys, argparse, random
start = ord('.')
end = ord('Z')
modulo = (end - start) + 1
def alphabet():
return reduce(lambda a, b: '%s%s' % (a,b), map(lambda x: chr(x), range(start, end+1)))
@NargiT
NargiT / Main.java
Last active February 6, 2018 21:29
Skillvalue - foot
package fr.nargit.foot;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
@NargiT
NargiT / Main.java
Created February 6, 2018 21:29
Repetition
package fr.nargit.repetition;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@NargiT
NargiT / Main.java
Created February 6, 2018 22:29
Prime number
package fr.nargit.prime;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[] vector = null;
Integer result = -1;
@NargiT
NargiT / Main.java
Created February 6, 2018 23:22
Skillvalue - Cells
package fr.nargit.cells;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
public class Main {
public static void main(String[] args) {
BufferedReader in;
try {
@NargiT
NargiT / README.md
Last active April 8, 2019 21:17
Microprofile

Microprofile

Sets of api for Java Enterprise Server Application, drivent by the community (wikis, gitter, google group, mailing list, blog, site...)

Relese cycle

@NargiT
NargiT / demo.md
Last active April 25, 2019 22:34
terminal demo maker

Do a gif

asciinema rec -i 2.5 -c "doitlive play -p nicolauj -q -S /bin/bash session.sh" session.cast
docker run --rm -v $PWD:/data asciinema/asciicast2gif session.cast session.gif

Do a video

@NargiT
NargiT / cli.md
Created April 30, 2019 21:43
cli
@NargiT
NargiT / composite.py
Last active July 3, 2019 07:31
Design Pattern - Composite
import abc
from typing import Dict, Optional, Sequence
class Component(metaclass=abc.ABCMeta):
@property
@abc.abstractmethod
def name(self):
pass
@NargiT
NargiT / ckad
Last active September 26, 2019 04:44
tips and trick for ckad
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic — @amix3k
"
" Awesome_version:
" Get this config, nice color schemes and lots of plugins!
"
" Install the awesome version from:
"
" https://github.com/amix/vimrc