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
Started HEAD "/" for 77.54.197.178 at 2013-01-27 23:27:56 +0100 | |
NoMethodError (undefined method `to_sym' for nil:NilClass): | |
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:22:in `map' | |
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:22:in `process_action' | |
actionpack (3.0.5) lib/action_controller/metal/rescue.rb:17:in `process_action' | |
actionpack (3.0.5) lib/abstract_controller/base.rb:119:in `process' | |
actionpack (3.0.5) lib/abstract_controller/rendering.rb:41:in `process' | |
actionpack (3.0.5) lib/action_controller/metal.rb:138:in `dispatch' | |
actionpack (3.0.5) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' |
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
<ifModule mod_headers.c> | |
Header set Link '<http://tent.jeena.net:3002/profile>; rel="https://tent.io/rels/profile"' | |
</ifModule> |
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
I, [2012-12-10T23:03:45.875139 #3123] INFO -- : (0.000392s) SELECT * FROM "profile_info_versions" WHERE (("deleted_at" IS NULL) AND ("profile_info_id" = 2)) ORDER BY "version" DESC LIMIT 1 | |
#<NoMethodError: undefined method `version' for nil:NilClass> | |
/home/jeena/tent/tentd/lib/tentd/model/profile_info.rb:58:in `block in get_profile' |
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
tent://post?type=https%3A//tent.io/types/post/status/v0.1.0&content=Thoughts%20about%20Tent%20and%20the%20future%20of%20the%20protocol%20-%20How%20should%20the%20Tent%20protocol%20work%3F%20https%3A//jeena.net/tent-thoughts |
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
class StatisticsController < ApplicationController | |
layout "statistics" | |
def search | |
params.merge!({q: {id_eq: 0}}) if params[:q].blank? #so we avoid displaying all the elements at the first load... | |
@search = OrganizationalUnit.search(params[:q]) | |
if @search.result.length > 0 | |
@organizational_unit_paginated = @search.result(distinct: true).page(params[:page]) |
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
function degrees2dezimal(a) { | |
var a, h=0, m=0, s=0; | |
a = a.split("°"); | |
h = parseInt(a[0].replace(/N|S|O|W/, ""), 10); | |
h = isNaN(h) ? 0 : h; | |
if (a.length > 1) { |
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
# /Users/jeena/Sites/tentd/lib/tentd/api/posts.rb:124 | |
def authorize_post!(env) | |
puts env.params.inspect | |
# ... | |
end | |
# => #<Hashie::Mash attachments=[]> |
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 "AppDelegate.h" | |
@implementation AppDelegate | |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification | |
{ | |
// Insert code here to initialize your application | |
dispatch_queue_t the_queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
NSArray *array = [NSArray arrayWithObjects:@"a", @"b", @"c", @"d", @"e", @"f", nil]; |
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
function MyArray () { | |
console.log("bla"); | |
Array.call(this); | |
} | |
MyArray.prototype = Object.create(Array.prototype) | |
var x = new MyArray() | |
x.push("lala") | |
x.push("lolo") |
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
from PyQt4 import QtCore, QtGui, QtWebKit | |
class WebViewCreator: | |
def __init__(self): | |
self.view = QtWebKit.QWebView() | |
self.view.setPage(QtWebKit.QWebPage()) | |
self.view.connect(self.view, QtCore.SIGNAL('loadFinished(bool)'), self.load_finished) |