Skip to content

Instantly share code, notes, and snippets.

View farskid's full-sized avatar
🎯
Focusing

Farzad Yousefzadeh farskid

🎯
Focusing
View GitHub Profile
@farskid
farskid / create_github_tag.sh
Created October 16, 2018 03:49 — forked from cliffparnitzky/create_github_tag.sh
Simple way to create a tag via git shell and push it to repo
# creat a tag (more infos at: http://git-scm.com/book/de/ch2-12.html)
git tag -a 1.0.0 -m "Version 1.0.0"
git push origin 1.0.0
git tag -a 1.0.0.alpha1 -m "Version 1.0.0 alpha1"
git push origin 1.0.0.alpha1
# delete a tag
git tag -d 1.0.0
git push origin :refs/tags/1.0.0
@farskid
farskid / i18n-express4-cookie-example.js
Created January 10, 2017 20:57 — forked from mashpie/i18n-express4-cookie-example.js
i18n-express4-cookie-example
@farskid
farskid / JavaScript Sieve Of Atkin.js
Last active July 15, 2016 13:51 — forked from rizalp/JavaScript Sieve Of Atkin.js
return array of primes below limit using Sieve of Atkin Algorithmhttp://en.wikipedia.org/wiki/Sieve_of_Atkin#JavaScript #primes
function sieveOfAtkin(limit){
var limitSqrt = Math.sqrt(limit);
var sieve = [];
var n;
//prime start from 2, and 3
sieve[2] = true;
sieve[3] = true;
for (var x = 1; x <= limitSqrt; x++) {