Skip to content

Instantly share code, notes, and snippets.

View thecrogers's full-sized avatar

Caleb thecrogers

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thecrogers on github.
  • I am thecrogers (https://keybase.io/thecrogers) on keybase.
  • I have a public key whose fingerprint is 055D EC60 EE2E A725 8A1E BBAB 8057 F79E 4693 EB86

To claim this, I am signing this object:

@thecrogers
thecrogers / exampleGenerator.js
Created February 16, 2017 17:40
Basic es6 generator
function* Generator() {
let someVar = 'Hi';
yield someVar;
}
let it = Generator();
console.log(it.next());
//output: {done: false, value: 'Hi'};
console.log(it.next());
//output: {done: true, value: null}
#!/bin/bash
count=1
while read p; do
curl $p -o "folder/file$count.pdf"
count=$((count+1))
done <fileIn.txt