This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INFO ruby 2.0.0 (2013-06-27) [x86_64-linux] | |
| 2013-10-28T00:57:06.362390+00:00 app[web.1]: [2013-10-28 00:57:06] INFO WEBrick 1.3.1 | |
| 2013-10-28T00:57:06.841370+00:00 heroku[web.1]: State changed from starting to up | |
| 2013-10-28T00:57:06.838929+00:00 heroku[web.1]: Process exited with status 143 | |
| 2013-10-28T00:57:17.008743+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route' | |
| 2013-10-28T00:57:17.008584+00:00 app[web.1]: NoMethodError - undefined method `secure?' for #<Rack::Request:0x007fc66dd9a8d8>: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git remote remove heroku | |
| $ git remote add heroku [email protected]:simple-forecast.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: bundle exec rackup config.ru -p $PORT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| request = Rack::Request.new(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Sinatra::Request:0x007fe074164818 | |
| @env= | |
| {"CONTENT_LENGTH"=>"14", | |
| "CONTENT_TYPE"=>"application/x-www-form-urlencoded", | |
| "GATEWAY_INTERFACE"=>"CGI/1.1", | |
| "PATH_INFO"=>"/", | |
| "QUERY_STRING"=>"", | |
| "REMOTE_ADDR"=>"127.0.0.1", | |
| "REMOTE_HOST"=>"localhost", | |
| "REQUEST_METHOD"=>"POST", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before do | |
| @this_variable = 1+1 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ curl -H "Authorization: BEARER [access token]" "https://alpha-api.app.net/stream/0/users/me/interactions" | |
| { | |
| "data":[ | |
| { | |
| "action":"reply", | |
| "objects":[ | |
| { | |
| // post object | |
| } | |
| ], |