There are two types of markup in Liquid: Output and Tag.
- Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}- Tag markup (which cannot resolve to text) is surrounded by
| <?php | |
| /** | |
| * Exception handling class. | |
| */ | |
| class EnvatoException extends Exception { | |
| } | |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}##Windows users:
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
homestead utf8_general_ci| <?php | |
| /** | |
| * This function uploads from a local file path. | |
| * To upload from a URL instead | |
| * @see: https://gist.github.com/RadGH/966f8c756c5e142a5f489e86e751eacb | |
| * | |
| * Example usage: Upload photo from file, display the attachment as as html <img> | |
| * $attachment_id = rs_upload_from_path( "/images/photo.png" ); | |
| * echo wp_get_attachment_image( $attachment_id, 'large' ); |
| <?php | |
| // Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored) | |
| // http://youtu.be/dQw4w9WgXcQ | |
| // http://www.youtube.com/embed/dQw4w9WgXcQ | |
| // http://www.youtube.com/watch?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/?v=dQw4w9WgXcQ | |
| // http://www.youtube.com/v/dQw4w9WgXcQ | |
| // http://www.youtube.com/e/dQw4w9WgXcQ | |
| // http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ |
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
npm install -g npm to update npm to the latest versionNow you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.
| root = true | |
| [*] | |
| # Change these settings to your own preference | |
| indent_style = space | |
| indent_size = 2 | |
| # We recommend you to keep these unchanged |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |