Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Venediger lukevenediger

View GitHub Profile
@TSiege
TSiege / The Technical Interview Cheat Sheet.md
Last active Nov 29, 2020
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@ShirtlessKirk
ShirtlessKirk / luhn.js
Last active Sep 29, 2020
Luhn validation algorithm
View luhn.js
/**
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers
* @author ShirtlessKirk. Copyright (c) 2012.
* @license WTFPL (http://www.wtfpl.net/txt/copying)
*/
var luhnChk = (function (arr) {
return function (ccNum) {
var
len = ccNum.length,
bit = 1,
You can’t perform that action at this time.