I hereby claim:
- I am calebwoods on github.
- I am calebwoods (https://keybase.io/calebwoods) on keybase.
- I have a public key whose fingerprint is 391E 05D0 70B1 0E2B A2EA 9A34 463D 65F1 B1EF DEE1
To claim this, I am signing this object:
| MyApp::Application.configure do | |
| silence_warnings do | |
| begin | |
| require 'pry' | |
| IRB = Pry | |
| rescue LoadError | |
| end | |
| end | |
| end |
| describe "with invalid params" do | |
| it "assigns the snippet as @snippet" do | |
| snippet = FactoryGirl.create(:snippet) | |
| # Trigger the behavior that occurs when invalid params are submitted | |
| Snippet.any_instance.stub(:save).and_return(false) | |
| put :update, :id => snippet.id.to_s, :snippet => {} | |
| assigns(:snippet).should eq(snippet) | |
| end | |
| it "re-renders the 'edit' template" do |
| sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.3-p0@global/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle |
| // Zone spanning polygon | |
| { | |
| "type": "MultiPolygon", | |
| "coordinates": [ | |
| [ | |
| [ | |
| [-90.00575, 35.99485], | |
| [-89.99339, 35.99485], | |
| [-89.99339, 36.00481], | |
| [-90.00575, 36.00481], |
| <html> | |
| <head> | |
| <title>Draw Sample Polygons</title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
| <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> | |
| <script type="text/javascript" src="https://raw.github.com/HPNeo/gmaps/master/gmaps.js"></script> | |
| </head> | |
| <body> | |
| <div id="map" style="width: 600px; height: 600px"></div> |
| def api_post_gziped(url, params={}, api_token = 'test_token') | |
| gzipped_data = ActiveSupport::Gzip.compress(params.to_json) | |
| post(url, gzipped_data, headers.merge('HTTP_AUTHORIZATION' => basic_auth_for(api_token), | |
| "HTTP_ACCEPT_ENCODING" => "gzip", | |
| 'CONTENT_TYPE' => 'gzip/json')) | |
| end | |
| def decompressed_json_body | |
| Yajl::Parser.parse(ActiveSupport::Gzip.decompress(response.body)) | |
| end |
| # PostgreSQL Client Authentication Configuration File | |
| # =================================================== | |
| # | |
| # Refer to the "Client Authentication" section in the PostgreSQL | |
| # documentation for a complete description of this file. A short | |
| # synopsis follows. | |
| # | |
| # This file controls: which hosts are allowed to connect, how clients | |
| # are authenticated, which PostgreSQL user names they can use, which | |
| # databases they can access. Records take one of these forms: |
| javascript:(function () { | |
| var mergeMessage = $('.merge-commit-message'); | |
| if (mergeMessage.length > 0) { | |
| prNum = location.pathname.split('/').slice(-1)[0]; | |
| var prTitle = $('.discussion-topic-title').text(); | |
| mergeMessage.val('' + prTitle + ' [KB #NUMBER] (GH #' + prNum + ')'); | |
| } | |
| })(); |
| server { listen 80; | |
| server_name example.com; | |
| access_log /var/log/example.com/nginx.access.log; | |
| error_log /var/log/example.com/nginx.error.log; | |
| root /var/www/apps/example.com/public; | |
| charset utf-8; | |
| location / { | |
| rewrite ^ https://$host$request_uri? permanent; | |
| } |
I hereby claim:
To claim this, I am signing this object: