Oscar Swanros10:23
https://stackoverflow.com/questions/1670970/how-to-cherry-pick-multiple-commits
git rebase --onto a b f
Oscar Swanros10:31
git checkout hotfix
git cherry-pick master A^..B
git checkout master
git reset platform-8.2020-2 --hard
git merge hotfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--gray1: #0a0b10; | |
--section-bg: #1a1b26; | |
--app-bg: #14171f; | |
--transition: rgba(20, 23, 31, 0.7); | |
} | |
/* Chat top left logo text color */ | |
.nHjhsd { | |
opacity: 0.8; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Database { | |
constructor(table) { | |
this.table = table | |
const request = indexedDB.open('mydatabase', 1) | |
request.onerror = event => { | |
console.error(event) | |
} | |
request.onupgradeneeded = event => { | |
const db = event.target.result | |
this._db = db.createObjectStore(this.table) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const file = fs.readFileSync(__dirname + '/data.txt', { encoding: 'utf8' }) | |
const clients = file | |
.split('\n') | |
.filter(line => line !== '') | |
.map(qty => qty.replace('$', '').replace(',', '')) | |
.map(qty => parseFloat(qty)) | |
const workers = [ | |
{ name: 'a plus' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Use this stylesheet with https://userstyles.org/ extension in chrome | |
Created By ZeroDragon | |
Original Ventura Dark created by https://userstyles.org/styles/181809/ventura-dark-google-chat | |
*/ | |
:root { | |
--gray1: #0a0b10; | |
--section-bg: #1a1b26; | |
--app-bg: #14171f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Justa change the default NVM loading scripts from your .bashrc or .zshrc or .whateverbashrc | |
# to this lazy loaders. Adjust your most used commands | |
if [ -s "$HOME/.nvm" ]; then | |
export NVM_DIR="$HOME/.nvm" | |
. "$NVM_DIR/bash_completion" | |
declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack') | |
function __init_nvm() { | |
for i in "${__node_commands[@]}"; do unalias $i; done | |
. "$NVM_DIR/nvm.sh" |
I hereby claim:
- I am zerodragon on github.
- I am zerodragon (https://keybase.io/zerodragon) on keybase.
- I have a public key ASBGo9HaYLL0cd-rCKJLUFN9YjjwDR9dgPGSBoR0qmuitQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EventEmitter { | |
constructor () { | |
this.DOM = document.createElement("p") | |
} | |
on(channel, fn) { | |
this.DOM.addEventListener(channel, event => { | |
fn(event.detail) | |
}) | |
} | |
dispatch(channel, data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
my-service: | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "50m" | |
image: ...... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals ENV */ | |
let environment = 'dev' | |
if (typeof ENV === 'undefined') environment = 'prod' | |
const logger = {} | |
const sty = color => `padding:4px;color:#fff;background-color:${color};` | |
const loggerTypes = { | |
debug: sty('green'), | |
info: sty('blue'), | |
warn: sty('orange'), |