Skip to content

Instantly share code, notes, and snippets.

Avatar
☮️
Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise

Gerry Shaw gshaw

☮️
Enjoy life; Build relationships; Be grateful; Work less; Love more; Exercise
View GitHub Profile
@benjaminoakes
benjaminoakes / errors.txt
Created Jul 28, 2017
BeOS (NetPositive) haiku error messages
View errors.txt
Not a pretty sight
When the web dies screaming loud
The site is not found.
Morning and sorrow
404 not with us now
Lost to paradise.
View trello-css-guide.md

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

@alejandro-isaza
alejandro-isaza / gist:7681796
Last active Dec 29, 2015
Useful unicode characters I wish my keyboard had
View gist:7681796
Greek:
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω
Superscript:
x⁰ x¹ x² x³ x⁴ x⁵ x⁶ x⁷ x⁸ x⁹ x⁺ x⁻ x⁼ xⁱ xⁿ
Subscript:
x₀ x₁ x₂ x₃ x₄ x₅ x₆ x₇ x₈ x₉ x₊ x₋ x₌
xₐ xₑ xₒ xₓ xₔ
@mislav
mislav / procs-vs-lambda.md
Last active Jun 18, 2020
Jim Weirich on the differences between procs and lambdas in Ruby
View procs-vs-lambda.md

Jim Weirich:

This is how I explain it… Ruby has Procs and Lambdas. Procs are created with Proc.new { }, lambdas are created with lambda {} and ->() {}.

In Ruby 1.8, proc {} creates lambda, and Ruby 1.9 it creates procs (don't ask).

Lambdas use method semantics when handling parameters, procs use assignment semantics when handling parameters.

This means lambdas, like methods, will raise an ArgumentError when called with fewer arguments than they were defined with. Procs will simply assign nil to variables for arguments that were not passed in.

@ndarville
ndarville / business-models.md
Last active Aug 26, 2020
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.
View business-models.md

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@gerryster
gerryster / us_geo_chart_google
Created Dec 8, 2012
US State Map using the GeoChart from the Google Chart Tools
View us_geo_chart_google
// GeoChart from https://google-developers.appspot.com/chart/interactive/docs/gallery/geochart
// Try out by pasting code into: https://code.google.com/apis/ajax/playground/?type=visualization#geo_chart
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['State', 'Foo Factor'],
['US-IL', 200],
['US-IN', 300],
['US-IA', 20],
You can’t perform that action at this time.