A Pen by daamnathaniel on CodePen.
This file contains hidden or 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
| <script src="https://use.fontawesome.com/4c97752ffe.js"></script> | |
| <div class='wrapper'> | |
| <h2>Simple Text Editor</h2> | |
| <div class="sample-toolbar"> | |
| <span class="fa fa-bold fa-fw" aria-hidden="true" onclick="format('bold')"></span> | |
| <span class="fa fa-italic fa-fw" aria-hidden="true" onclick="format('italic')"></span> | |
| <span class="fa fa-list fa-fw" aria-hidden="true" onclick="format('insertunorderedlist')"></span> | |
| <span class="fa fa-link fa-fw" aria-hidden="true" onclick='setUrl()'></span> | |
| <span><input id="txtUrl" placeholder="url" class="form-control"></span> |
This file contains hidden or 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
| git init --bare $HOME/.kp | |
| alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME' | |
| kp config --local status.showUntrackedFiles no | |
| echo "alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME'" >> $HOME/.config/fish/config.fish |
This file contains hidden or 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
| gh alias set rear 'repo archive' | |
| gh alias set recl 'repo clone' | |
| gh alias set recr 'repo create' | |
| gh alias set rede 'repo delete' | |
| gh alias set reed 'repo edit' | |
| gh alias set refo 'repo fork' | |
| gh alias set reli 'repo list' | |
| gh alias set rere 'repo rename' |
This file contains hidden or 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
| # frozen_string_literal: true | |
| require 'fileutils' | |
| def soure_paths | |
| [__dir__] | |
| end | |
| def add_gems | |
| gem 'devise' |
This file contains hidden or 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
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
This file contains hidden or 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
| Gem::Specification.new do |s| | |
| s.name = 'bang' | |
| s.version = '0.1.0' | |
| s.platform = Gem::Platform::RUBY | |
| s.author = 'Jeff Kreeftmeijer' | |
| s.email = 'jeff@kreeftmeijer.nl' | |
| s.summary = 'Bang!' | |
| s.description = 'Bangs existing model methods' | |
| s.files = ['bang.rb'] |
This file contains hidden or 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
| <!-- modify this form HTML and place wherever you want your form --> | |
| <form | |
| action="https://formspree.io/f/meqpbqon" | |
| method="POST" | |
| > | |
| <label> | |
| Your name: | |
| <input type="text" name="name"> | |