Instantly share code, notes, and snippets.

View gist:685664ec826d105ba4912f9fbc1bc95c
Didn't provide on-boarding. Places obstacles in front of employees. Makes work harder then it should be. Poor time planning. I asked for coach twice over 4 weeks he said no. When in reinvent, and if work didn't get done he would look bad, so he gave me coach. After that I asked for coach again for oncall, he said ok but never assigned.
I asked how to learn, he said just do it. Which is "always-on-edge" learning, waiting to hear if someone calls you out for doing wrong.
Argumentative. Very political, says one thing, means another.
View interview-stuff.md

Given a linked list and a target, partition the list so that the all integers less than the target is to the left of the target and all the integers equal or greater than the target is to the right of the target.

Target: 5

Input: 2 -> 5 -> 3 -> 9 -> 9 -> 1 -> null Output: 2 -> 3 -> 1 -> 5 -> 9 -> 9 -> null

View notif.js
import React from 'react'
class NotificationMenuBarItem extends React.Component {
state = {
notifs: []
}
componentDidMount() {
this.setupConnections();
View git-commands.md

Add changed files to last commit - (first git add the files you want to add to last commit, ie: git add .) - git commit --amend --no-edit

Create new branch and/or move uncomitted work to new branch - git checkout -b YOU_TYPE_BRANCH_NAME_HERE

List all remote branches only - git branch -r

Copy remote branch to local with same name - git checkout -t origin/foo

Copy remote branch to local with DIFFERENT name - git checkout -t origin/foo -b bar

View casesafe.sh
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}"
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparseimage}"
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}"
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}"
View long-tern.js
// style 1
const blah = A ? B : C ? D : E ? F : G;
// style 2
const blah = A
? B
: C
? D
: E
? F
View fetchUTC.js
/**
* Returns UNIX time in milliseconds.
*/
async function fetchUTC({
timeout = 10000,
shouldCompensate = true // subtracts half of the xhr request time from the time extracted from page
}={}) {
const servers = [
{
View codebox.css
.App {
font-family: sans-serif;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.CardsContainer {
height: 200px;
View macos_node_setup.md
~/.bash_profile
open ~/.bash_profile
brew link node@8
brew link node
cat ~/.bash_profile
echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.bash_profile
ls /usr/local/opt/node\@8/bin/
vim ~/.bash_profile 
View install-github-branch.md

npm i github:rajsuvariya/autocompletetextview#development