Three or more hashtags.
#[^#]+#[^#]+#
Long hashtags (15+ characters): #hashtagpunchline
// Source http://www.aaltocolour.com/colour/lecorbusier.asp | |
// LC 32.001 Crème | |
$corbusier_creme: #f2dda8; | |
// LC 32.010 Gris fer | |
$corbusier_gris_fer: #545559; | |
// LC 32.011 Gris | |
$corbusier_gris: #7b7a76; |
Category - info | |
Domain - http://slideshare.net | |
http://www.slideshare.net/doina/happy-easter-from-holland-slideshare | |
http://www.slideshare.net/stinson/easter-1284190 | |
http://www.slideshare.net/angelspascual/easter-events | |
http://www.slideshare.net/sirrods/happy-easter-3626014 | |
http://www.slideshare.net/sirrods/happy-easter-wide-screen | |
http://www.slideshare.net/carmen_serbanescu/easter-holiday | |
http://www.slideshare.net/Lithuaniabook/easter-1255880 |
/* | |
SCSS Color Methods for Accessibility | |
================================================================================ | |
Adjust given colors to ensure that those color combination provide sufficient | |
contrast. | |
@version 0.1 | |
@link http://eye48.com/go/scsscontrast |
#Handy functions for .bashrc loading. | |
# | |
# $ atoi 192.168.1.1 | |
# 3232235777 | |
# $ itoa 3232235777 | |
# 192.168.1.1 | |
function atoi | |
{ |
cfg.parser () { | |
fixed_file=$(cat $1 | sed 's/ = /=/g') # fix ' = ' to be '=' | |
IFS=$'\n' && ini=( $fixed_file ) # convert to line-array | |
ini=( ${ini[*]//;*/} ) # remove comments | |
ini=( ${ini[*]/#[/\}$'\n'cfg.section.} ) # set section prefix | |
ini=( ${ini[*]/%]/ \(} ) # convert text2function (1) | |
ini=( ${ini[*]/=/=\( } ) # convert item to array | |
ini=( ${ini[*]/%/ \)} ) # close array parenthesis | |
ini=( ${ini[*]/%\( \)/\(\) \{} ) # convert text2function (2) | |
ini=( ${ini[*]/%\} \)/\}} ) # remove extra parenthesis |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
<?php | |
/** | |
* Converts any valid PHP callable into a Closure. Requires PHP 5.4.0+. | |
* | |
* The ramifications of this are many, but basically it means that any function | |
* or method can be converted into a Closure, bound to another scope, and | |
* executed easily. Works properly even with private methods. | |
* | |
* - On success, returns a Closure corresponding to the provided callable. | |
* - If the parameter is not callable, issues an E_USER_WARNING and returns a |
⇐ back to the gist-blog at jrw.fi
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