Skip to content

Instantly share code, notes, and snippets.

View RolandStuder's full-sized avatar

Roland Studer RolandStuder

View GitHub Profile
require "minitest/autorun"
class AllFutures
class Relation
attr_accessor :records
def initialize(records= [], klass: nil)
@records = records
@klass = klass
end
@RolandStuder
RolandStuder / lazy_load_controller.js
Last active January 12, 2021 15:07
stimulus-reflex-lazy-loader
import ApplicationController from './application_controller'
import StimulusReflex from "stimulus_reflex";
export default class extends ApplicationController {
connect(){
StimulusReflex.register(this)
if (!this.element.id) {
this.element.id = this.randomId()
}
this.loadReflex()
title date draft tags
Google Wave - hat noch einen weiten Weg vor sich…
Fri, 09 Oct 2009 10:16:00 +0000
false
review
google
wave

Ich habe vor einigen Tagen meinen Google Wave Zugriff erhalten. Meine ersten Eindrücke sind zwiespäötig, einerseits sehe ich grosses Potential, andererseits hat das Wavekonzept einige Probleme.

@RolandStuder
RolandStuder / SketchSystems.spec
Last active June 9, 2018 11:38
CommentsInSektchSystemsSpec
CommentsInSektchSystemsSpec
Spec
uncommented*
# I can actually comment, that's helpful
comment with some syntax -> commented
commented
remove comment -> uncommented
@RolandStuder
RolandStuder / SketchSystems.spec
Last active June 9, 2018 11:08
PeopleListWithVeteranFilter
PeopleListWithVeteranFilter
Index
New filter -> Filter
Default
Filtered
Filter
select by veteran years -> by veteran years
cancel -> Index
ok -> Filtered
@RolandStuder
RolandStuder / github-board-estimates.js
Last active April 27, 2017 10:49
Enables use of estimates on Github board
// custom javascript for github board
// Strings like '12h' are summed on the top of the columns.
var updateEstimates = window.setInterval(calculateEstimates, 500);
function calculateEstimates(){
var columns = $('.project-column')
for (var i = 0; i < columns.length; i++) {
var sumOfColumn = getSumOfPoints($(columns[i]).find("a.h5").text());