This file contains 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
def hello | |
p "Hello, world!" | |
end |
This file contains 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
" Vim syntax file | |
" Language: Mustache | |
" Maintainer: Juvenn Woo <machese@gmail.com> | |
" Screenshot: http://imgur.com/6F408 | |
" Version: 1 | |
" Last Change: 2009 Oct 15 | |
" Remark: | |
" It lexically hilights embedded mustaches (exclusively) in html file. | |
" While it was written for Ruby-based Mustache template system, it should work for Google's C-based *ctemplate* as well as Erlang-based *et*. All of them are, AFAIK, based on the idea of ctemplate. | |
" References: |
This file contains 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
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html | |
Hi everyone, I'm Chris Wanstrath. | |
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But | |
then I took a few moments and thought, Wait, why? Why me? What am I supposed | |
to say that's interesting? Something about Ruby, perhaps. Maybe the | |
future of it. The future of something, at least. That sounds | |
keynote-y. | |
This file contains 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 push heroku | |
Counting objects: 12, done. | |
Compressing objects: 100% (10/10), done. | |
Writing objects: 100% (10/10), 1.65 KiB, done. | |
Total 10 (delta 6), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Sinatra app detected | |
Compiled slug size is 272K | |
-----> Launching........................................................... failed (Heroku error) |
This file contains 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 diff --cached mustache/template.rb | |
diff --git a/vendor/mustache/mustache/template.rb b/vendor/mustache/mustache/template.rb | |
index 365e421..5b98d29 100644 | |
--- a/vendor/mustache/mustache/template.rb | |
+++ b/vendor/mustache/mustache/template.rb | |
@@ -131,12 +131,18 @@ class Mustache | |
# Partials are basically a way to render views from inside other views. | |
def compile_partial(name) |
This file contains 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
{{#posts}} | |
{{! this is post stuff}} | |
{{/posts}} |
This file contains 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
application: bt-coronet | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /s | |
static_dir: static | |
- url: /favicon.ico |
This file contains 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
The error must be caused by exmpp_jid:to_lower(""). | |
I suspect the problem is, after superfeedr authorized my request with: | |
<iq type="result" id="auth" /> | |
it sends a | |
<presence /> |
This file contains 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
class PuSHCallback < EM::Connection | |
include EM::HttpServer | |
def post_init | |
puts Time.now.to_s + "> New callback initialized" | |
end | |
def process_http_request | |
response = EM::DelegatedHttpResponse.new(self) | |
puts Time.now.to_s + "> Verify requset from " + @http_request_uri |
This file contains 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 -d "hub.verify=ksflsdfjl&hub.token=dsklafjl&hsadkfj=18972347" "http://localhost:8080/subbub?a=8437&b=85498&c=385794" | |
http_protocol:HTTP/1.1 | |
http_request_method:POST | |
http_cookie: | |
http_if_none_match: | |
http_content_type:application/x-www-form-urlencoded | |
http_path_info:/subbub | |
http_request_uri:/subbub | |
http_query_string:a=8437&b=85498&c=385794 |
OlderNewer