Skip to content

Instantly share code, notes, and snippets.

View trueqbit's full-sized avatar

klaus triendl trueqbit

View GitHub Profile
@trueqbit
trueqbit / jsviews-jqueryui-widgets.js.v0.9.85 (Beta).diff
Created March 29, 2017 18:52
jsviews-jqueryui-widgets.js.v0.9.85 (Beta).diff
diff --git a/jsviews-jqueryui-widgets.js b/jsviews-jqueryui-widgets.js
index 3340f2b..dce644a 100644
--- a/jsviews-jqueryui-widgets.js
+++ b/jsviews-jqueryui-widgets.js
@@ -242,7 +242,14 @@ checkbox: {
mainElement: "input",
linkedElement: "input",
setSize: true,
- onAfterLink: checkboxRadioOnAfterLink
+ onAfterLink: checkboxRadioOnAfterLink,
@trueqbit
trueqbit / jsviews-jqueryui-datepicker.js
Created April 1, 2017 08:50
type/value agnostic jsviews datepicker tag control (issue 360)
(function($) {
'use strict';
$.views.tags({
// workaround https://github.com/BorisMoore/jsviews/issues/374
// concerning https://github.com/BorisMoore/jsviews/issues/360#issuecomment-272936627
// delegate dealing with type of values to converters
datepicker_360_374: {
baseTag: "widget",
widgetName: "datepicker",
@trueqbit
trueqbit / jsviews-jqueryui-timespinner-globalizejs_legacy.js
Last active April 10, 2017 12:34
A timespinner control for jsviews and jquery-ui
// utilize globalizejs 0.x
(function($, Globalize) {
'use strict';
$.views.tags({
timespinner: {
baseTag: 'spinner',
options: function() {
var tag = this;
var opts = tag.baseApply(arguments);
@trueqbit
trueqbit / array2.h
Last active January 23, 2020 08:18
C++17: Experiment with a C array wrapper container that allows construction/assignment from a C array and from arrays differing in type
#pragma once
#include <type_traits>
#include <cstddef>
#include <memory>
#include <utility>
#include <algorithm>
using namespace std;

Keybase proof

I hereby claim:

  • I am trueqbit on github.
  • I am trueqbit (https://keybase.io/trueqbit) on keybase.
  • I have a public key ASBlL3mNpIW1hhodBO_1SpgKUVTHVzYbbjxT8gf4THygzAo

To claim this, I am signing this object: