Skip to content

Instantly share code, notes, and snippets.

View arzafran's full-sized avatar
🟥
find me on twitter

Franco Arza arzafran

🟥
find me on twitter
View GitHub Profile

Keybase proof

I hereby claim:

  • I am arzafran on github.
  • I am arzafran (https://keybase.io/arzafran) on keybase.
  • I have a public key ASCnfPU49fOqDVD1QcepbIHBuLUPkztdGwIVu31ibCfT1Ao

To claim this, I am signing this object:

0409188f01d0a8ad9f422403b301d4f45e1602dd18dd14996cc4d0e668f8fdfc25572435ebc067527440d4d9f410d9c9f364d754972d081c8a533f7507898b3877
@arzafran
arzafran / curiousFunction.js
Created February 10, 2018 15:11
curiousFunction
let curiousFunction = (randomString) => {
let result = '';
randomString.split('').map(letter => {
let i = (parseInt(letter, 36) + 1 ) % 36;
result += (!i * 10 + i).toString(36);
});
return result + '.';
}
/**
* Enable smooth scrolling when
* clicking on anchors using id reference
*/
$("a[href*='#']").on('click', function (e) {
e.preventDefault();
var stickyHeaderHeight = 100;
var href = $.attr(this, 'href');
var scrollPosition = Math.trunc($(href).offset().top - stickyHeaderHeight);
@arzafran
arzafran / happy_git_on_osx.md
Created December 27, 2017 17:24 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"