Skip to content

Instantly share code, notes, and snippets.

View davidcraig's full-sized avatar

David Craig davidcraig

View GitHub Profile
@davidcraig
davidcraig / colours.css
Created March 16, 2019 18:58
Flat UI Colours - CSS Variables and Sass Variables
/* Flat UI Colours: https://flatuicolors.com/palette/defo */
/* CSS Variables */
:root {
/* Greens */
--flat-ui-turquoise: #1abc9c;
--flat-ui-grean-sea: #16a085;
--flat-ui-emerald: #2ecc71;
--flat-ui-nephritis: #27ae60;
@davidcraig
davidcraig / Console (Kittens Game Script)
Last active October 18, 2020 15:33
Kittens Game script
if (!window.speed) speed = 1;
if (!game.realUpdateModel) game.realUpdateModel = game.updateModel;
game.updateModel = () => {
for (var i = 0; i < speed; i++) {
if (i !== 0) {
game.calendar.tick();
}
game.realUpdateModel();
}
}
@davidcraig
davidcraig / 0. Initial install - error
Last active August 28, 2020 12:49
Lutris Battle.net
lutris-wrapper: Blizzard Battle.net
Running /home/david/.local/share/lutris/runners/wine/lutris-5.7-8-x86_64/bin/wine /home/david/Games/battlenet/drive_c/Program Files (x86)/Battle.net/Battle.net.exe
Initial process has started with pid 8451
Game is considered started.
Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig error: line 6: invalid attribute 'translate'
Fontconfig error: line 6: invalid attribute 'selector'
Fontconfig error: line 7: invalid attribute 'xmlns:its'
Fontconfig error: line 7: invalid attribute 'version'