Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Slowly but surely implementing ISO 27001 ISMS

Rick Cogley RickCogley

👻
Slowly but surely implementing ISO 27001 ISMS
View GitHub Profile
@matthewpizza
matthewpizza / install-composer.sh
Created February 13, 2014 03:55
Install Composer on Webfaction
cd $HOME
ln -s `which php54` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php54
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
@lukasborawski
lukasborawski / input.scss
Last active February 12, 2021 11:12
Perfect media-queries screen breakpoints SASS @mixin. Tested on Apple Devices: iPhone4, iPhone5, iPad3, MacBook Pro, iPad Mini. http://sassmeister.com/gist/8529371
$media-queries: true;
@mixin bp($point) {
@if ($media-queries) {
$bp-large-screen: 1824px;
$bp-bigscreen: 1824px;
$bp-ipad-max: 1024px;
$bp-ipad-min: 768px;
$bp-iphone5-max: 568px;
$bp-iphone-max: 480px;
@hofmannsven
hofmannsven / README.md
Last active April 30, 2025 15:25
Git CLI Cheatsheet
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active January 3, 2025 03:54
5 entertaining things you can find with the GitHub Search API
@mojavelinux
mojavelinux / gfm-vs-asciidoc.asciidoc
Created June 26, 2013 18:57
A comparison of GitHub-flavored Markdown syntax versus AsciiDoc syntax, based on examples in the GitHub-flavored Markdown reference. Note that this gist requires Asciidoctor >= 0.1.3 to render properly.
@rebornix
rebornix / rss2md.py
Created April 11, 2013 12:51
parse rss to markdown
import feedparser
rss_url = ""
feed = feedparser.parse( rss_url )
items = feed["items"]
for item in items:
time = item[ "published_parsed" ]
title = item[ "title" ].encode('gb18030')
fileName = str(time.tm_year) + '-' + str(time.tm_mon) + '-' + str(time.tm_mday) + '-' + title + '.md'
@jareware
jareware / SCSS.md
Last active April 11, 2025 18:25
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@djs070
djs070 / simple-jquery-modal-with-cookie
Created November 29, 2012 05:22
simple jquery modal with cookie
@aaronbassett
aaronbassett / providers.md
Last active March 31, 2024 17:41
Email sub addressing for different providers

Google

  • Domains: gmail.com, googlemail.com
  • Qualifiers: +
  • Regex: \+([ -~]*)@
  • Notes: Periods in address are ignored. foo.bar@ == foobar@

Yahoo

  • Domains: yahoo.*
  • Qualifiers: -
  • Regex: \-([ -~]*)@
@vimishor
vimishor / .twitter.config-example.json
Created October 31, 2012 11:35
Tweet from your terminal.
{
"oauth_consumer_key": "XXX",
"oauth_consumer_secret": "XXX",
"access_token": "XXX",
"access_token_secret": "XXX"
}