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
import os | |
def writefile(name, contents): | |
directory = os.path.dirname(os.path.realpath(__file__)) | |
filename = os.path.join(directory, "%s.py" % name) | |
with open(filename, "a") as openfile: | |
openfile.write(contents) | |
print 'done' |
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
@Devtool = new Backbone.Marionette.Application | |
Devtool.module 'Models' | |
Devtool.module 'Collections' | |
Devtool.module 'Views' | |
Devtool.module 'Controllers' | |
Devtool.module 'Routers' | |
Backbone.Marionette.Renderer.render = (template, data) -> | |
if !JST[template] |
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
namespace :notify do | |
task :airbrake do | |
# We need to do this require here, becaure Airbrake will load up ActiveSupport, | |
# which will set up Kernel#capture, which will fudge up capistrano's capture method. | |
# If we do the require here (just-in-time) and just HOPE that nobody after | |
# us needs capture, we might be ok. | |
# | |
# Yeah, really. | |
require 'airbrake' | |
require 'airbrake_tasks' |
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
Bundle 'The-NERD-tree' | |
nmap <leader>n :NERDTreeClose<CR>:NERDTreeToggle<CR> | |
nmap <leader>N :NERDTreeClose<CR> | |
let NERDTreeBookmarksFile=expand("$HOME/.vim/NERDTreeBookmarks") " Store the bookmarks file | |
let NERDTreeShowBookmarks=1 " Show the bookmarks table on startup | |
let NERDTreeShowFiles=1 " Show hidden files, too | |
let NERDTreeShowHidden=1 | |
let NERDTreeQuitOnOpen=0 " Don't quit on opening files from the tree | |
let NERDTreeHighlightCursorline=1 " Highlight the selected entry in the tree |
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
staging: | |
hosts: [[mongo1.stag.roqua.nl, 27017], [mongo2.stag.roqua.nl, 27017], [mongo3.stag.roqua.nl, 27017]] | |
username: USERNAME | |
password: PASSWORD | |
database: roqua_staging_KLANTNAAM | |
read_secondary: true | |
max_retries_on_connection_failure: 3 | |
persist_in_safe_mode: true | |
production: |
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
HoNOS | |
Date 2011-03-14 10:44:57 +0100 | |
roqua_id string | |
"Intern ID toegekend door RoQua" | |
patient_id string | |
"Patientnummer toegekend door GGZ instelling" | |
gender string |
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
" Use vim settings, rather then vi settings (much better!) | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/vundle.git | |
call vundle#rc() | |
filetype plugin indent on " enable detection, plugins and indenting in one step | |
let mapleader = "," |
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 MergeAdhd < ActiveRecord::Migration | |
def self.up | |
adhd1 = RoquaQuestionnaire.find_by_key "adhd" | |
adhd1_bulk = RoquaQuestionnaire.find_by_key "adhd_bulk" | |
adhd2 = RoquaQuestionnaire.find_by_key "adhd2" | |
adhd2_bulk = RoquaQuestionnaire.find_by_key "adhd2_bulk" | |
[adhd1, adhd1_bulk, adhd2, adhd2_bulk].each do |q| | |
# Prefix all values.keys with questionnaire.key | |
q.answers.each do |answer| |
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
test |
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
test | |
1323133 |