Skip to content

Instantly share code, notes, and snippets.

View max's full-sized avatar
🏔️

Max Schoening max

🏔️
View GitHub Profile
@diogomonica
diogomonica / bigfiles
Created January 7, 2011 14:41
Finds all files bigger than 20m in a linux system, presenting them from Biggest to smallest (including full path and actual size)
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2
@diogomonica
diogomonica / gist:822771
Created February 11, 2011 18:15
Log what files are being opened and accessed on a OSX
sudo fs_usage -w -f filesys mdworker | egrep "open"
@keith
keith / Rakefile
Created November 20, 2012 23:34
A rakefile to build your xcodeproject and place the result in your applications folder.
#!/usr/bin/env rake
require 'rubygems'
require 'fileutils'
# This requires the 'colorize' gem. Install with `[sudo] gem install colorize`
require 'colorize'
task :default => [:build]
@bobbygrace
bobbygrace / trello-css-guide.md
Last active May 15, 2024 16:01
Trello CSS Guide

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?

Pattern Matching

This is a strawman proposal for adding pattern matching to ECMAScript. Pattern matching is useful for matching a value to some structure in a similar way to destructuring. The primary difference between destructuring and pattern matching are the use cases involved - destructuring is useful for binding pieces out of larger structures whereas pattern matching is useful for mapping a value's structure to data or a set of behaviors. In practice this means that destructuring tends to allow many shapes of data and will do its best to bind something out of it, whereas pattern matching will tend to be more conservative.

Additionally, the power of pattern matching is increased substantially when values are allowed to participate in the pattern matching semantics as a matcher as well as a matchee. This proposal includes the notion of a pattern matching protocol - a symbol method that can be implemented by objects that enables developers to use those values in pattern matching. A common scenario w

@mscoutermarsh
mscoutermarsh / main.workflow
Created October 31, 2018 17:27
GitHub Actions - install, test and deploy node.js to Zeit Now
workflow "Deploy master" {
on = "push"
resolves = [
"alias",
]
}
action "install" {
uses = "actions/npm@94e6933"
args = "install"