Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Sergio Prada Czechh

:shipit:
  • Meta
  • Brooklyn, NY
View GitHub Profile
View Sync QA
#!/bin/bash
BRANCH_NAME="master"
for dir in */ ; do
filename="Dockerfile"
dockerfile="$dir$filename"
if [ -f "$dockerfile" ]
then
npm run qa $dir $BRANCH_NAME
View keybase.md

Keybase proof

I hereby claim:

  • I am czechh on github.
  • I am sergioprada (https://keybase.io/sergioprada) on keybase.
  • I have a public key ASAXLRl0_HvT6I5k_hsIG4O9i5u7VRruoDyi2PaXqMUbYgo

To claim this, I am signing this object:

@Czechh
Czechh / 1.js
Last active Dec 1, 2017
Advent2017 - 1
View 1.js
const cal = input =>
input
.split('')
.map(Number)
.reduce((mem, x, i, arr) => {
if (i === (arr.length - 1)) return x === arr[0] ? (mem + x) : mem;
if (x === arr[i + 1]) return mem + x;
return mem;
}, 0);
View keybase.md

Keybase proof

I hereby claim:

  • I am czechh on github.
  • I am sergioprada (https://keybase.io/sergioprada) on keybase.
  • I have a public key ASC6YBsq4XSUh4v1uR7zWWEHcCBE87jliUrnpWuBnDVkHQo

To claim this, I am signing this object: