- A vector art program which can export SVGs (eg. Adobe Illustrator, Inkscape, Affinity Designed, Figma, Krita, etc.)
- An image to make the map on. This does not have to be vector.
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 zsh | |
sudo rm -f /usr/bin/node | |
sudo rm -f /usr/bin/npm | |
sudo ln -s $(which node) /usr/bin/ | |
sudo ln -s $(which npm) /usr/bin/ |
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
# coding=utf-8 | |
# Copyright 2022 The HuggingFace Inc. team. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> |
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
(function () { | |
"use strict"; | |
jQuery.fn.extend({ | |
dragToScroll({ horizontal = true, vertical = true } = {}) { | |
const position = { top: 0, left: 0, x: 0, y: 0 }; | |
const element = this.get(0); | |
function downHandler({ clientX, clientY }) { |
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
// Adapted from `smartquotes.js` at https://github.com/kellym/smartquotes.js | |
// LICENCE: https://github.com/kellym/smartquotes.js/blob/master/LICENSE | |
if (!String.prototype.smartQuotes) { | |
Object.defineProperty(String.prototype, 'smartQuotes', { | |
configurable: true, | |
writable: true, | |
value: function smartQuotes() { | |
return this | |
.replace(/'''/g, '\u2034') | |
.replace(/(\W|^)"(\S)/g, '$1\u201c$2') |
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
(function() { | |
"use strict"; | |
Macro.add("branch", { | |
handler() { | |
let id = this.args[0]; | |
let list = this.args.slice(1); | |
variables()["#macro-branch"] = variables()["#macro-branch"] || {}; | |
variables()["#macro-branch"][id] = variables()["#macro-branch"][id] || {}; |
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
(function () { | |
"use strict"; | |
jQuery.fn.extend({ | |
holdDown: function holdDown(duration, handler) { | |
if (this.length === 0 || arguments.length === 0) return this; | |
if (arguments.length === 1) { | |
handler = arguments[0]; | |
duration = 1000; |
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
window.Timer = function(callback, duration = 500) { | |
if (!callback) return; | |
this.callback = callback; | |
this.duration = duration; | |
this.remaining = duration; | |
this.resume(); | |
}; | |
Timer.prototype.resume = function() { | |
this.start = new Date(); |
This Gist is no longer maintained. Head over to https://github.com/cyrusfirheir/cycy-wrote-custom-macros for newer versions.
NewerOlder