Skip to content

Instantly share code, notes, and snippets.

View robjens's full-sized avatar

Rob J robjens

  • Netherlands
View GitHub Profile
@robjens
robjens / q2018.json
Last active December 4, 2018 22:42
Q-dance top ~1000 van 2018
[{
id: 0,
artist: "Scale",
title: "Amélie",
spotifyTrackID: "spotify:track:3aP6u6TtZDfM0Mux2NnPw5",
imageUrl: "https://i.scdn.co/image/2d46d0fc080cf9f534eb038d9ee49fdb57ed306b",
audioUrl: "https://p.scdn.co/mp3-preview/2d05a4ecbf0356018f9a9328479ea8e4a7c562ef?cid=4cbcc4ca07f7423085ce14d4be4c439a",
Label: "Be Yourself Music",
style: "Hardstyle"
}, {
@robjens
robjens / vis-timeline-graph2d.min.css
Last active July 29, 2018 15:35
Vis.js latest dev version minified timeline for n-nested arbitrary groups
.vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=span]{min-height:0;width:auto}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper::after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-alig
@robjens
robjens / conventions.adoc
Created May 26, 2017 08:08
Git commit verbs etc.

Git conventions

The seven rules of a great Git commit message

  1. Separate subject from body with a blank line.

  2. Limit the subject line to 50 characters.

  3. Capitalize the subject line.

  4. Do not end the subject line with a period.

  5. Use the imperative mood in the subject line.

@robjens
robjens / print-matrix.clj
Last active January 18, 2017 17:04
Scratch of Clojure print-matrix functions string->square
(require '[clojure.string :as string])
(defn square-len?
[s] (= (mod (Math/sqrt (count s))
1)
0.0))
(defn dimensions
"Takes a string s and returns the square root of its length as an integer.
e.g. 2.123 => 2, 2.0 => 2"
@robjens
robjens / case.abnf
Created October 1, 2016 10:42
ABNF Unicode
upper-case = %d65-90 / %d192-214 / %d216-222 / %d256 / %d258 / %d260 / %d262 / %d264 / %d266 / %d268 / %d270 / %d272 / %d274 / %d276 / %d278 / %d280 / %d282 / %d284 / %d286 / %d288 / %d290 / %d292 / %d294 / %d296 / %d298 / %d300 / %d302 / %d304 / %d306 / %d308 / %d310 / %d313 / %d315 / %d317 / %d319 / %d321 / %d323 / %d325 / %d327 / %d330 / %d332 / %d334 / %d336 / %d338 / %d340 / %d342 / %d344 / %d346 / %d348 / %d350 / %d352 / %d354 / %d356 / %d358 / %d360 / %d362 / %d364 / %d366 / %d368 / %d370 / %d372 / %d374 / %d376-377 / %d379 / %d381 / %d385-386 / %d388 / %d390-391 / %d393-395 / %d398-401 / %d403-404 / %d406-408 / %d412-413 / %d415-416 / %d418 / %d420 / %d422-423 / %d425 / %d428 / %d430-431 / %d433-435 / %d437 / %d439-440 / %d444 / %d452 / %d455 / %d458 / %d461 / %d463 / %d465 / %d467 / %d469 / %d471 / %d473 / %d475 / %d478 / %d480 / %d482 / %d484 / %d486 / %d488 / %d490 / %d492 / %d494 / %d497 / %d500 / %d502-504 / %d506 / %d508 / %d510 / %d512 / %d514 / %d516 / %d518 / %d520 / %d522 / %d524 / %d526 /
@robjens
robjens / word.js
Last active July 31, 2016 17:44
SImple JavaScript tokenize, cases, simple but nice to remember
var
word = 'isAWordNotWrittenNormallyLikeThis',
// total number of characters in a word
numChars = word.length,
// number of latin capital letters in the word
numCapitals = word.match(/[A-Z]+/g).length,
// capital character coverage
pctCapitals = Math.floor((numCapitals * 100) / word.length),
// abbreviations must be all capitals
isAbbr = word.length === numCapitals,
@robjens
robjens / modernizr.custom.min.js
Created July 24, 2016 15:55
Modernizr custom build for DAS
/*! modernizr 3.3.1 (Custom Build) | MIT * * https://modernizr.com/download/?-cssanimations-domprefixes-setclasses-shiv-testallprops-testprop !*/ !function(e,t,n){function r(e){var t=w.className,n=Modernizr._config.classPrefix||"";if(x&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),x?w.className.baseVal=t:w.className=t)}function o(e,t){return typeof e===t}function a(){var e,t,n,r,a,i,s;for(var l in E)if(E.hasOwnProperty(l)){if(e=[],t=E[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=o(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)i=e[a],s=i.split("."),1===s.length?Modernizr[s[0]]=r:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=r),y.push((r?"":"no-")+s.join("-"))}}func
@robjens
robjens / animOnScroll.js
Created July 24, 2016 14:20
Codrops animate on scroll script
/**
* animOnScroll.js v1.0.0
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2013, Codrops
* http://www.codrops.com
*/
@robjens
robjens / user.behaviors.clj
Created May 22, 2016 10:31
Lighttable config
;; User behaviors
;; -----------------------------
;; To subtract a behavior, prefix the name with '-' e.g.
;; https://github.com/LightTable/LightTable/blob/master/doc/behavior-and-keymap-configuration.md.
[
;; The app tag is kind of like global scope. You assign behaviors that affect
;; all of Light Table to it.
[:app :lt.objs.style/set-skin "dark"]
@robjens
robjens / demo_config.json
Last active January 7, 2016 00:15
JSON mock data and initial static configuration for codepen frontend grunt work trimming back excess fluff from the pen this way and others.
{
"general": {
"company": "SevenMatches",
"author": "Rob Jentzema"
},
"language": {
"preference": "nl"
},
"resetOnRun": {
"console": false,