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
is_unixy=true | |
do_install=false | |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | |
if ! type "eget" > /dev/null; then | |
echo "not installed" | |
do_install=true | |
fi | |
elif [[ "$OSTYPE" == "darwin"* ]]; then | |
# Mac OSX |
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
if ! which bb &> /dev/null; then | |
#echo "babashka not installed" | |
if which sudo &> /dev/null; then | |
#echo "sudo exists, using it" | |
sudo bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install) | |
else | |
#echo "assuming that user is administrator" | |
bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install) | |
fi | |
# else |
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
app.customFields.register({ | |
"name" : "editorjs-field", | |
"pluginId" : pluginId, | |
"type" : "json", | |
"components" : { | |
Input: async () => { | |
const Module = (await import ('./components/Editor')); | |
const Component = Module.default; | |
const inst : React.FC<any> = ( ({...props}) => { | |
return ( |
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
{ | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
nixpkgs.follows = "nix/nixpkgs"; | |
# debug.url | |
nguix.url = "github:sauricat/nguix"; | |
nguix.follows = "nix/nixpkgs"; | |
#stdenv.url | |
}; |