Skip to content

Instantly share code, notes, and snippets.

View NargiT's full-sized avatar

NargiT

View GitHub Profile
@NargiT
NargiT / inde.html
Created August 14, 2019 12:27
d3 example
<!DOCTYPE html>
<head>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body>
<script>
var svgContainer = d3.select("body").append("svg")
.attr("width", 200)
@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
@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 / cli.md
Created April 30, 2019 21:43
cli
@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 / 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 / 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 / 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 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
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;