This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List files in a directory: | |
ls -l /path/to/folder | |
List files on a per-subfolder basis: | |
ls -lR /path/to/folder | |
List all subfolders with formatted output (go ahead, copy and paste it to the Terminal) | |
cd /path/to/folder | |
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Find Current URL for og:url tag | |
https://github.com/joshuacc/Shopify-Snippets/blob/master/find-current-url.liquid --> | |
{% assign current_url = '' %} | |
{% case template %} | |
{% when 'page' %} | |
{% assign current_url = page.url %} | |
{% when 'blog' %} | |
{% assign current_url = blog.url %} | |
{% when 'article' %} | |
{% assign current_url = blog.url %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign current_handle = '' %} | |
{% case template %} | |
{% when 'page' %} | |
{% assign current_handle = page.handle %} | |
{% when 'blog' %} | |
{% assign current_handle = blog.handle %} | |
{% when 'article' %} | |
{% assign current_handle = blog.handle %} | |
{% when 'collection' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign current_url = '' %} | |
{% case template %} | |
{% when 'page' %} | |
{% assign current_url = page.url %} | |
{% when 'blog' %} | |
{% assign current_url = blog.url %} | |
{% when 'article' %} | |
{% assign current_url = blog.url %} | |
{% when 'collection' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1. Sublime Text 2 - Useful Shortcuts (PC) | |
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/. | |
h2. Editing | |
| *Ctrl+C* | copy current line (if no selection) | | |
| *Ctrl+X* | cut current line (if no selection) | | |
| *Ctrl+⇧+K*| delete line | | |
| *Ctrl+↩* | insert line after | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- wordpress head functions --> | |
<?php wp_head(); ?> | |
<!-- end of wordpress head --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> |
OlderNewer