I hereby claim:
- I am mahmoud-eskandari on github.
- I am mahmoud_etc (https://keybase.io/mahmoud_etc) on keybase.
- I have a public key whose fingerprint is E564 7797 34FB 957A E0DE D9B0 C63E FFE4 4AA0 7B64
To claim this, I am signing this object:
"use strict"; | |
// By Mahmoud Eskandari @ MIT license | |
function validateCard(card) { | |
if (typeof card === 'undefined' | |
|| card === null | |
|| card.length !== 16) { | |
return false; | |
} | |
let cardTotal = 0; | |
for (let i = 0; i < 16; i += 1) { |
curl -fsSL https://get.docker.com | sh | |
curl -L "https://github.com/docker/compose/releases/download/$(curl --silent "https://api.github.com/repos/docker/compose/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose |
func NumberFormat(s string) (out string) { | |
ln := len(s) | |
mod := ln % 3 | |
m := strings.Split(s, "") | |
for k, v := range m { | |
if (mod == 0 && k > 0 && k%3 == 0 && k < ln) || | |
(mod > 0 && k >= (mod) && (k+(3-mod))%3 == 0 && k < ln) { | |
out += "," | |
} | |
out += v |
package main | |
import "fmt" | |
func main() { | |
fmt.Println(Factorial(65)) | |
} | |
func Factorial(n uint64) uint64 { | |
factorialOp(&n, 1, n) |
I hereby claim:
To claim this, I am signing this object: