Skip to content

Instantly share code, notes, and snippets.

View gausnes's full-sized avatar
🖼️

Luke Ness gausnes

🖼️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gausnes on github.
  • I am gausnes (https://keybase.io/gausnes) on keybase.
  • I have a public key whose fingerprint is 194F 38DB D4D2 3A9C 5949 629A 3CF1 A99C 5247 D68A

To claim this, I am signing this object:

@gausnes
gausnes / npm-local
Last active June 3, 2022 15:34
NPM Local Publishing Tool
#!/bin/sh
if [ "$1" != "install" ]; then
echo "Invalid argument ($1), example usage: npm-local install @privaterepo/package ../path/to/package/root"
exit -1
elif [ -z "$2" ]; then
echo "Invalid argument ($2), example usage: npm-local install @privaterepo/package ../path/to/package/root"
exit -1
elif [ -z "$3" ]; then
echo "Invalid argument ($3), example usage: npm-local install @privaterepo/package ../path/to/package/root"
@gausnes
gausnes / get_user.js
Last active March 17, 2023 16:19
fujinomiya
function getByEmail(identifier, callback) {
var users = [
{ name: 'John Doe', password: 'thisshouldbeupdated', phone_number: '+12223334444' },
{ name: 'Jane Doe', password: 'thisshouldbeupdated', phone_number: '+98887776666' },
{ name: 'Gray Doe', password: 'thisshouldbeupdated', phone_number: '+45556667777' },
];
const user = users.find(user => user.phone_number === identifier);
if(!user) return callback(null);
callback(null, user);