Skip to content

Instantly share code, notes, and snippets.

Avatar
Writing code

Cory Reed swashcap

Writing code
View GitHub Profile
@cdaringe
cdaringe / console-terminal-task-graph.js
Created Mar 3, 2018
console-terminal-task-graph.js
View console-terminal-task-graph.js
var simpleTree = {
a: {
dependsOn: [
'b',
'x'
]
},
x: {
dependsOn: [
'y'
@jarretmoses
jarretmoses / React Native Clear Cache
Last active Oct 17, 2020
Clearing the Cache of your React Native Project
View React Native Clear Cache
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@tarmstrong
tarmstrong / vimunstaged.sh
Created Jan 2, 2014
In a git repository, open all currently modified and unstaged changes in vim. Each file is opened in a separate tab.
View vimunstaged.sh
#!/usr/bin/env bash
MODDED_FILES=$( git ls-files --modified );
vim -p $MODDED_FILES
@bomberstudios
bomberstudios / sketch-plugins.md
Last active Oct 16, 2020
A list of Sketch plugins hosted at GitHub, in no particular order.
View sketch-plugins.md
@malarkey
malarkey / Contract Killer 3.md
Last active Oct 22, 2020
The latest version of my ‘killer contract’ for web designers and developers
View Contract Killer 3.md

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View gist:2597326

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@redoPop
redoPop / .gitignore
Created Jun 18, 2010
Template .gitignore file for WordPress projects
View .gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
You can’t perform that action at this time.