JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
| // ==UserScript== | |
| // @name Trello card title Markdown | |
| // @version 0.4.0 | |
| // @homepage https://gist.github.com/gorbiz/6062481 | |
| // @description Add support for bold and emphasized Markdown in card titles | |
| // @match https://trello.com/b/* | |
| // @match http://trello.com/b/* | |
| // ==/UserScript== | |
| function markdownAll() { |
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
JavaScript Code
var str = "hi";Memory allocation:
| Address | Value | Description |
|---|---|---|
...... |
... |
| {exp:weblog:entries weblog="articles" limit="1" entry_id="{segment_2}" }title: {title} | |
| status: {status} | |
| comments: Show | |
| post_type: Text | |
| --- | |
| {body} | |
| {/exp:weblog:entries} |
| <ul> | |
| {exp:weblog:entries weblog="notes" offset="200"} | |
| <li><a href="/exp/{entry_id}/{entry_date format="%Y-%m-%d"}-{url_title}.md">{title}</a></li> | |
| {/exp:weblog:entries} | |
| </ul> |
| <?php | |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <[email protected]> | |
| * @copyright Copyright 2012 Sean Murphy. All rights reserved. |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Responsive Design Testing</title> | |
| <style> | |
| body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
| .wrapper { width: 6000px; } | |
| .frame { float: left; } | |
| h2 { margin: 0 0 5px 0; } |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.