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
require 'rest-client' | |
require 'hpricot' | |
require 'isaac' | |
configure do |c| | |
c.nick = "cheeta" | |
c.server = "code.thruhere.net" | |
c.port = 6667 | |
c.realname = 'LA SCIMMIA' | |
c.verbose = true |
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 create(resources) | |
resources.each do |resource| | |
execute do |t| | |
t.index.add(File.join(resource.model.storage_name, 'attributes.json'), serialize(resource)) | |
end | |
end | |
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
loop{$><<">> ";gets;$><<'=> ';p eval$_} |
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 read(query) | |
object = File.join("#{query.model.storage_name.to_s}", "#{}", 'attributes.json') | |
attributes = JSON.parse(File.open(object).read) | |
query.filter_records(attributes) | |
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
require'rdiscount';require'erb';z=File | |
Dir["posts/*"].grep(/md/){|f,x|x=z.basename(f,".md"); | |
(t=z.new("posts/#{x}.html","w+")).puts(Markdown.new(z.read(f)).to_html);t.close} | |
Dir["**"].grep(/erb/){|f,x|x=z.basename(f,".erb"); | |
(t=z.new("#{x}.html","w+")).puts(ERB.new(z.read(f)).result);t.close} |
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
--- | |
--- | |
$txtcolor: #000 | |
$txthindent: 1.5em | |
$txtvindent: 1.5em | |
$docvindent: 3em | |
// http://www.positioniseverything.net/easyclearing.html | |
= clearfix |
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
require './minirest' | |
on "https://convore.com" do | |
conf do | |
@user = "fyskij" | |
@pass = "mypass" | |
end | |
get "/api/account/verify.json" |
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
An exception occurred running /usr/lib/rubinius/1.2/lib/bin/irb.rb | |
Coercion error: nil.to_str => String failed (TypeError) | |
Backtrace: | |
Type.coerce_to at kernel/common/type.rb:22 | |
Kernel(Class)#StringValue at kernel/common/kernel.rb:116 | |
IO.foreach at kernel/common/io.rb:218 | |
IRB.print_usage at /usr/lib/rubinius/1.2/lib/irb/help.rb:18 | |
IRB.parse_opts at /usr/lib/rubinius/1.2/lib/irb/init.rb:185 | |
IRB.setup at /usr/lib/rubinius/1.2/lib/irb/init.rb:19 |
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
➜ tomdoc git:(tomdoc.rb) ✗ tomdoc | |
<internal:lib/rubygems/custom_require>:29:in `require': no such file to | |
load -- colored (LoadError) | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from | |
/usr/lib/ruby/gems/1.9.1/gems/tomdoc-0.2.0/lib/tomdoc.rb:4:in `<top | |
(required)>' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from /usr/lib/ruby/gems/1.9.1/gems/tomdoc-0.2.0/bin/tomdoc:4:in |
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
"Localmind per iPhone è il futuro del local crowdsourcing" - NY Times | |
"Idea Geniale: aggiungere Domande e Risposte ai check-in." - Mashable | |
"Finalmente, i servizi di check-in hanno un uso più pratico." - Business Insider | |
"Quando si parla di Q&A assistiti dalla comunità, questa è in definitiva *l'applicazione* da guardare." - GigaOm | |
COS'È LOCALMIND? | |
Localmind ti permette di fare domande a persone che hanno fatto check-in in un determinato luogo, dandoti così la possibilità di sapere cosa sta succedendo in questo momento nei posti che ti interessano. Scopri se il bar è affollato, quali specialità ci sono al ristorante o se c'è il Wi-Fi al coffee-shop. Onniscienza in tempo reale a portata di mano. | |
Robert Scoble: "Ho visto TONNELLATE di applicazioni location-based differenti nelle ultime due settimane. Ma oggi ne ho scoperto una davvero utile al SXSW: Localmind." |