Skip to content

Instantly share code, notes, and snippets.

Albert G alber70g

Block or report user

Report or block alber70g

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alber70g
alber70g / selectmode.fish
Last active Nov 21, 2019
Execute command based on sunset sundawn
View selectmode.fish
function selectmode --description "Select light or darkmode based on time"
set currentday (date +%j)
if test $currentday -gt "280" || test $currentday -lt "90"
set sundawn "0900"
set sunset "1700"
else
set sundawn "0600"
set sunset "2000"
end
View gist:b6bd57db85ecea7bd3c39eb630a06b07
#
# Git
#
function __sf_section_git_albert -d "Display the git branch and status in Alberts way"
# ------------------------------------------------------------------------------
# Configuration __fish_git_prompt
# ------------------------------------------------------------------------------
set -g __fish_git_prompt_showcolorhints 'yes'
@alber70g
alber70g / HNPopularityColors.user.js
Last active Mar 12, 2019
Popularity color indicator for Show HN for TamperMonkey
View HNPopularityColors.user.js
// ==UserScript==
// @name Show HN vote color identification
// @namespace gist.github.com/Alber70g
// @version 0.7
// @description HN votes colors (logarithmic)
// @author Alber70g
// @match https://news.ycombinator.com/*
// @require https://unpkg.com/chroma-js@1.3.7/chroma.js
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
View fuse.js
const {
FuseBox,
JSONPlugin,
EnvPlugin,
QuantumPlugin,
} = require('fuse-box');
const { TypeHelper } = require('fuse-box-typechecker');
const typeHelper = TypeHelper({
tsConfig: './tsconfig.json',
@alber70g
alber70g / Tarmak1.md
Last active Oct 17, 2017
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.
View Tarmak1.md

Words

hier 
onder 
noemen
genoemd
oefenen 
kijk

here
View doubler.js
const doubler = (input) => {
return doubler.operationsByType[typeof input](input);
};
doubler.operationsByType = {
number: (input) => input + input,
string: (input) =>
input
.split('')
.map((letter) => letter + letter)
.join(''),
View colors_backlot_crash.cfg
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 Mar 7, 2019
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
View toggleWipGitlab.user.js
// ==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 Jul 11, 2017
Run all suites separately.
View run-wct.js
/**
* 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 Jun 1, 2017
Run all suites separately
View run-wct.js
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', {
You can’t perform that action at this time.