Skip to content

Instantly share code, notes, and snippets.

- (void)getSomeStuff {
id localSelf = self;
[self getAPIVersionWithCallback:^(NSString *version) {
if ([version isEqualToString:@"1.0"]) {
[localSelf getSomeStuffAPI1];
} else {
[localSelf getSomeStuffAPI2];
}
<VirtualHost *:80>
ServerName tent.jeena.net
ServerAdmin [email protected]
DocumentRoot /home/jeena/tent/tentd-admin/public
SetEnv RACK_ENV "development"
SetEnv DATABASE_URL "postgres://password:jeena@localhost/jeena_tent_server"
SetEnv ADMIN_USERNAME "jeena"
SetEnv ADMIN_PASSWORD "password"
<!DOCTYPE html>
<title>test</title>
<style type="text/css">
#navi {
padding: 0;
margin: 0;
list-style-type: none;
}
83.233.171.64 - - [30/Oct/2012 22:15:17] "POST /posts HTTP/1.1" 200 - 0.0814
{:message=>"[] Connection refused - connect(2)", :backtrace=>["/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `initialize'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `open'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:in `timeout'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in `timeout'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `connect'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in `do_start'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:in `start'", "/Users/jeena/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1284:in `request'", "/Users/jeena/.rvm/gems/ruby-1.9.3-p194/gems/faraday-0.8.4/lib/faraday/adapter/net_http.
Header set Link '<https://rcs-tent.herokuapp.com/profile>; rel="https://tent.io/rels/profile"'
83.233.171.64 - - [22/Oct/2012 21:56:13] "POST /posts HTTP/1.1" 200 - 0.0769
83.233.171.64 - - [22/Oct/2012 21:56:13] "GET /posts?limit=10&post_types=https%3A%2F%2Ftent.io%2Ftypes%2Fpost%2Fstatus%2Fv0.1.0,https%3A%2F%2Ftent.io%2Ftypes%2Fpost%2Frepost%2Fv0.1.0&since_id=f3jo8w&since_id_entity=https%3A%2F%2Fjeena.tent.is HTTP/1.1" 200 - 0.0942
TentD::Model::NotificationSubscription::NotificationError
/Users/jeena/.rvm/gems/ruby-1.9.3-p194/bundler/gems/tentd-7291e4fe42d0/lib/tentd/model/notification_subscription.rb:82:in `rescue in notify_about'
/Users/jeena/.rvm/gems/ruby-1.9.3-p194/bundler/gems/tentd-7291e4fe42d0/lib/tentd/model/notification_subscription.rb:74:in `notify_about'
/Users/jeena/.rvm/gems/ruby-1.9.3-p194/bundler/gems/tentd-7291e4fe42d0/lib/tentd/model/notification_subscription.rb:70:in `notify'
/Users/jeena/.rvm/gems/ruby-1.9.3-p194/bundler/gems/tentd-7291e4fe42d0/lib/tentd/notifications/girl_friday.rb:15:in `block in <class:Notifications>'
/Users/jeena/.rvm/gems/ruby-1.9.3-p194/gems/girl_friday-0.1
<!DOCTYPE html>
<head>
<title>YouTube Meta Data</title>
<script>
function $(id) {
return document.getElementById(id);
}
function callback(meta) {
var data = meta["data"];
@jeena
jeena / gist:3881944
Created October 12, 2012 22:21
Tent.is User stylesheet
/*
Userstyle for Tent.is
It is just a quick and dirty thing because I assume
that the HTML will change over time anyway.
Feel free to adapt it to your needs.
And if you use Flattr, flattr this gist :-)
*/
* {
#include <MenuBackend.h>
#include <LiquidCrystal.h>
#define VERSION "0.0.1"
#define B_UP 0
#define B_DOWN 1
#define B_ENTER 2
#define B_CANCEL 3
MenuItem runProgram = MenuItem("Run program");
printMenuItem(runProgram);
void printMenuItem(MenuItem *itemCurrent) {
}