Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
drewkerrigan / README.md
Last active June 6, 2021 05:41
Setting open files limit in OSX 10.11.3

Download this gist, and then run:

chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh

Restart the system, and then run:

@toolmantim
toolmantim / Makefile
Last active December 5, 2022 23:14
An example of using Make instead of Grunt for fast, simple and maintainable front-end asset compilation.
# A simple Makefile alternative to using Grunt for your static asset compilation
#
## Usage
#
# $ npm install
#
# And then you can run various commands:
#
# $ make # compile files that need compiling
# $ make clean all # remove target files and recompile from scratch
@marcedwards
marcedwards / high-dpi-media.css
Last active November 19, 2023 12:56
A CSS media query that captures almost all high DPI aware devices.
/* ---------------------------------------------------------- */
/* */
/* A media query that captures: */
/* */
/* - Retina iOS devices */
/* - Retina Macs running Safari */
/* - High DPI Windows PCs running IE 8 and above */
/* - Low DPI Windows PCs running IE, zoomed in */
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */
/* - Android hdpi devices and above */

Dear kind yet obviously ignorant sir,

This is Keith's 17 year old daughter. It is clear to me that in order to make such an outrageous and misinformed statement, you must be unaware of both the physical and mental requirements of equestrian sports, including dressage.

a) First and foremost, the Olympic Games by definition is an international athletic competition. If the gruelling equestrian discipline of dressage was NOT a sport, it would not have held a place in the Olympics since 1912.

b) Olympic-level dressage is considered to be the highest level of training and education that a horse can achieve - like any other sport, decades of effort and determination are put into attaining such a high level of performance - of BOTH horse AND rider!

c) Both horse and rider are athletes, not one without the other. Equestrian sports come down to teamwork - both horse and rider need to be equally as good in order to place and progress. Is soccer not a sport because you have teammates helping you? Were the recipients

@buritica
buritica / iosd
Created March 29, 2012 18:52
Enable Remote Inspector on Mobile Safari
#!/bin/bash
# Open iPhone Simulator on default location for XCode 4.3 if found
[[ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] &&
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
# Open iPhone Simulator on default location for XCode 4.2 if found
[[ -d /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/ ]] &&
open /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app
@ry5n
ry5n / dry-with-sass-lists
Created December 12, 2011 01:49
Using Sass lists for DRY-er code
// Shared colors for buttons and alerts
//
// Use Sass lists to avoid writing out repeating patterns of Sass code.
//
// For example, the following avoids having to write out a selector and
// set of style rules for each alert type, when only class and
// variable names are different.
//
// Follows (and many thanks to) Nathan Weizenbaum (@nex3)’s comment at:
// http://groups.google.com/group/sass-lang/msg/987926ad9fe5ad43?
@anthonyshort
anthonyshort / framework.scss
Created November 30, 2011 01:54
Grid Framework
$grid-columns: 12;
$grid-width: 63px;
$grid-gutter-width: 20px;
@function grid-width($n) {
@return ($n * $grid-width) + (($n - 1) * $grid-gutter-width);
}
.l-container {
@chriseppstein
chriseppstein / readme.md
Created August 31, 2011 21:57 — forked from mislav/Gemfile
How to integrate Compass with Rails 3.1 asset pipeline

This gist is no longer valid. Please see Compass-Rails for instructions on how to install.

See all your work in a given repo over the last couple of weeks, collated by day. Makes filling out timesheets much easier.

To run the script, pass it a git repo as the first argument.

ruby timesheeting_like_a_boss.rb ~/projects/babushka

Here's what I see in babushka:

# 2011-05-25 (Wed)

c1dea1b: Return strings from #which and #cmd_dir.