Skip to content

Instantly share code, notes, and snippets.

Arron Mabrey arronmabrey

Block or report user

Report or block arronmabrey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Has weird right-to-left characters.txt
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
View keybase.md

Keybase proof

I hereby claim:

  • I am arronmabrey on github.
  • I am arronmabrey (https://keybase.io/arronmabrey) on keybase.
  • I have a public key whose fingerprint is C62B 9CD3 263A CC9A 5BCF 3301 B39C 72CF 3B43 0F0B

To claim this, I am signing this object:

@arronmabrey
arronmabrey / index.html
Created Aug 16, 2014
A Pen by Arron Mabrey.
View index.html
<div id="menu-icon">#menu-icon (click me)</div>
<div id="mobile-menu">
<ul>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-16">
<a href="http://goldenshine.harbrdev.com/about-us/">About Us</a>
</li>
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-79">
<a href="#">Services</a>
<ul class="sub-menu">
<li class="menu-item menu-item-type-post_type menu-item-object-service-locations menu-item-195">
@arronmabrey
arronmabrey / gist:632843
Created Oct 18, 2010
rvm, zsh and textmate be friends
View gist:632843
# Via http://www.slideshare.net/freelancing_god/zsh-and-rvm
#!/usr/bin/env zsh
source ~/.rvm/scripts/rvm
if [[ -s "${TM_PROJECT_DIRECTORY}/.rvmrc" ]]
then
source "${TM_PROJECT_DIRECTORY}/.rvmrc"
fi
@arronmabrey
arronmabrey / gist:700388
Created Nov 15, 2010
Email validation in Ruby On Rails 3 or Active model without regexp
View gist:700388
# via http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/
class User < ActiveRecord::Base
validates :email, :presence => true, :email => true
end
# Just put a file in app/validators/email_validator.rb
View WEBrick.rb
#!/usr/bin/env ruby
require 'optparse'
require 'webrick'
class NonCachingFileHandler < WEBrick::HTTPServlet::FileHandler
def prevent_caching(res)
res['ETag'] = nil
res['Last-Modified'] = Time.now + 100**4
res['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
res['Pragma'] = 'no-cache'
View gist:1078983
rvm debug
/Users/arron/.rvm/scripts/info: line 5: /base: No such file or directory
/Users/arron/.rvm/scripts/info: line 6: /version: No such file or directory
/Users/arron/.rvm/scripts/info: line 176: /match: No such file or directory
/Users/arron/.rvm/scripts/info: line 195: __rvm_become: command not found
/Users/arron/.rvm/scripts/info: line 197: __rvm_environment_identifier: command not found
:
system:
View middleman-transmitsync.rb
module Middleman::Features::TransmitSync
class << self
def registered(app)
app.after_build do
project_transmitsync_favorite_name = app.transmit_sync_favorite
macruby_eval = <<-macrubyEval
framework 'ScriptingBridge'
@transmit = SBApplication.applicationWithBundleIdentifier('com.panic.Transmit')
@transmitsync_favorite_name = ARGV.join('')
@transmitsync_favorite = false
View gist:1519152
images/100px.jpg
/images/100px.jpg
../images/100px.jpg
../../images/100px.jpg
../../../images/100px.jpg
http://example.com/images/100px.jpg
aimages/100px.jpga
1images/100px.jpg1
.images/100px.jpg.
-images/100px.jpg-
View gist:1955553
/*{"k":"0.10.0","mac":"1:2e55af9895fe193a2966ce7d808ef313d38e823ed5892dda725cd5e8f3c4fba5","version":"8173121","created":"2012-01-24T20:45:58Z"}*/
;
(function (window, document, undefined) {
var j = true,
o = null,
q = false;
function r(a) {
return function (c) {
this[a] = c
You can’t perform that action at this time.