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
;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 0 | |
;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3 | |
;;; Source level debugging is on | |
;;; Source file recording is on | |
;;; Cross referencing is on | |
; (TOP-LEVEL-FORM 0) | |
; (TOP-LEVEL-FORM 1) | |
; Loading text file /home/jakub/.lisp-loading/graphs-loading.lisp | |
; Loading text file /home/jakub/.lisp-loading/loading.lisp | |
; (TOP-LEVEL-FORM 2) |
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
%% definice linearniho usporadani prvku, to jest a < b < c < d < e < f < g | |
lt(a,b). lt(a,c). lt(a,d). lt(a,e). lt(a,f). lt(a,g). | |
lt(b,c). lt(b,d). lt(b,e). lt(b,f). lt(b,g). | |
lt(c,d). lt(c,e). lt(c,f). lt(c,g). | |
lt(d,e). lt(d,f). lt(d,g). | |
lt(e,f). lt(e,g). | |
lt(f,g). | |
%% kazdy prvek je roven prave sobe | |
eq(X,X). |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
void cti(char* cesta) | |
{ | |
FILE* in = fopen(cesta, "r"); | |
FILE* out = fopen("out.txt", "w"); | |
if (in == NULL || out == NULL) | |
exit(1); |
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 'eventmachine' | |
EventLoopNotRunning = Class.new(StandardError) | |
class AMQPHelper | |
def initialize | |
raise EventLoopNotRunning unless EM.reactor_running? | |
end | |
def self.start_reactor(&block) |
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
From: /home/jakub/.rvm/gems/ruby-2.0.0-p247@objednavky/gems/devise-3.1.1/lib/devise/controllers/helpers.rb @ line 254 Devise::Controllers::Helpers#sign_in_and_redirect: | |
252: def sign_in_and_redirect(resource_or_scope, *args) | |
253: options = args.extract_options! | |
=> 254: scope = Devise::Mapping.find_scope!(resource_or_scope) | |
255: resource = args.last || resource_or_scope | |
256: sign_in(scope, resource, options) | |
257: redirect_to after_sign_in_path_for(resource) | |
258: 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
Gems included by the bundle: | |
* actionmailer (4.0.0) | |
* actionpack (4.0.0) | |
* activemodel (4.0.0) | |
* activerecord (4.0.0) | |
* activerecord-deprecated_finders (1.0.3) | |
* activesupport (4.0.0) | |
* addressable (2.3.5) | |
* annotate (2.5.0) | |
* arel (4.0.1) |
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
#!/usr/bin/env ruby | |
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
# gem 'rails', github: 'rails/rails' | |
gem 'rails' | |
gem 'sqlite3' | |
GEMFILE |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
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
Started GET "/canteens/20/edit" for 127.0.0.1 at 2014-07-09 21:23:24 +0200 | |
Processing by CanteensController#edit as HTML | |
Parameters: {"id"=>"20"} | |
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 18 ORDER BY "users"."id" ASC LIMIT 1[0m | |
finding canteen | |
0: call ActiveSupport::Dependencies::ModuleConstMissing#const_missing | |
/home/jakub/.rvm/gems/ruby-2.1.2@objednavky/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:178 | |
1: call Module#anonymous? | |
/home/jakub/.rvm/gems/ruby-2.1.2@objednavky/gems/activesupport-4.1.4/lib/active_support/core_ext/module/anonymous.rb:16 | |
1: return Module#anonymous? |
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
level = 0 | |
call_trace = TracePoint.new(:call) do |event| | |
indent = ' ' * level | |
Rails.logger.info("#{indent}#{level} : #{event.event} " + | |
"#{event.defined_class}\##{event.method_id} " + | |
"@ #{event.path}:#{event.lineno}") | |
level += 1 | |
end |
OlderNewer