Skip to content

Instantly share code, notes, and snippets.

View DonKoko's full-sized avatar
🏄‍♂️
...

Nikolay Bonev DonKoko

🏄‍♂️
...
View GitHub Profile
subscribe_to(Event::PRIMARY_ELECTED, Event::PrimaryElected.new(self))
seeds.each{ |seed| add(seed) }
ObjectSpace.define_finalizer(self, self.class.finalize(pools))
end
name: Evenementen
slug: events
# description: A description of the content type for the editors
label_field_name: name
order_by: _position
order_direction: asc
public_submission_enabled: true
public_submission_account_emails: []
fields:
- name:
{% link_to 'home' %}
<img src="{{ site.metafields.theme.logo_black }}"
data-src-retina="{{ site.metafields.theme.logo_black_retina }}"
class="logo"
width="152" height="21" alt="">
{% endlink_to %}
{% link_to 'home' %}
<img src="{{ site.metafields.theme.logo_white }}"
data-src-retina="{{ site.metafields.theme.logo_white_retina }}"
tarted GET "/" at 2016-05-27 11:18:49 +0200
Params: {}
Timezone: UTC
Detecting locale NL
Found page "Hoofdpagina" [index]
Error: undefined method `find' for nil:NilClass
/Users/Donkoko/.rvm/gems/ruby-2.2.0/gems/locomotivecms_steam-1.1.1/lib/locomotive/steam/liquid/drops/metafields.rb:93:in `_find_namespace'
/Users/Donkoko/.rvm/gems/ruby-2.2.0/gems/locomotivecms_steam-1.1.1/lib/locomotive/steam/liquid/drops/metafields.rb:84:in `find_namespace'
/Users/Donkoko/.rvm/gems/ruby-2.2.0/gems/locomotivecms_steam-1.1.1/lib/locomotive/steam/liquid/drops/metafields.rb:78:in `before_method'
/Users/Donkoko/.rvm/gems/ruby-2.2.0/gems/locomotivecms-liquid-4.0.0/lib/liquid/drop.rb:39:in `invoke_drop'
---
title: Evenement
slug: evenement
listed: false
published: true
content_type: "events"
is_layout: false
---
source 'https://rubygems.org'
if ENV['HEROKU_APP_NAME']
ruby '2.2.2'
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.2.6'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
@DonKoko
DonKoko / controller.rb
Created January 24, 2017 14:31
CustomDomain rails
@tournament_season =
if CustomDomain.where(:domain => request.host).any?
CustomDomain.where(:domain => request.host).first.tournament_season
else
TournamentSeason.find(params[:id])
end
@DonKoko
DonKoko / gemfile.rb
Last active February 16, 2017 13:35
Gemfile from heroku loco engine
source 'https://rubygems.org'
if ENV['HEROKU_APP_NAME']
ruby '2.2.2'
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.2.6'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
@DonKoko
DonKoko / action.liquid
Created March 17, 2017 15:02
filtering
{% action "Filter gemeente entries" %}
// Get the current municipality(scope of the page)
var municipality = getProp("municipality");
// Get the name of the current category for the breadcrumbs
var category_query = getProp('params.category_query');
setProp('category_query', category_query);
@DonKoko
DonKoko / Grey
Last active May 26, 2017 14:04
Code snippets for different headers
header#main-header, .et-fixed-header {
-webkit-box-shadow:none !important;
-moz-box-shadow:none !important;
box-shadow:none !important;
background-color: #f6f5fb !important;
}