Skip to content

Instantly share code, notes, and snippets.

@jhilden
jhilden / railslove_developer_job_post.md
Created May 9, 2019 08:26
💚 Full-Stack Entwickler/in bei freundlicher kleiner Web/Mobile Agentur in Köln 💚

Hallo, wir sind ein Team aus 15 freundlichen Entwickler/innen und Designer/innen und haben in unserem gemütlich eingerichteten Büro im Herzen der Kölner Südstadt noch zwei freie Schreibtische, für die wir dieses Jahr zwei weitere Entwickler/innen finden wollen. Hättest du Lust? Wir haben Kunden aus dem Startup-Bereich, aber auch aus etablierten Unternehmen und bieten das komplette Produktentwicklungsspektrum an: von Business Case und User Research, über Design und Konzept, bis hin zur Full-Stack-Entwicklung. Wir geben uns Mühe unsere Kunden mit Bedacht auszuwählen und stellen Sinnhaftigkeit, Nachhaltigkeit und Sympathie über rein finanzielle Faktoren.

Was uns besonders macht

Wir schätzen an der Arbeit bei Railslove, dass wir viel Freiheit haben und das Vertrauen bekommen, eigenständig zu entscheiden wie wir am besten Arbeiten können (z.B. Stichworte: flexible Arbeitszeiten, Home Office). Wir sind ein Team von sehr passionierten Techies, die sich ständig weiterentwickeln und voneinander lernen möchten. P

@jhilden
jhilden / Gemfile.lock
Created October 21, 2016 09:45
Gemfile.lock for css_splitter
PATH
remote: .
specs:
css_splitter (0.4.6)
sprockets (>= 2.0.0)
GEM
remote: http://rubygems.org/
specs:
actionmailer (4.2.5)
@jhilden
jhilden / README.md
Last active October 3, 2021 10:32
Setup for using i18n-js together with react-rails i18n-js for server side prerendering

When using react-rails for an internationalized app it makes a lot of sense to use i18n-js for translations, so that you can reuse the the strings from your rails app's .yml files (and all the tooling & services that exist around that).

When you use the prerender feature of react-rails you face 2 problems:

  • The first is that translation.js & i18n.js from i18n-js need to be loaded inside the server-side JS prerendering processes, which is achieved by loading them inside the components.js.
  • The second problem is the server processes need to be aware of the current locale of each HTTP request. This is done by adding a custom renderer and using the before_render hook to configure i18n-js accordingly for each render call.
@jhilden
jhilden / SassMeister-input-HTML.html
Created May 24, 2014 12:29
Generated by SassMeister.com.
<div class="m-box">
<h3 class="m-box--header">Some buttons</h3>
<div class="m-box--body">
<a class="m-button">Button</a>
<a class="m-button as-small">Small button</a>
<a class="m-button">
<i class="m-button--icon">€</i>
Button with icon
</a>
<a class="m-button is-disabled">
@jhilden
jhilden / SassMeister-input-HTML.html
Created May 24, 2014 12:23
Generated by SassMeister.com.
<div class="m-box b-button-box">
<h3 class="m-box--header">button box</h3>
<div class="m-box--body">
<a class="m-button b-button-box--button">Button</a>
<a class="m-button as-small b-button-box--button">Small button</a>
<a class="m-button b-button-box--button">
<i class="m-button--icon">€</i>
Button with icon
</a>
</div>
@jhilden
jhilden / papertrail log
Created April 25, 2014 12:45
upload issue
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656190] nginx invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656195] nginx cpuset=/ mems_allowed=0
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656198] Pid: 23538, comm: nginx Not tainted 3.2.0-41-virtual #66-Ubuntu
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656200] Call Trace:
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656208] [<ffffffff81119721>] dump_header+0x91/0xe0
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656211] [<ffffffff81119aa5>] oom_kill_process+0x85/0xb0
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656213] [<ffffffff81119e4a>] out_of_memory+0xfa/0x220
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656216] [<ffffffff8111f833>] __alloc_pages_nodemask+0x8c3/0x8e0
Apr 25 14:21:33 makerist-production-srv-nng3w kernel: [566455.656221] [
@jhilden
jhilden / .items
Last active August 29, 2015 13:59
openHAB zwave details danfoss living connect z
DateTime Date "Date [%1$tA, %1$td.%1$tm.%1$tY]" <calendar> { ntp="Europe/Berlin:de_DE" }
Group gZwaveNode04
String ZwaveNode04HomeID "Home ID [%s]" (gZwaveNode04) {zwave="4:1:command=info,item=home_id"}
Number ZwaveNode04NodeID "Node ID [%s]" (gZwaveNode04) {zwave="4:1:command=info,item=node_id"}
Number Thermostat_Battery "Thermostat Battery [%d %%]" {zwave="4:1:command=battery"}
@jhilden
jhilden / _action_button.md
Last active December 29, 2015 06:29
Livingstyleguide integration

// app/assets/stylesheets/modules/_action_button.css.ass

Action Button

Button style usually used for call to actions::

<button type="button" class="***m-action_button***">Action button</button>
<a class="***m-action_button***">Action button</a>
@jhilden
jhilden / discourse_sso.rb
Last active June 16, 2018 04:11
# Discourse SSO Rails::Engine gem to perform cookie-based SSO login in [Discourse](http://www.discourse.org/). It expects your main app to set a cookie readable by Discourse with a Discourse `user_id` as the value (encrypting the value is a very good idea). See: http://meta.discourse.org/t/give-me-those-authentication-hooks-d/3943
module DiscourseSso
module ControllerExtensions
def self.included(klass)
klass.append_before_filter :ensure_sso_login
end
private
@jhilden
jhilden / SassMeister-input.sass
Created February 23, 2013 20:21
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.5
.context-a, .context-b
border: 1px
.some-class
color: red
.another-class
color: blue