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
// Based on https://walkthrough.so/pblc/QCawSCKwOQLn/creating-a-custom-editorjs-block-tool-with-react | |
import type { | |
API, | |
BlockAPI, | |
BlockTool, | |
BlockToolConstructorOptions, | |
} from '@editorjs/editorjs' | |
import ReactDOM from 'react-dom' |
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
#!/bin/bash | |
# Install node and npm via nvm - https://github.com/creationix/nvm | |
# Run this script like - bash script-name.sh | |
# Prevent source | |
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return | |
# Script will auto terminate on errors | |
set -e |
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
.super-element { | |
&__inner-stuff { | |
width: 69px; | |
} | |
@media screen and (max-width: 760px;) { | |
&__farts { | |
height: 10px; | |
} | |
} |
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
var app = angular.module('myApp'); | |
app.factory('Snap', [ | |
function () { | |
return window.Snap; | |
} | |
]); | |
app.directive('ngSvg', function (Snap) { |