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 E179 BC62 6ADB 2CE2 2387 AAC7 B33A 8C59 11D3 93CA
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name ChatGPT - middle-click New chat | |
| // @namespace Violentmonkey Scripts | |
| // @version 1.0.1 | |
| // @description Restore middle-click opening New chat in a new tab | |
| // @match https://chatgpt.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function () { |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| 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 |
| <!-- Insert Fancy Album | |
| {% fancyalbum 123x456[!] %} | |
| image.png[: label] | |
| {% endfancyalbum %} | |
| --> | |
| <snippet> | |
| <content><![CDATA[ | |
| {% fancyalbum ${1:weight}x${2:height}${3:[!]} %} | |
| ${4:image.png[: label]} | |
| {% endfancyalbum %} |
| <!-- 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> |
| 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) |
| # 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] %} |