Skip to content

Instantly share code, notes, and snippets.

View andrewjcohen's full-sized avatar

Andrew Cohen andrewjcohen

View GitHub Profile
// Mixins for:
// • Iterating classes
// • Flexbox, including browser prefixes
// • Gradients, including browser prefixes
// Created by Carl Fairclough
// carlfairclough.me
@mixin iterate-classes($name, $property, $values, $unit: null) {
@gregjhogan
gregjhogan / PPPoE-info.sh
Created October 9, 2015 05:09
Retrieve CenturyLink PPPoE username/password from technicolor C2000T
# first enable telnet, and connect
# then you will get a '>' prompt where you want to run the following commands
sh
pidstat -l -C pppd
# see -u (username) and -p (password) in the output
@lisasy
lisasy / application.html.haml
Last active August 29, 2015 13:57
Nested application layouts for Rails projects
!!!
%html
%head
%meta{:charset => "utf-8"}
%meta{:content => "NOODP", :name => "ROBOTS"}
%meta{name: 'viewport', content: 'width=device-width; initial-scale=1.0; maximum-scale=1.0;'}
%title= page_title
= stylesheet_link_tag :application, :media => 'all'
= csrf_meta_tags
%body{:class => body_class}
@frechg
frechg / gist:9239662
Created February 26, 2014 22:10
Nub Mixin
// Nub
///////////////////////////////////////////////////////////////////////////////
@mixin ui-nub($size: 8px, $position: top-right, $bg-color: #fff, $border-color: rgb(100,100,100)) {
&:before,
&:after {
display: block;
pointer-events: none;
position: absolute;
@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………