Skip to content

Instantly share code, notes, and snippets.

⌨️
sleepy

Cassidy Williams cassidoo

⌨️
sleepy
Block or report user

Report or block cassidoo

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
View deploy_to_production.py
import time
print "..."
time.sleep(1)
print "..."
print "..."
print "..."
print "..."
time.sleep(1)
print "..."
@cassidoo
cassidoo / customWhitespaceMatcher.js
Last active Feb 21, 2020
A custom matcher for when you want to compare strings in Jest and ignore whitespace
View customWhitespaceMatcher.js
// Modified version of this Stack Overflow response:
// https://stackoverflow.com/a/48459005/1950503
// (Removes ramda dependency, adds .trim() to string replacer, adds it to Jest global var instead of exporting)
// To use:
// Put `<rootDir>/path/to/customWhitespaceMatcher.js` in your Jest config under setupFiles
// Call it in your tests like this:
// expect(
// customMatchers.whitespaceMatcher(receivedResult, expectedResult).pass
// ).toBeTruthy();
View keybase.md

Keybase proof

I hereby claim:

  • I am cassidoo on github.
  • I am cassidoo (https://keybase.io/cassidoo) on keybase.
  • I have a public key ASCfRIH3z01WTOl7Efc5SFuF7eGVKuu-OUbdsHiw16kOsAo

To claim this, I am signing this object:

@cassidoo
cassidoo / remove-node_modules
Created Jul 16, 2015
Remove node_modules from git
View remove-node_modules
Add to .gitignore file
node_modules
Then call:
git rm -r --cached node_modules
git commit -m "Remove node_modules now that they're ignored!"
git push origin master
@cassidoo
cassidoo / burrito
Last active Nov 19, 2016
Prompt: Write about your favorite memory with food
View burrito
When I was a young child, about 5 or so, I dreamt of writing shows. I wanted to make my words on paper come to life on screen. I didn't even know how to write. But I had to try.
I started small, writing short stories about my socks or my gangster brothers. But I wanted more. I wanted to create something that would touch lives forever. But who was I? A 5-year-old suffering artist, struggling to get by? How could I stand out in the throngs of other authors and be who I truly was?
I had to write about something universal. I knew only my few friends and my family, who simply didn't understand me. Instead, I called a fellow artist in Brooklyn, Jay-Z. He gave me the best advice I could have asked for: "Leave it alone" (I couldn't tell if he said "it" or "me" but that was all I needed).
That was it. I needed to go specific. One, single thing.
I narrowed it down to food. Everyone eats. Everyone needs and wants food. It's the most basic desire and necessity we have. It's its own entity.
It was a genius plan. I wrote
View bash_profile
# Bash Stuff
alias reload='source ~/.bash_profile'
alias a='echo "------------Your aliases------------";alias'
alias sa='source ~/.bash_profile;echo "Bash aliases sourced."'
alias bp='vim ~/.bash_profile'
# Git Stuff
alias co='checkout'
alias st='status'
alias yolo='git status && git add -A && git commit -m "I do what I want" && git push origin master'
@cassidoo
cassidoo / checkbox
Created May 7, 2015
Style HTML Checkbox
View checkbox
<style>
input[type=checkbox] {
display: none;
}
input[type=checkbox] + label {
display: inline-block;
position: relative;
padding: 6px;
background-color: white;
View polymerdemo.html
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@cassidoo
cassidoo / branch_sync
Created Dec 26, 2014
Sync two branches in git
View branch_sync
# Put in ~/.bash_profile
# Usage:
# > sync master gh-pages
# Equivalent to:
# > git push origin master
# > git checkout gh-pages
# > git rebase master
# > git push origin gh-pages
# > git checkout master
You can’t perform that action at this time.