Skip to content

Instantly share code, notes, and snippets.

Douglas Naphas douglasnaphas

Block or report user

Report or block douglasnaphas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@douglasnaphas
douglasnaphas / 2-different-rtbs-same-name.txt
Created Oct 4, 2019
Two different remote tracking branches, same name
View 2-different-rtbs-same-name.txt
| ~/repos/remote1 @ Dougs-MacBook-Pro (dougnaphas) [11:17:29] master Δ
| 4013 => git add f1
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
| ~/repos/remote1 @ Dougs-MacBook-Pro (dougnaphas) [11:17:31] master Δ
| 4014 => git commit
[master f4cd5ac] Add a file to be committed on origin/abc b1
1 file changed, 1 insertion(+)
create mode 100644 f1
________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
| ~/repos/remote1 @ Dougs-MacBook-Pro (dougnaphas) [11:18:00] master
@douglasnaphas
douglasnaphas / promise.test.js
Created Nov 12, 2018
Examples of testing with Jest and Promises
View promise.test.js
test('promise series', () => {
new Promise(resolve => {
resolve('a');
}).then(Promise.resolve());
});
const fetchBeverageList = () =>
new Promise((resolve, reject) => {
resolve(4);
});
@douglasnaphas
douglasnaphas / awk_print_A-Z
Created Aug 6, 2015
Why does awk print letters not between A and Z in the ASCII character set when told to print lines that match the regex [A-Z]?
View awk_print_A-Z
$ echo "b" | awk '/[A-Z]/'
b
$ echo "a" | awk '/[A-Z]/'
$ echo "z" | awk '/[A-Z]/'
z
$
You can’t perform that action at this time.