Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ni-ka
ni-ka / resume.json
Last active February 24, 2021 18:24
resume.json
{
"basics": {
"name": "Nils Kaiser",
"label": "Founder and Principal Advisor at kaikai",
"picture": "",
"email": "[email protected]",
"phone": "",
"website": "https://kaikai.dev",
"summary": "Passionate Digital Development and ICT4D adviser, and the founder of a team of African consultants (kaikai.dev). Creative ICT generalist with 10+ years of experience and a background in Political Science. Team player and enthusiastic communicator in four languages.",
"location": {
// ==UserScript==
// @name My Fancy New Userscript
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match http://tableau1.eocng.org/views/CallCenterLive/*
// @grant none
// ==/UserScript==
@ni-ka
ni-ka / README.md
Last active August 29, 2015 14:04
Custom brunch server to proxy api requests to backend (supports reload)

Usage

  1. Put server.coffee next to config.coffee
  2. Register server.coffee in config.coffee server: path: 'server.coffee'
  3. Add required modules to package.json npm install --save express http-proxy

Notes

source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'therubyrhino'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
@ni-ka
ni-ka / Gemfile
Last active December 24, 2015 12:19
Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
berm00259937a:expertondemand c5168972$ cucumber features/acceptance_features/profiles/completeness.feature:7
Using the default profile...
/Users/c5168972/.rvm/gems/ruby-1.9.3-p0@expertondemand/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
@javascript
Feature: Profile completeness
As a user I would like to see an indication of my profile completeness
so I will know If I have provided sufficient information
Scenario: Display completeness editing profile # features/acceptance_features/profiles/completeness.feature:7
berm00259937a:expertondemand c5168972$ cucumber features/acceptance_features/profiles/completeness.feature:7
Using the default profile...
/Users/c5168972/.rvm/gems/ruby-1.9.3-p0@expertondemand/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead.
@javascript
Feature: Profile completeness
As a user I would like to see an indication of my profile completeness
so I will know If I have provided sufficient information
Scenario: Display completeness editing profile # features/acceptance_features/profiles/completeness.feature:7
@ni-ka
ni-ka / sunspot_dynamic_fields_patch.rb
Created May 21, 2012 12:49
monkey patch to allow use of dynamic fields in boost function
module Sunspot
class FieldFactory::Dynamic
# avoid use of : in field name
def build(dynamic_name)
AttributeField.new("#{@name}_#{dynamic_name}", @type, @options.dup)
end
end
class Setup
# support using dynamicfields by using function { :"dynamic_field:field_name"}
class User
include MongoMapper::Document
key :uid, String, :required => true, :unique => true
one :profile
end
class Profile
include MongoMapper::EmbeddedDocument