I hereby claim:
- I am pztrick on github.
- I am pztrick (https://keybase.io/pztrick) on keybase.
- I have a public key whose fingerprint is 465D F1BF E263 8E21 CFA8 E540 4E8D FD5E C772 7F8D
To claim this, I am signing this object:
# Title: Fancyimage tag for Jekyll | |
# Authors: Devin Weaver (photos_tag.rb), Brian M. Clapper (img_popup.rb), Patrick Paul (this gist) | |
# Description: Takes full size image, automagically creates thumbnail at specified size, +fancybox | |
# | |
# Adapted from: | |
# http://tritarget.org/blog/2012/05/07/integrating-photos-into-octopress-using-fancybox-and-plugin/ | |
# (photos_tag.rb) https://gist.github.com/2631877 | |
# (img_popup.rb) https://github.com/bmc/octopress-plugins/ | |
# | |
# Syntax {% photo filename [tumbnail] [title] %} |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>Chubby-er Ninja</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
def run_terminal(self, dir, parameters): | |
try: | |
if not dir: | |
raise NotFoundError('The file open in the selected view has ' + | |
'not yet been saved') | |
for k, v in enumerate(parameters): | |
parameters[k] = v.replace('%CWD%', dir) | |
args = [TerminalSelector.get()] | |
args.extend(parameters) | |
encoding = locale.getpreferredencoding(do_setlocale=True) |
<!-- Insert Code | |
{% codeblock [title] [lang:language] [url] [link text] %} | |
[code] | |
{% endcodeblock %} --> | |
<snippet> | |
<content><![CDATA[ | |
{% codeblock ${1:title} lang:${2:html} ${3:url} ${4:link-text} %} | |
${5:code} | |
{% endcodeblock %} | |
]]></content> |
<!-- Insert Fancy Album | |
{% fancyalbum 123x456[!] %} | |
image.png[: label] | |
{% endfancyalbum %} | |
--> | |
<snippet> | |
<content><![CDATA[ | |
{% fancyalbum ${1:weight}x${2:height}${3:[!]} %} | |
${4:image.png[: label]} | |
{% endfancyalbum %} |
@roles('broker', 'stressors') | |
def git_pull(): | |
with cd("%s" % git_folder): | |
run("git pull") | |
@roles('stressors') | |
def restart_celeryd(): | |
# NOT WORKING | |
sudo("supervisorctl restart all") |
from django.conf import settings | |
from iron_cache import IronCache | |
import thread | |
credentials = settings.IRON_IO_CACHE.lstrip('ironcache://').rstrip('@').split(':') | |
class IronCacheAsync(IronCache): | |
def put_async(self, *args, **kwargs): | |
thread.start_new_thread(self.put, args, kwargs) | |
return None |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: