Skip to content

Instantly share code, notes, and snippets.

🤓
Code reviewing!

Kevin Nguy kevinnguy

🤓
Code reviewing!
Block or report user

Report or block kevinnguy

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
@kevinnguy
kevinnguy / sample-logic.js
Created May 6, 2019
scoot-handles-business-logic-blog
View sample-logic.js
import { createLogic } from 'redux-logic';
const fetchUserLogic = createLogic({
type: USER_FETCH,
cancelType: USER_FETCH_CANCEL,
latest: true, // only provide the latest if fired many times
process: async ({ getState, action }, dispatch) => {
try {
const response = await fetch(`https://server/user/${action.payload}`);
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View artofmoneygetting.md

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

                     ART OF MONEY GETTING
            =====================================
                       by P. T. Barnum

                       ---------------
                     ART OF MONEY GETTING
View make_chrome_ssb.sh
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
You can’t perform that action at this time.