I hereby claim:
- I am alangrainger on github.
- I am alan_ (https://keybase.io/alan_) on keybase.
- I have a public key ASCAG1R7ChZGELoMqd3l_rSOtAosrnIYgvSnFh2xbMC4awo
To claim this, I am signing this object:
| <?php | |
| /* | |
| Command lines to generate the keys: | |
| openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048 | |
| openssl rsa -pubout -in private_key.pem -out public_key.pem | |
| */ | |
| if (isset($_POST['data'])) { |
| $time = round(microtime(true), 3); | |
| $method = strtoupper($method); | |
| $string = $time . $method . $endpoint; | |
| $hash = hash_hmac('sha256', $string, $secret); | |
| $hash = base64_encode(hex2bin($hash)); | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => 'https://www.okex.com' . $endpoint, |
I hereby claim:
To claim this, I am signing this object:
| =IF(E2<=1166.67,SUM(E2*10.5%),IF(E2<=4000,SUM(E2-1166.67)*17.5%+122.5,IF(E2<=5833.33,SUM(E2-4000)*30%+618.33,SUM(E2-5833.33)*33%+1168.33))) |
| /* | |
| Add this into the Custom Code section in your custom service: | |
| https://github.com/ramboxapp/community-edition/wiki/Add-a-Custom-Service | |
| */ | |
| function checkUnread() { | |
| // Check for an unread count by looking for the dot favicon | |
| var unread = document.querySelectorAll("link[href^='favicon-dot-32x32']") | |
| // Get the document title |
Add this custom CSS however you prefer (Stylus is easy), and change the colour value here to whatever you want your success colour to be.
body {
--ui-status-success: rgb(32, 156, 238) !important;
}| ; Fix the broken Ctrl+Backspace in MyLifeOrganized using Autohotkey | |
| #IfWinActive, ahk_exe mlo.exe | |
| ^Backspace:: | |
| Send ^+{Left}{Backspace} | |
| return | |
| #IfWinActive |
| <%* | |
| /* === Installation === | |
| * | |
| * 1. Make sure you have both Templater and Dataview installed. | |
| * 2. Create a new template note. | |
| * 3. Copy and paste the full code from this file you're reading. | |
| * 4. Launch the script by using the Templater command "Open Insert Template modal". | |
| * 5. Optional, assign this script to a hotkey using the Templater settings page. | |
| * | |
| * v1.0.4 |
| <%* | |
| // You can create any number of resolution options that you want to select from | |
| const resolutions = [ | |
| { | |
| name: 'Thumbnail', // A friendly name | |
| res: [350, 250] // Width by height. The image will maintain aspect ratio | |
| }, | |
| { | |
| name: 'Large', | |
| res: [1280, 720] |
| /* | |
| I created this Dataview script to turn a list of events into a nice visual calendar representation. | |
| Alternatively you can provide YAML start-date and end-date field names, and the script will find all | |
| matching notes and display those as events. | |
| Step 1: | |
| Add a list to a note in this format: | |
| - 2022-09-05 to 2022-09-16 | Conference in Houston | |
| - 2022-10-04 to 2022-10-11 | [[Holiday in Bali]] | (this one is a link to a page) |