Skip to content

Instantly share code, notes, and snippets.

View cloudman's full-sized avatar

Christopher Goodman cloudman

View GitHub Profile
@sarthology
sarthology / regexCheatsheet.js
Created January 10, 2019 07:54
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@atomjar
atomjar / product_style
Last active August 13, 2024 11:34
Stylesheet for Vue Mastery's Intro to Vue course
body {
font-family: tahoma;
color:#282828;
margin: 0px;
}
.nav-bar {
background: linear-gradient(-90deg, #84CF6A, #16C0B0);
height: 60px;
margin-bottom: 15px;
anonymous
anonymous / Idiots guide to car mechanics.md
Created July 8, 2017 00:45
Idiots guide to car mechanics

File: Download Idiots guide to car mechanicsbasic car mechanics course how cars work for dummies auto repair for dummies, 2nd edition basic car mechanics for beginners pdf learn auto mechanics online free car basics for beginners auto mechanics 101 auto repair for dummies pdf   The Complete Idiot's Guide "RM" to Car Care and Repair Illustrated covers maintaining, troubleshooting, and repairing your car from bumper to bumper. It clearly Crawford s Guide to Beginners Auto Maintenance & Repair www.CrawfordsAutoService.com. 2. Chapter 1: Safety Rules & Introduction to Tools. Automotive Tips for Getting into Your Car without Your Keys. If you've ever locked your keys in the car, you know how frustrating it can be. Assu In Car Repair Automotive 101: A Beginners Gui

from itertools import count, takewhile
from math import sqrt
import time
try:
# Python 2 compat
from itertools import ifilter as filter
except ImportError:
pass
@jnpaulson
jnpaulson / springer-free-maths-books.md
Created December 29, 2015 15:14 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
@darkyen
darkyen / gist:120c46739985ebf3b39b
Created June 10, 2015 03:40
Ferengi Rules of Acquisition [Complete List*]
1 "Once you have their money, you never give it back." "The Nagus" (DS9 episode)
2 "The best deal is the one that makes the most profit." The 34th Rule (DS9 novel)
3 "Never spend more for an acquisition than you have to." "The Maquis, Part II" (DS9 episode)
4 "A woman wearing clothes is like a man in the kitchen." The Ferengi Rules of Acquisition (DS9 novel)
5 "Always exaggerate your estimates." Cold Fusion (SCE novel)
6 "Never let family stand in the way of opportunity." "The Nagus" (DS9 episode)
7 "Always keep your ears open." "In the Hands of the Prophets" (DS9 episode)
8 "Small print leads to large risk." The Ferengi Rules of Acquisition (DS9 novel)
9 "Instinct, plus opportunity, equals profit." "The Storyteller" (DS9 episode)
10 "Greed is eternal." "Prophet Motive" (VOY episode)
@maxcap
maxcap / Eloquent Javascript Exercise Answers
Last active February 27, 2019 13:33
Eloquent Javascript Book: Exercise Answers
/*
These are my attempts at the exercises in the book Eloquent Javascript
http://eloquentjavascript.net
*/
@staltz
staltz / introrx.md
Last active November 11, 2025 05:59
The introduction to Reactive Programming you've been missing
@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active June 8, 2025 15:03
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.