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
-- picotron api explorer (p64env) | |
-- by pancelor | |
-- https://pancelor.com | |
--[[ | |
## how to install | |
1. open picotron (buy from https://www.lexaloffle.com/picotron.php) | |
2. press escape to open the terminal | |
3. run `folder`. a file explorer should open on your host OS. | |
you should see `appdata` and `desktop` |
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
// This code is based on https://en.wikipedia.org/wiki/HSL_and_HSV | |
// Free to use for any purpose. No attribution needed. | |
function rgbToHsl(r, g, b) { | |
r /= 255; g /= 255; b /= 255; | |
let max = Math.max(r, g, b); | |
let min = Math.min(r, g, b); | |
let d = max - min; | |
let h; | |
if (d === 0) h = 0; |
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
#Import a directory of text files as google keep notes. | |
#Text Filename is used for the title of the note. | |
import gkeepapi, os | |
username = '[email protected]' | |
password = 'your app password' | |
keep = gkeepapi.Keep() | |
success = keep.login(username,password) |
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
@ECHO OFF | |
ECHO ---------------------------------------------------------- | |
ECHO Google Drive FS - Silent Change Mountpoint Utility v0.0001 | |
ECHO ---------------------------------------------------------- | |
REM Scripted: Marc Vandael - 25/01/2018 | |
REM Change the var _mountpoint to whatever driveletter you would like. | |
REM If the letter is in use, the next free one will be used. | |
REM This attempts to write to HKLM & HKCU so admin rights are needed for this to work. |
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
This small benchmark test compares the performance of using `ipairs{...}` vs. | |
`select('#',<n>)` to iterate over the arguments inside a variadic function. |
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
-- Copyright (C) 2017 Dmitry Yakimenko ([email protected]). | |
-- Licensed under the terms of the MIT license. See LICENCE for details. | |
-- Duplicate line Far Manager editor macro | |
Macro { | |
description = "Duplicate line"; | |
area = "Editor"; | |
key = "CtrlD"; | |
action=function() |
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
// enhance the original "$.ajax" with a retry mechanism | |
$.ajax = (($oldAjax) => { | |
// on fail, retry by creating a new Ajax deferred | |
function check(a,b,c){ | |
var shouldRetry = b != 'success' && b != 'parsererror'; | |
if( shouldRetry && --this.retries > 0 ) | |
setTimeout(() => { $.ajax(this) }, this.retryInterval || 100); | |
} | |
return settings => $oldAjax(settings).always(check) |