Skip to content

Instantly share code, notes, and snippets.

@mrjackphil
mrjackphil / drawings-to-walls.js
Created October 20, 2023 11:13
Drawings to walls for Foundry v10
let drawings = canvas.drawings.controlled;
function tuple(a) {
let arr = []
for (i in a) {
if (typeof a[i] !== 'number') {
continue
}
if (i % 2) {
@mrjackphil
mrjackphil / nice-scrollbar.css
Created May 13, 2020 10:03
Nice looking scrollbar styles for webkit browsers
#element {
overflow-x: overlay;
overflow-y: hidden;
scrollbar-width: thin;
}
#element::-webkit-scrollbar {
height: 5px;
width: 10px;
opacity: 0.5;
@mrjackphil
mrjackphil / git-fetch-master.sh
Created May 13, 2020 09:59
Pull master branch from another branch
git <remote> <target>:<destination>
git origin master:master
@mrjackphil
mrjackphil / git-tags.sh
Last active May 11, 2020 16:37
Git tags manipulation
git push --tags // Push tags
git tag // Check existing tags
@mrjackphil
mrjackphil / alias.sh
Created May 11, 2020 16:32
Alias for git production push using git flow
alias gitprod='git push origin master; git push origin develop; git push --tags;'
@mrjackphil
mrjackphil / mixManifest.js
Last active May 11, 2020 16:33
Laravel mix - add files in manifest.json
const otherThemes = ALL_THEMES.filter(theme => theme !== CURRENT_THEME);
for (let i = 0; i < otherThemes.length; i++) {
mix.version(`public/css/${otherThemes[i]}.css`, `public/css/${otherThemes[i]}.css`);
}
@mrjackphil
mrjackphil / user.css
Last active January 29, 2020 15:09
qute browser settings
[data-base-title="Google Календарь"] .QQYuzf {
display: none;
}
[data-base-title="Google Календарь"] .dwlvNd {
display: none;
}
[data-base-title="Google Календарь"] header * {
background-color: #1e1e1e !important;