This file contains 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
-- Still spazzes | |
--- when pushing against roof | |
--- When getting off grund | |
local ppos = Vector() | |
local view = { } | |
if GetConVar "developer":GetInt() > 0 then | |
RunConsoleCommand("contimes", "55") | |
end |
This file contains 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
-- https://raw.githubusercontent.com/LoganDark/lua-lexer/master/lexer.lua | |
-- MIT License | |
-- | |
-- Copyright (c) 2018 LoganDark | |
-- | |
-- Permission is hereby granted, free of charge, to any person obtaining a copy | |
-- of this software and associated documentation files (the "Software"), to deal | |
-- in the Software without restriction, including without limitation the rights | |
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains 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
local inspect = require "inspect" | |
local posix = require"posix" | |
local lfs = require'lfs' | |
local cjson = require'cjson.safe' | |
local lmfit = require 'lmfit' | |
function PrintTable(...) | |
print(inspect{...}) | |
end | |
math.randomseed(os.time()) |
This file contains 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
local DermaPanel = vgui.Create( "DFrame" ) | |
DermaPanel:SetPos( 100, 100 ) | |
DermaPanel:SetSize( 500,800 ) | |
DermaPanel:SetDraggable( true ) | |
DermaPanel:MakePopup() | |
local a=vgui.Create'DHTML' | |
a:SetParent(DermaPanel) | |
a:Dock(FILL) |
This file contains 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
@rem hi | |
:restartthis | |
cd "C:\Users\display\Downloads\luapower-all-x86-x64-master" | |
"C:\Users\display\Downloads\luapower-all-x86-x64-master\bin\mingw32\luajit.exe" main.lua | |
GOTO restartthis |
This file contains 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
-- Adapted from https://github.com/battlemesh/openwrt-packages/blob/ebd07d9f65f1044875cfe9e6d035732603a4b2f9/lang/luaexpat/files/compat-5.1r5/compat-5.1.lua | |
-- and https://github.com/danielga/gmod_require/blob/master/includes/modules/require.lua | |
-- and mostly from https://github.com/hoelzro/lua-procure | |
-- Combined license unknown | |
-- This file should not even be required... | |
if SERVER then AddCSLuaFile() return end -- not useful on server due to metaman require override but could/should probably be loaded anyway | |
local _require = _G.require_rqoverride or require | |
_G.require_rqoverride = _require | |
local sentinel |
This file contains 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
-- bootstrap slow version | |
function string.tohex(str) | |
return (str:gsub('.', function (c) | |
return string.format('%02X', string.byte(c)) | |
end)) | |
end | |
-- caching fast versions |
This file contains 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
local asdd = vgui.Create'DHTML' | |
timer.Simple(20,function() asdd:Remove() end) | |
asdd:OpenURL"https://www.youtube.com/watch?v=zFcY5xO4dGA" | |
asdd:SetSize(600,600) | |
asdd:SetAlpha(255) | |
local fft={} | |
asdd.PaintOver=function(self,w,h) | |
local max=#fft + 1 | |
local width = w/max |
This file contains 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
# | |
# https://sourceforge.net/projects/com0com/ | |
# | |
$ hub4com --baud=38400 --octs=off "\\.\CNCB0" --use-driver=tcp --reconnect=1 "10.0.0.1:2000" |
This file contains 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
// 15€ hardware: https://www.aliexpress.com/item/1005003672079080.html | |
// 5€ hardware: https://www.aliexpress.com/item/2040316211.html (needs rewriting with DigiKeyboard.h) | |
#include<Keyboard.h> | |
#define KEY_DELAY 50 | |
void setup() { | |
/* KeyboardLayout_da_DK: Denmark | |
KeyboardLayout_de_DE: Germany |