Quickly get an ArangoDB instance running on an Amazon EC2 Linux Instance
Update existing package list and then install prerequieites.
sudo yum update -y
If your running a regular amazon linuz instance
sudo yum install docker
| #!/usr/bin/env sh | |
| :: default : yabai -m config active_window_opacity 1; yabai -m config normal_window_opacity 1; | |
| # Focus | |
| shift + alt - home : yabai -m window --focus north | |
| shift + alt - j : yabai -m window --focus north | |
| shift + alt - end : yabai -m window --focus south | |
| shift + alt - k : yabai -m window --focus south | |
| shift + alt - delete : yabai -m window --focus west |
| // First sign a 'message' on the frontend: | |
| const web3 = new Web3(Web3.givenProvider) | |
| const __message__ = 'abc' | |
| web3.eth.requestAccounts() | |
| .then((accounts) => | |
| web3.eth.personal.sign(__message__, accounts[0]) // this will return a 'signature' | |
| ) | |
| // ... and then pass the message and the signature to the backend to recover public address of the signer: | |
| const ethUtil = require('ethereumjs-util') |
Preferences | Appearance | Tabs | Theme > Darkdstr > ttf, install all font files by double clicking)Preferences | Profiles | Text
Font to 14pt Fira code regular and Check Use Ligatures checkboxNon ASCII Font to 14pt Fira mono and Check Use Ligatures checkboxPreferences | Profiles | Color Presets > Snazzy| // Remove Duplicates from an array | |
| const removeDuplicates = | |
| arr => arr.filter((item, index) => index === arr.indexOf(item)); | |
| const removeDuplicates1 = array => [...new Set(array)]; | |
| const removeDuplicates2 = array => Array.from(new Set(array)); | |
| // Flattens an array(doesn't flatten deeply). |
| :root { | |
| --ease-in-quad: cubic-bezier(.55, .085, .68, .53); | |
| --ease-in-cubic: cubic-bezier(.550, .055, .675, .19); | |
| --ease-in-quart: cubic-bezier(.895, .03, .685, .22); | |
| --ease-in-quint: cubic-bezier(.755, .05, .855, .06); | |
| --ease-in-expo: cubic-bezier(.95, .05, .795, .035); | |
| --ease-in-circ: cubic-bezier(.6, .04, .98, .335); | |
| --ease-out-quad: cubic-bezier(.25, .46, .45, .94); | |
| --ease-out-cubic: cubic-bezier(.215, .61, .355, 1); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sine Wave</title> | |
| <script type="text/javascript"> | |
| function showAxes(ctx,axes) { | |
| var width = ctx.canvas.width; | |
| var height = ctx.canvas.height; | |
| var xMin = 0; |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
| <style> | |
| body { | |
| margin: 0px; | |
| overflow: hidden; | |
| } |