Skip to content

Instantly share code, notes, and snippets.

View technowar's full-sized avatar

Johmel Rey Pintor technowar

View GitHub Profile
@technowar
technowar / weechat-light-terminal.conf
Last active October 20, 2019 07:26 — forked from TauPan/weechat-light-terminal.conf
All my colour settings for a light (not white) terminal in weechat. I simply filtered my fset buffer with "color"
# Comma separated list of channels
/set colorize_nicks.look.blacklist_channels ""
# Comma separated list of nicks
/set colorize_nicks.look.blacklist_nicks "so,root"
# Whether to colorize input
/set colorize_nicks.look.colorize_input off
# If off, then use lazy matching instead
@technowar
technowar / reset.css
Created May 21, 2019 03:41
CSS Reset
html {
box-sizing: border-box;
font-size: 16px;
}
*, *:before, *:after {
box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
@technowar
technowar / arr.js
Created November 28, 2018 01:30
ES6 remove dup in an array of object by checking `id` property
/***
* Initial array
***/
const arr = [{
name: 'A',
id: 1
}, {
name: 'B',
id: 2
var array = [0, 1, 2, 3, 4, 5];
function isNotEmpty () {
console.log('Array is not empty');
}
function isEmpty () {
console.log('Array is empty');
}
@technowar
technowar / reset.js
Last active August 29, 2015 14:16 — forked from 19h/reset.js
console.reset = function () {
return process.stdout.write('\u001B[2J\u001B[0;0f');
}

Keybase proof

I hereby claim:

  • I am technowar on github.
  • I am j4hmtor (https://keybase.io/j4hmtor) on keybase.
  • I have a public key whose fingerprint is 6FC0 1F8D F9D8 22FC 48B2 60C0 9D63 12A6 6830 DABC

To claim this, I am signing this object: