Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
<?php | |
/** | |
* twig.php | |
* | |
* Command-line script to process YAML frontmatter with Twig templates. | |
* Inspired by Mustache <http://github.com/defunkt/mustache>. | |
* | |
* Example template file (test.html): | |
* --- | |
* people: [ {name: scott}, {name: laura} ] |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
@mixin ie6 { * html & { @content } } | |
#logo { | |
background-image: url("/images/logo.png"); | |
@include ie6 { background-image: url("/images/logo.gif"); } | |
} |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
@include show-susy-with-baseline($baseline: rhythm(1)) { | |
@include grid-background($total-columns, column(), gutter(), $baseline, 0%); | |
@include background-size(100% $baseline, auto); | |
@include background-origin(border-box, content-box); | |
@include background-clip(border-box, content-box); | |
} |
What if controlling your media queries was as easy as adding on to a Sass list? What if I told you it now is?
This snippet comes from a modified version of mixins in the Aura Responsive Framework and came from me hijacking the respond-to mixin namespace but still wanting to use it for custom media queries. It's a little ugly and requires Sass 3.2+ (for now, (sudo) gem install sass --pre)
, but it works a charm.
There are two fairly mundane caveats to this method. First, every media query needs to be named. Second, every media query needs a size and assumes min-width and screen. If you want to change min-width, simply add your operator as another option, but if you want to change screen, you need to also include your operator even if you want it to be min-width.
Also, I haven't built in warnings yet for when you do bad things, so bear that in mind.
Without further adue, tada.
For this tutorial I'm assuming you are already comfortable with CSS, Sass (I'll use the SCSS syntax) and Compass. Please get set up with each one of those before attempting to use Susy. Sass and Compass both have their own setup instructions and tutorials that you can use.
There is also reference documentation in the works.
CSS Systems
<?php | |
require_once(TOOLKIT . '/class.datasource.php'); | |
Class datasourcetour_l_current_presentation_images extends SectionDatasource{ | |
public $dsParamROOTELEMENT = 'tour-l-current-presentation-images'; | |
public $dsParamORDER = 'asc'; | |
public $dsParamPAGINATERESULTS = 'yes'; | |
public $dsParamLIMIT = '1'; |
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
mkdir ~/Desktop/ssl | |
cd ~/Desktop/ssl | |
openssl genrsa -des3 -out server.key 1024 | |
openssl req -new -key server.key -out server.csr | |
cp server.key server.key.org | |
openssl rsa -in server.key.org -out server.key | |
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | |
sudo cp server.crt /private/etc/apache2/server.crt | |
sudo cp server.key /private/etc/apache2/server.key |