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
### Keybase proof | |
I hereby claim: | |
* I am cydonia7 on github. | |
* I am cydonia7 (https://keybase.io/cydonia7) on keybase. | |
* I have a public key ASDhtuBhKkgtVxANPF9Nozib-IcuLCa16ccj9ZuiiNRV3Qo | |
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
buildscript { | |
repositories { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
jcenter() | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+' | |
} | |
} |
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
// Find the sheet music images on the page | |
const elements = document.getElementsByClassName('split-image'); | |
// Check that there are actually images on the page | |
if (elements.length === 0) { | |
console.error('No images found'); | |
} else { | |
// If images were found, extract the base url from the 1st one | |
const imageUrl = elements[0].src; | |
const imageIdMatch = /\/sheets\/([\w\d]+)\//; |
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
// ==UserScript== | |
// @name Exercism completed in green | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @match https://exercism.io/my/tracks/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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
#!/usr/bin/env bash | |
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f | |
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} | |
check_run package.json "npm prune && npm install" |
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
### Update | |
Make your Arch fonts beautiful easily! | |
This is what I do when I install Arch Linux to improve the fonts. | |
You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality): | |
Install some fonts, for example: | |
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts | |
Enable font presets by creating symbolic links: |
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
<?php | |
namespace Tests; | |
use Symfony\Component\VarDumper\Test\VarDumperTestTrait; | |
trait SnapshotTrait | |
{ | |
use VarDumperTestTrait; |