Skip to content

Instantly share code, notes, and snippets.

View alaztetik's full-sized avatar
😁
Happy developer

Alaz Tetik alaztetik

😁
Happy developer
View GitHub Profile
@alaztetik
alaztetik / range.js
Created April 14, 2020 08:32
sum(range(start, end))
function range(num1, num2) {
const array = [];
if (typeof num1 !== 'number' || typeof num2 !== 'number') {
throw new Error('Please provide 2 numbers.');
}
for (let i = num1; i < num2; i++) {
array.push(i);
@alaztetik
alaztetik / turkiye_il.json
Created February 12, 2020 05:26
Türkiye il liste, Credit: @berkaycatak
[
{
"sehir_key": "1",
"sehir_title": "ADANA"
},
{
"sehir_key": "2",
"sehir_title": "ADIYAMAN"
},
{
@alaztetik
alaztetik / turkiye_ilce.json
Created February 12, 2020 05:24
Türkiye ilçeleri için liste, Credit: @berkaycatak
[
{
"ilce_key": "1101",
"ilce_title": "ABANA",
"ilce_sehirkey": "37"
},
{
"ilce_key": "1102",
"ilce_title": "ACIPAYAM",
"ilce_sehirkey": "20"
@alaztetik
alaztetik / leibnizPIformula.js
Last active April 20, 2019 23:43
Leibniz PI Formula
// REV 03-19042101
function pi(n) {
var v = 0;
for (i = 1; i <= n; i += 4) { // increment by 4
v += 1 / i - 1 / (i + 2); // add the value of the series
}
return 4 * v; // apply the factor at last
}
@alaztetik
alaztetik / gist:51046e7d5b65759182703b2c465d4cf2
Created October 31, 2018 23:32 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@alaztetik
alaztetik / .gitignore
Created October 24, 2018 07:16 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #