Skip to content

Instantly share code, notes, and snippets.

View LouDnl's full-sized avatar
👑
USBSID-Pico ~ buy @ SmallRun or PCBWay

LouD LouDnl

👑
USBSID-Pico ~ buy @ SmallRun or PCBWay
View GitHub Profile
@LouDnl
LouDnl / somestuff.clj
Created February 12, 2023 17:07
Clojure hiccup with inline scittle
[:div "SCITTLE JS"]
[:div#scittle-test
[:script {:type "application/x-scittle"}
(pr-str
'(defn my-alert []
(js/alert "You clicked! "))
;; export function to use from JavaScript:
'(set! (.-my_alert js/window) my-alert))]]
[:div
[:button.text-white.shadow.rounded.btn.bg-success.bg-gradient.border-info {:onclick "my_alert()"}
@LouDnl
LouDnl / google-apps-scripts.js
Last active November 29, 2022 15:30
Collection of Google Apps scripts
// Code for getting the values of cells by their fill color
/****************************************************************************************************
By LouD 2022-11-29 (adaption of countColoredCells())
Get cell value(s) based on the cell color in Google Sheets in the cell + rows where the formula is in
Use =returnColoredCelldata(RANGE; CELLID) or =returnColoredCelldata(RANGE, CELLID) depending on your region
where RANGE is the cell range to count and CELLID is the CELL to compare the colors with.
*****************************************************************************************************/
function returnColoredCelldata (cellRange, colorRef) {
var activeRange = SpreadsheetApp.getActiveRange();
@LouDnl
LouDnl / gist:6ec447c1918ccaeb3a21
Created November 6, 2015 09:32
extDB Warnings
This file has been truncated, but you can view the full file.
extDB2: Version: 66
extDB2: https://github.com/Torndeco/extDB2
extDB2: Windows Debug Version
Message: All development for extDB2 is done on a Linux Dedicated Server
Message: If you would like to Donate to extDB2 Development
Message: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2SUEFTGABTAM2
Message: Also leave a message if there is any particular feature you would like to see added.
Message: Thanks for all the people that have donated.
Message: Torndeco: 20/02/15
@LouDnl
LouDnl / gist:8636774b0be91baaba3d
Created October 14, 2015 08:56
This cant be right
10:45:03 "[extDB2] Sleep [4]: 2670.41"
10:45:08 "WASTELAND SERVER - Money Mission waiting to run: mission_SunkenTreasure"
10:45:08 Performance warning: SimpleSerialization::Write 'messageSystem' is using type of ',TEXT' which is not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types
10:45:08 Performance warning: SimpleSerialization::Read 'messageSystem' is using type of ,'TEXT' which is not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types
10:45:10 "TERRITORY SYSTEM: _realLoopTime was 10.0171"
10:54:53 "onPlayerDisconnected - ["Basti","76561198018519179"]"
10:54:53 "onPlayerDisconnected - ["Artem23RUS","76561198203009930"]"
10:54:53 No player found for channel 980001600 - message ignored
10:54:53 No player found for channel 980001600 - message ignored
10:54:53 No player found for channel 980001600 - message ignored
{
"ADVERTS": [
"Want to know the available commands? Type <orange>/help<end>.",
"Respect the server <orange>/rules<end>.",
"This server is running <orange>Oxide 2<end>.",
"<red>Cheat is strictly prohibited.<end>",
"Type <orange>/map<end> for the server map link.",
"You are playing on: <lime>{server.hostname}<end>",
"<orange>Players Online: <lime>{players}<end> / <lime>{server.maxplayers}<end> Sleepers: <lime>{sleepers}<end><end>",
"The game time is <lime>{gametime}<end>",
extDB2: Version: 65
extDB2: https://github.com/Torndeco/extDB2
extDB2: Windows Debug Version
Message: All development for extDB2 is done on a Linux Dedicated Server
Message: If you would like to Donate to extDB2 Development
Message: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2SUEFTGABTAM2
Message: Also leave a message if there is any particular feature you would like to see added.
Message: Thanks for all the people that have donated.
Message: Torndeco: 20/02/15
13:02:45 Error in expression &lt;eateGroup independent;
_player = _group createUnit ["Exile_Unit_Player", _positi&gt;
13:02:45 Error position: &lt;createUnit ["Exile_Unit_Player", _positi&gt;
13:02:45 Error Type Any, expected Number
13:02:45 File exile_server\code\ExileServer_object_player_database_load.sqf, line 19
13:03:41 Error in expression &lt;mat["%1", _result];
((_result select 1) select 0) select 0&gt;
13:03:41 Error position: &lt;select 0) select 0&gt;
13:03:41 Error Generic error in expression
13:03:41 File exile_server\code\ExileServer_system_database_query_selectSingleField.sqf, line 15
//works
_name = "LouD";
{
if (isPlayer _x && (name _x == _name)) then {
_unstuck = [(getPosASL _x select 0), (getPosASL _x select 1), (getPosASL _x select 2) + 1000];
_x setposATL _unstuck
}
} forEach playableUnits;
@LouDnl
LouDnl / gist:7a46606029f5a1a56711
Last active August 29, 2015 14:17
extDB2 crash
=====================================================================
== A3Server\arma3server.exe
== "arma3server.exe" -port=2322 "-config A3Startup\A3Wasteland\config.cfg" "-cfg=\A3Startup\A3Wasteland\basic.cfg" "-profiles=A3Startup\A3Wasteland" "-BEPath=\A3Startup\A3Wasteland\BattlEye" -name=A3Wasteland -pid=a3server.pid -ranking=a3_prod_ranking.log -enableHT -exThreads=7 -loadMissionToMemory -autoinit
Original output filename: Arma3Retail_Server
Exe timestamp: 2015/03/02 15:29:40
Current time: 2015/03/20 19:18:02
Type: Public
Branch: Stable
[13:00:54 +02:00] [Thread 3133080953] extDB: Version: 27
[13:00:54 +02:00] [Thread 3133080953] extDB: Found extdb-conf.ini
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1
[13:00:54 +02:00] [Thread 3133080953] extDB: Creating Worker Thread +1