Skip to content

Instantly share code, notes, and snippets.

@alber70g
alber70g / Tarmak1.md
Last active October 17, 2017 10:26
This is a collection of words and character combinations that are particulary hard to write when moving to Colemak using Tarmak (Transitional Colemak). It can be considered as a training list for each stage of Tarmak. To learn this and be fluent with it, try to write each word out 4 times and continue with the next word.

Words

hier 
onder 
noemen
genoemd
oefenen 
kijk

here
const doubler = (input) => {
return doubler.operationsByType[typeof input](input);
};
doubler.operationsByType = {
number: (input) => input + input,
string: (input) =>
input
.split('')
.map((letter) => letter + letter)
.join(''),
seta r_filmtweakdarktint "1.1 1.25 1.4"
seta r_filmtweaklighttint "1 1 1.2"
seta r_filmtweakdesaturation "0"
seta r_filmtweakcontrast "1.5"
seta r_filmtweakbrigthness "0.255"
@alber70g
alber70g / toggleWipGitlab.user.js
Last active August 31, 2021 18:51
Hide and Show WIP items in gitlab. **Install Grease or Tampermonkey**. Click the RAW version of the script and it'll redirect to Tamper-/Greasemonkey
// ==UserScript==
// @name Hide WIP on GitLab
// @namespace
// @version 0.2
// @description Dont show WIP in merge requests on GitLab
// @author Alber70g
// @include /.*gitlab.*\/merge_requests/
// @grant none
// @updateURL https://gist.github.com/Alber70g/efe0839dd748df153dc8186c780f4751/raw/toggleWipGitlab.user.js
// ==/UserScript==
@alber70g
alber70g / run-wct.js
Last active July 11, 2017 08:21
Run all suites separately.
/**
* npm install lodash yargs shell
*/
const shell = require('./shell');
const _ = require('lodash');
const argv = require('yargs')
.usage('Usage: node $0 [options]')
.option('all', {
alias: 'a',
@alber70g
alber70g / run-wct.js
Created June 1, 2017 14:51
Run all suites separately
const shell = require('./shell');
const _ = require('lodash');
const argv = require('yargs')
.usage('Usage: node $0 [options]')
.option('all', {
alias: 'a',
boolean: true,
describe: 'Run all test suites (ignores + and - prefixes)'
})
.option('wct', {
#!/bin/bash
# Borrowed from grunt-cli
# http://gruntjs.com/
#
# Copyright (c) 2012 Tyler Kellen, contributors
# Licensed under the MIT license.
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
# Usage:
@alber70g
alber70g / .bashrc
Last active February 3, 2016 09:34
Pull all subdirectories
alias gitall="find . -type d -maxdepth 1 -exec sh -c '(echo -e \"\e[4m{} \e[0m:\" && cd {} && git pull)' ';'"
@alber70g
alber70g / ErrorModel.json
Created November 9, 2015 16:32
Errors and error parameters, error response message
[
{
"key": "fieldRequired",
"message": "{{fieldName}} is required",
"parameters": [
{
"name": "fieldName",
"value": ""
}
@alber70g
alber70g / ValidationExample.json
Created November 9, 2015 16:26
Validation json example
{
"fieldName": "FirstFieldNr",
"validationRules": [
{
"type": "required",
"errorKey": "fieldRequired",
"condition": null
}
]
},