Skip to content

Instantly share code, notes, and snippets.

View adnenre's full-sized avatar

Adnen rebai adnenre

View GitHub Profile
@adnenre
adnenre / .gitlab-ci.yml
Created June 15, 2019 22:00 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@adnenre
adnenre / nativeJavaScript.js
Created June 14, 2018 16:56 — forked from alexhawkins/nativeJavaScript.js
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
@adnenre
adnenre / README.md
Last active December 31, 2017 06:02
PieChart(D3.js + SVG)

Pie Chart using using data from txt file

@adnenre
adnenre / README.md
Last active December 31, 2017 05:40

Pie Chart using using data from txt file

@adnenre
adnenre / datacsv.txt
Last active December 30, 2017 00:30
Bar chart (D3.js + SVG)
Year,value
2010,12
2011,25
2012,35
2013,45
2014,50
2015,85
2016,80
2017,98
@adnenre
adnenre / README.md
Last active December 29, 2017 10:19
Bar chart without SVG (D3.js)

Bar chart without SVG (D3.js)

@adnenre
adnenre / README.md
Last active January 28, 2020 16:06
color picker

Color Picker ##you can close the palette so there is no distracting color ##to remove a color form selected palette , double click on