Set projects_dict = CreateObject("Scripting.Dictionary")
// ... get a projekt-name, store it in 'key'
If Not projects_dict.Exists(key) Then
projects_dict.Add key, CreateObject("Scripting.Dictionary")
End If
If projects_dict.Item(key).Exists(month) Then
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
root@vmd3328:/var/www/bochumbbdevgroup/current# curl -s https://gist.githubusercontent.com/mislav/4728286/raw/rbenv-doctor.sh | bash -x 2>&1 | |
+ rbenv --version | |
rbenv 0.4.0-98-g13a474c | |
+ rbenv versions | |
2.1.0 | |
* 2.1.2 (set by /var/www/bochumbbdevgroup/current/.ruby-version) | |
+ rbenv global | |
2.1.2 | |
+ env | |
+ grep -E 'PATH|RUBY|BUNDLE|RBENV' |
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 Arm < ActiveRecord::Base | |
belongs_to :bandit, inverse_of: :arm | |
# instead of validating this here, you could also add a uniqueness | |
# constraint through a migration. Behavior would be similiar. | |
validates :bandit, uniqueness: true | |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'rack', github: 'rack/rack' | |
gem 'i18n', github: 'svenfuchs/i18n' | |
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
Function find_or_create_node(dict As Dictionary, key As String) As Dictionary | |
If Not dict.Exists(key) | |
dict.Add(key, new Dictionary) | |
End If | |
Return dict.Item(key) | |
End Function | |
Sub initialize_or_increment_leaf(dict As Dictionary, key As String, value As Double) | |
If Not dict.Exists(key) | |
dict.Add(key, value) |
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
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
ImportError: No module named sphinx | |
brew: superenv removed: -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -I/usr/local/include | |
brew: superenv removed: -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -I/usr/local/include | |
brew: superenv removed: -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith - |
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 a2793dbf0d2b28f1bfa2376ab0eb4e1e71c15716 Mon Sep 17 00:00:00 2001 | |
From: Kai Kuchenbecker <kuchenbecker.k@gmail.com> | |
Date: Sun, 18 Nov 2012 23:56:39 +0100 | |
Subject: [PATCH] added extensive debug-level logging | |
--- | |
src/log_pgsql.c | 18 +++++++++++++++--- | |
1 file changed, 15 insertions(+), 3 deletions(-) | |
diff --git a/src/log_pgsql.c b/src/log_pgsql.c |
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 24739f29e62afd1463db5251909eb31f7f5f1a68 Mon Sep 17 00:00:00 2001 | |
From: Kai Kuchenbecker <kuchenbecker.k@gmail.com> | |
Date: Mon, 19 Nov 2012 00:59:37 +0100 | |
Subject: [PATCH] added some more logging info | |
--- | |
src/log_pgsql.c | 14 ++++++++++---- | |
1 file changed, 10 insertions(+), 4 deletions(-) | |
diff --git a/src/log_pgsql.c b/src/log_pgsql.c |
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 | |
require 'benchmark' | |
require File.expand_path('../config/environment', __FILE__) | |
begin | |
@list = (0..10_000).map{|i| {word: "word_#{i}", word_translation: "translation_#{i}"}} | |
@vocabulary_1 = Vocabulary.create(user_id: User.first.id, title: "Vocabulary #1") | |
@vocabulary_2 = Vocabulary.create(user_id: User.first.id, title: "Vocabulary #2") | |
@vocabulary_3 = Vocabulary.create(user_id: User.first.id, title: "Vocabulary #3") |
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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
addressable (2.5.0) | |
public_suffix (~> 2.0, >= 2.0.2) | |
ansi (1.5.0) | |
ast (2.3.0) | |
axiom-types (0.1.1) | |
descendants_tracker (~> 0.0.4) | |
ice_nine (~> 0.11.0) |
OlderNewer