I hereby claim:
- I am marcroberts on github.
- I am marcroberts (https://keybase.io/marcroberts) on keybase.
- I have a public key whose fingerprint is 7E21 9E89 C787 9017 93DE 609F EF27 7115 F24C 8714
To claim this, I am signing this object:
| # drop in /lib in a rails app | |
| # replace MODEL with the model to run against | |
| # enable in environment.rb with: | |
| # config.middleware.use 'Shrtn::Middleware' | |
| module Shrtn | |
| class Helper | |
| include Singleton | |
| def initialize | |
| @chars = ('A'..'Z').to_a + ('a'..'z').to_a + ('0'..'9').to_a + ['-','_'] |
| module ActionView | |
| module Helpers | |
| module TextHelper | |
| def simple_format_with_hyphenation(text, html_options={}) | |
| simple_format_without_hyphenation(text.gsub(/(\w{6})(\w)/,'\1­\2'), html_options) | |
| end | |
| alias_method_chain :simple_format, :hyphenation | |
| diff --git a/includes/acp/acp_main.php b/includes/acp/acp_main.php | |
| index b8712b2..cf456db 100644 | |
| --- a/includes/acp/acp_main.php | |
| +++ b/includes/acp/acp_main.php | |
| @@ -337,7 +337,12 @@ class acp_main | |
| } | |
| global $cache; | |
| + | |
| $cache->purge(); |
| require 'rack/cache' | |
| require 'rack/cache/storage' | |
| require 'rack/cache/metastore' | |
| require 'iron_cache' | |
| class IronCache::MetaStore < Rack::Cache::MetaStore | |
| def initialize | |
| @cache = IronCache::Client.new.cache('metastore') |
| class Object | |
| alias :old_initialize :initialize | |
| def initialize(*args,&blk) | |
| if respond_to? :initialise | |
| initialise(*args,&blk) | |
| else | |
| old_initialize(*args,&blk) | |
| end | |
| end | |
| end |
| class Thing | |
| private | |
| def some_private_method number | |
| print "Success (#{number})\n\n" | |
| end | |
| end | |
| thing = Thing.new |
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name=$inputline | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url=$inputline |
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://gist.github.com/1595572). | |
| # |
I hereby claim:
To claim this, I am signing this object:
| { created_at: 'Mon Jan 26 16:21:26 +0000 2015', | |
| id: 559747954651971600, | |
| id_str: '559747954651971584', | |
| text: 'Мосгорсуд оставил под арестом до 16 апреля Александра Кольченко, фигуранта дела ...', | |
| source: '<a href="http://ifttt.com" rel="nofollow">IFTTT</a>', | |
| truncated: false, | |
| in_reply_to_status_id: null, | |
| in_reply_to_status_id_str: null, | |
| in_reply_to_user_id: null, | |
| in_reply_to_user_id_str: null, |