content stringlengths 5 1.05M |
|---|
bot_token = "295393714:AAFeo7A43sXKtv96O4hEJu_ap7A1yvAYTko"
send_api = "https://api.telegram.org/bot"..bot_token
bot_version = "6.0"
sudo_name = "Engineer Shayan Ahmadi"
sudo_id = 102117869
admingp = -135847900
sudo_num = "989385586158"
sudo_user = "Amirreza_jeddi"
sudo_ch = "Telecracking"
|
SWEP.Base = "weapon_base"
SWEP.Slot = 1
SWEP.SlotPos = 0
SWEP.PrintName = "Hands"
SWEP.DrawCrosshair = false
SWEP.HoldType = "normal"
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.De... |
--[[--
alex@0
--]]--
----------------------------------------------------------------------------------------------------
local ADDON, NS = ...;
----------------------------------------------------------------------------------------------------upvalue LUA
local math, table, string, bit = math, table, string, bit;
lo... |
context(
"Function argument checking",
function()
local metatables = require "eaw-abstraction-layer.core.metatables"
local method = metatables.method
local game_object = require "eaw-abstraction-layer.types.game_object"
local faction = require "eaw-abstraction-layer.types.facti... |
-- Lua configuration file used for testing purposes
x=700
y=300
z=x+y
b = true
s = "I am a string"
i = 44
color = { r=0.5, g=0.7, b=0 }
array = { 0.1, 0.2, 0.3, 0.4 }
table = {
float = 0.2,
int = 5,
string = "hello there",
bool = true,
table = {
string = "nested",
table = {
... |
local BannZayLib = LibStub:GetLibrary("BannZayLib-1.0")
local Debug = BannZayLib.Logger;
local Array = BannZayLib.Array;
local KVP = BannZayLib.KVP;
local debugLevel = 0;
local debugTitle = "SWDEZ";
local dbg = Debug:New(debugTitle, debugLevel);
local ControlFrame = nil;
local FlashFrame = nil;
local treatSkillNames ... |
function zel_init()
clear_map()
zel_generate()
end
function zel_draw()
local rs = flr(size/s)
for i = 1,s do
for j = 1,s do
local room = zgetr(i,j)
if room == zgetar() then
rect(50 + (i*5), (j*5), 50 + (i*5) + 4, (j*5)+4, 5)
elseif room.spawn or dev then
col = 2
if... |
object_tangible_collection_rare_carbine_kubaza = object_tangible_collection_shared_rare_carbine_kubaza:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rare_carbine_kubaza, "object/tangible/collection/rare_carbine_kubaza.iff") |
-- ### Unit tests
Eg={}
function Eg.test() assert(1==2) end
function Eg.rnd() assert(3.2==round(3.2222,1)) end
function Eg.o() assert("{1, aa, 3}" == o({1,"aa",3})) end
function Eg.id( a) a={}; id(a); id(a); assert(1==a._id) end
function Eg.map( t) assert(30 == map({1,2,3}, function (z) return z*10 end)[... |
local Task = require('bt.task.task')
local mt = {}
mt.__index = mt
function mt.new(cls)
local self = Task.new(cls)
return self
end
return mt
|
local luno = require("luno")
local ctx = luno.getcontext(1)
local _uno = {}
for k, v in pairs(luno) do _uno[k] = v end
----------------------------------------
-- Generates types from __unotypes field
local function _gettypes(obj)
local _obj = obj
local checked = {}
local typenames = {}
local unotype... |
-- TODO: Convert to use Context API - https://roblox.github.io/roact/advanced/context/
local ThemeAccessor = {}
function ThemeAccessor.Get(object, key, default)
local materialTheme = object._context._materialTheme
return materialTheme[key] or default
end
return ThemeAccessor
|
--[[ LUA TUTORIAL --]]
--[[ CHAPTER 17: FILE I/O --]]
-- Opens a file in read
file = io.open("test.lua", "r")
-- sets the default input file as test.lua
io.input(file)
-- prints the first line of the file
print(io.read())
-- closes the open file
io.close(file)
-- Opens a file in append mode
file = io.open("test.l... |
-- Author: Pablo Musa
-- Creation Date: jun 20 2011
-- Last Modification: aug 09 2011
local lmp = require"luamemprofiler"
-- pre-defined strings do not use malloc
local a = ""
local b = "t"
local c = "a"
local d = "tamanho8"
local e = "tamanhotamanhotamanhotamanhotamanhotamanhotamanhotamanhotamanho65"
lmp.start(...)... |
------------------------------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0192-button_subscription_response_from_hmi.md
------------------------------------------------------------------... |
local check = {}
function check.runCheck()
happy = true
offendingNetworkServices = {}
res = hs.execute("networksetup -listallnetworkservices")
networkServices = split(res, "\n")
for service = 2, #networkServices-1 do
proxySettings = hs.execute("networksetup -getwebproxy \"" .. networkServices[service] .. "\" |... |
-------------------------------------------
-- Tomorrow Night Eighties awesome theme --
-------------------------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local t... |
-- --------------------------------------------------------------------------------------------
-- Copyright 2014 by Swiss Post, Information Technology Services
-- --------------------------------------------------------------------------------------------
-- $Id$
-- ----------------------------------------------------... |
local handlers = {};
handlers.handle_request = function () -- {
local return_string = 'Hello from LUA handler';
local request = platform.get_http_request();
local form = request:parse_req_form();
local response = platform.get_http_response();
response:set_chunked_trfencoding(true);
response:set_content_type("vide... |
workspace "Math"
startproject "Test"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
project "Test"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir "bin/%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/%{prj.name}"... |
-- master.lua
--
-- program to tell the robot what to do.
--
local args = { ... }
if (not args) then
error("+++ Missing args!", 1)
end
local command = ""
for k, v in pairs(args) do
if (command ~= "") then
command = command .. " "
end
command = command .. tostring(v)
end
print("Command = " .. com... |
local ceil = math.ceil
local getTextSize = RPGM.GetTextSize
local setTextPos = surface.SetTextPos
local setTextColor = surface.SetTextColor
local drawText = surface.DrawText
function RPGM.DrawSimpleText(text, font, x, y, col, xAlign, yAlign)
local w, h = getTextSize(text, font)
if xAlign == 1 then
x =... |
local M = {}
---Get the highlight groups for the plugin
---@param theme table
---@return table
function M.get(theme)
return {
-- https://github.com/phaazon/hop.nvim/blob/e3c9fc3ab1e1db6bfb4f19377c53d0e457e0e2e9/doc/hop.txt#L759
HopNextKey = { bg = theme.colors.green, fg = theme.colors.bg },
HopNextKey1 = { bg =... |
-- cluster grenades set stuff on fire
if Server then
-- Cluster Grenades set structures and players on fire
-- Thanks Dragon :)
local function IgniteNearbyEntities(self, range)
local hitEntities = GetEntitiesWithMixinWithinRange("Fire", self:GetOrigin(), range)
local player = self:GetOwner()... |
require("alua")
local procs, buf, count = {}, "buf = 123", 12
local show = [[print(alua.id, "buffer = " .. tostring(buf))]]
function sendcb2(reply)
print("Terminating all processes...")
alua.exit(procs)
alua.exit()
end
function sendcb1(reply)
count = count - 1
if count == 0 then
print("Sending m... |
List = LCS.class{}
function List:init()
self.panel = ScrollPanel:New {
x = 0,
y = 0,
bottom = 0,
right = 0,
borderColor = {0,0,0,0},
horizontalScrollbar = false,
padding = {0, 0, 0, 0},
}
self.ctrl = Control:New {
x = 0,
y = 0,
... |
-- Wolfe Labs DU Core Library: Thread
-- Project: DU-Core
-- Author: Matheus Pratta (DU: Wolfram)
--[[
This script is intended to implement a healthy way of working with multiple threads inside Dual Universe, while being inside the CPU time limits as much as possible
]]--
local Class = require('Class')
-... |
local common = require "common"
local function build_tree(input)
local links = {}
for _, line in ipairs(common.lines(input)) do
local name, weight, children
name, weight = string.match(line, "^(%a+) %((%d+)%)")
children = string.match(line, "%-%> ([%C]+)")
links[name] = {
name = name,
w... |
---@meta
---@class cc.EventListenerController :cc.EventListener
local EventListenerController={ }
cc.EventListenerController=EventListenerController
---* Create a controller event listener.<br>
---* return An autoreleased EventListenerController object.
---@return self
function EventListenerController:create () e... |
local ffi = require("cffi")
ffi.cdef [[
int __stdcall test_puts(char const *str);
]]
local ret = ffi.C.test_puts("hello world")
assert(ret >= 0)
|
pg = pg or {}
pg.technology_catchup_template = {
{
obtain_max = 300,
obtain_max_per_ur = 0,
id = 1,
char_choice = {
29901,
29902,
39901,
39902,
49901,
89901
},
blueprint_max = {
508,
508,
508,
508,
508,
508
},
ur_char = {}
},
{
obtain_max = 300,
obtain_max_per_... |
local COMMAND = Clockwork.command:New("MakeLetter");
COMMAND.tip = "Allows you to make a letter.";
COMMAND.text = "<string Title> <string Text>";
COMMAND.arguments = 2;
function COMMAND:OnRun(player, arguments)
if (arguments[1]) then
if (arguments[2]) then
text[player] = {
title = arguments[1],
content =... |
--[[
© 2011-2012 CloudSixteen.com do not share, re-distribute or modify
this file without the permission of its owner(s).
Conna Wiles (connawiles@gmail.com)
--]]
ENTITY.m_sBaseClass = "Weapon";
ENTITY.m_sMaterial = "sprites/weapons/mg42";
ENTITY.m_sHoldType = "rifle";
ENTITY.m_primary = {
tracerColor = Color(1... |
--[[
-- Installation:
-- Linux (All Users): /usr/lib/vlc/lua/extensions/
-- Linux (Current User): ~/.local/share/vlc/lua/extensions/
-- MacOS (All Users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
-- MacOS (Current User): /Users/<name>/Library/Application Support/org.videolan.vlc/lua/extensions/
-- Win... |
-- See Copyright Notice in core\LICENSE.txt
require ("utils")
project.cfg=readCfgFile(".."..directory_delimiter..".."..directory_delimiter.."projects"..directory_delimiter..project.name..directory_delimiter.."settings.cfg")
if (project.cfg["documentation"]=="full") then
local xml_file = file_get_contents(".."..d... |
project "AnimatSim"
language "C++"
kind "SharedLib"
files { "../*.h",
"../*.cpp"}
includedirs { "../../../../include",
"../../../StdUtils" }
libdirs { "../../../../bin" }
links { "dl",
"boost_thread",
"boost_chrono" }
configuration { "Debug or Debug_Double", "linux" }
d... |
vim.bo.textwidth = 118
vim.wo.colorcolumn = "120"
|
function append(item)
return function(list)
if list == nil then
list = {}
end
if type(list) ~= "table" then
list = { list }
end
table.insert(list, item)
return list
end
end
function addprefix(prefix)
return function(str)
if str... |
local isa = {}
isa.name = "limn2k"
isa.bits = 32
isa.alignmask = 0x3
local formats = {}
isa.formats = formats
isa.registers = {
["zero"] = 0,
["t0"] = 1,
["t1"] = 2,
["t2"] = 3,
["t3"] = 4,
["t4"] = 5,
["a0"] = 6,
["a1"] = 7,
["a2"] = 8,
["a3"] = 9,
["v0"] = 10,
["v1"] = 11,
["s... |
LinkLuaModifier("modifier_terran_marine_precision", "heroes/terran_marine/modifier_terran_marine.lua", LUA_MODIFIER_MOTION_NONE)
terran_marine_precision_lua = class({})
function terran_marine_precision_lua:OnUpgrade()
self:GetCaster():AddNewModifier(self:GetCaster(), self, "modifier_terran_marine_precision", {})
end |
DEBUG = true
timerTackTock = 0
dofile("wifi.lua")
function timedTask()
local heartBeatTime = 20
local dht11_send_time = 300
timerTackTock = timerTackTock+1
if(timerTackTock%heartBeatTime==0)then
heartBeat()
end
if(timerTackTock%dht11_send_time==0)then
dht11_send()
... |
require "AdHoc"
local this = GetThis()
AdHoc.Global.floor1ID = this
|
----------------------------------------
-- Group Calendar 5 Copyright (c) 2018 John Stephen
-- This software is licensed under the MIT license.
-- See the included LICENSE.txt file for more information.
----------------------------------------
----------------------------------------
GroupCalendar.UI._EventEdi... |
RegisterNetEvent("renz_keys:keyTransfered")
AddEventHandler("renz_keys:keyTransfered", function(keyData)
table.insert(Heap.Keys, keyData)
Heap.ESX.ShowNotification("You received a key.", "error", 3500)
end)
RegisterNetEvent("renz_keys:addKey")
AddEventHandler("renz_keys:addKey", function(keyData)
... |
bullets = {
ox = sprites.cannonBall:getWidth() / 2,
oy = sprites.cannonBall:getHeight() / 2
}
bullets.list = {}
bullets.toRemove = {}
function bullets.new(parent, xPos, yPos, xVel, yVel, maxAge)
local bullet = {
ship = parent,
x = xPos,
y = yPos,
s = 1,
collider = h... |
return function()
local CorePackages = game:GetService("CorePackages")
local Rodux = require(CorePackages.Rodux)
local InspectAndBuyFolder = script.Parent.Parent
local Reducer = require(InspectAndBuyFolder.Reducers.InspectAndBuyReducer)
local MockNetwork = require(InspectAndBuyFolder.Test.MockNetwork)
local Netwo... |
if not modules then modules = { } end modules ['attr-neg'] = {
version = 1.001,
comment = "companion to attr-neg.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- this module is being... |
local new_fs_event = require 'uv'.new_fs_event
local pathJoin = require 'pathjoin'.pathJoin
local fs = require 'fs'
local exists, readfile, mkdir = fs.existsSync, fs.readFileSync, fs.mkdirSync
local stat, scandir = fs.statSync, fs.scandirSync
local function call(c, ...)
if type(c) == "function" then
return pcall(c... |
--[[
- Version: 0.1
- Made by Tom Tuning @ 2016
******************
- INFORMATION
******************
- put names with colors.
Usage:
local rgb = require '_rgb'
local cir1 = display.newCircle( 40, 240, 35 )
local cir2 = display.newCircle( 120, 240, 35 )
local cir3 = display.newCircle( 200, 240, 35 )
loc... |
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Chululu
-- Starts and Finishes Quests: Collect Tarut Cards, Rubbish Day
-- Optional Cutscene at end of Quest: Searching for the Right Words
-- !pos -13 -6 -42 245
-----------------------------------
require("scripts/globals/settings")
require("scripts/gl... |
---@meta
---@class cc.Animation :cc.Ref
local Animation={ }
cc.Animation=Animation
---* Gets the times the animation is going to loop. 0 means animation is not animated. 1, animation is executed one time, ... <br>
---* return The times the animation is going to loop.
---@return unsigned_int
function Animation:get... |
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local Text = require(current_folder .. ".Text")
local imgui = require(current_folder .. ".imgui")
local Renderutils = require(current_folder .. ".Renderutils")
local Toast = {}
local function find_toast_position(bounds, textwidth, textheight, border_w... |
local lips = {
_DESCRIPTION = 'Assembles MIPS assembly files for the R4300i CPU.',
_URL = 'https://github.com/notwa/lips/',
_LICENSE = [[
Copyright (C) 2015,2016 Connor Olding
This program is licensed under the terms of the MIT License, and
is distributed without any warranty. You ... |
require("run")
local function src(module)
return ("../%s/src"):format(module)
end
local function out(module)
return ("../%s/out"):format(module)
end
local function lib(module)
return ("../%s/bin/Debug/net5.0/%s.dll!"):format(module, module)
end
local function libs(...)
local t = {}
for i = 1, select("#"... |
local M = {}
-- Find a file either using git files or search the filesystem.
function M.find_files()
local fzf = require "fzf-lua"
if vim.fn.system "git rev-parse --is-inside-work-tree" == true then
fzf.git_files()
else
fzf.files()
end
end
-- Custom find buffers function.
function M.find_buffers()
l... |
--
-- Agario Checkers - Checkers-like game with inspiration from agar.io
-- Copyright (C) 2016-2018 Delwink, LLC
--
-- Redistributions, modified or unmodified, in whole or in part, must retain
-- applicable copyright or other legal privilege notices, these conditions, and
-- the following license terms and disclaimer. ... |
local dbInfo = require("dbinfo")
local encode = encode
local M = { _VERSION = "1.0.1" }
------------------------------------------------
local function _get_conn()
local mysql = require("resty.mysql")
local client, errmsg = mysql:new()
client:set_timeout(10000) -- 10s connection timeout
local ok, err... |
-- make missing directories
dirs = {
"metadata"
}
for i, idx in ipairs(dirs) do
love.filesystem.createDirectory( dirs[i] )
end
if inifile == nil then
print( 'INIFile not loaded for some reason, fix that.' )
elseif love.filesystem.getInfo( 'userconf.ini' ) == nil or inifile.parse( 'userconf.ini' ) == { }... |
-- Kinda a jank way to grab all the localplayer's info but oh well :)
-- HamstaGang - V3RM
local collectit = workspace.Ores
local lpn = game:GetService("Players").LocalPlayer.Name:lower() -- We NEED IT! :C
local shipsearch = workspace.Ships[lpn]:GetChildren() --hehe
local shippie
for i, ship in ipairs(shipsearch) do... |
local stringy = require "stringy"
local function perftest(fname, f, strings, keys)
local time = os.clock -- os.time or os.clock
local t1 = time()
io.stdout:write(string.format("%-12s", fname))
for _, s in ipairs(strings) do
if keys then
for i=1,100000 do
f(s, "zzz")f(s, "za b c")f(... |
--- === cp.apple.finalcutpro.inspector.audio.TopProperties ===
---
--- The `TopProperties` class is used to represent the top properties group of the Audio Inspector.
local require = require
-- local log = require "hs.logger".new "TopProperties"
local fn = require "... |
-------------------------------------------------------------------------------
-- Copyright (C) Hispidence 2013-2021
--
--
-- collider.lua
--
-- Wrapper for HC
-------------------------------------------------------------------------------
local HC = require("src.external.HC")
local theCollider = HC.new(128)
return t... |
-----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Signpost
-----------------------------------
local ID = require("scripts/zones/Tahrongi_Canyon/IDs")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
local offset = math.floor((npc:get... |
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mapping... |
local theme = require("ido.theme")
local module = require("ido.module")
local advice = require("ido.advice")
local config = require("ido.config")
-- @module main Main module of Ido
local main = {}
local ruler_save = nil
-- Internal variables of Ido
-- @field before string The query text before the cursor
-- @field a... |
for i,v in pairs(workspace:children()) do if v.Name == ":e" then v:remove() end end
Mod = Instance.new("Model",workspace)
Mod.Name = ":e"
Col1 = {"Bright red", "Neon orange", "Bright yellow"}
Col2 = {"Dark grey", "Black", "Really black"}
Col3 = {"Bright yellow", "Neon orange", "New Yeller"}
CA = CFrame.Angles
CN = ... |
files {
'index.html',
'rabtor.css',
'music/Loading.ogg'
}
loadscreen 'index.html'
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' |
-- Apartment 2: -773.22580000 322.82520000 194.88620000
exports('GetExecApartment2Object', function()
return ExecApartment2
end)
ExecApartment2 = {
currentInteriorId = -1,
Style = {
Theme = {
modern = {interiorId = 227585, ipl = "apa_v_mp_h_01_b"},
moody = {inte... |
return function()
map(
"n",
"<c-f>",
"<cmd>lua if ft() == 'NvimTree' or ft() == 'startify' then vim.cmd('NvimTreeToggle') else vim.cmd('NvimTreeFindFile') end<cr>"
)
g.nvim_tree_side = "left"
g.nvim_tree_width = 30
g.nvim_tree_quit_on_open = 1
g.nvim_tree_indent_markers =... |
local fTileSize = 32;
local iTilesX = math.ceil( SCREEN_WIDTH/fTileSize );
local iTilesY = math.ceil( SCREEN_HEIGHT/fTileSize );
--[[ local function Actor:PositionTile(self,iX,iY)
self:x( scale(iX,1,iTilesX,-SCREEN_CENTER_X,SCREEN_CENTER_X) );
self:y( scale(iY,1,iTilesY,-SCREEN_CENTER_Y,SCREEN_CENTER_Y) );
end --]]
l... |
local mytester
local dptest = {}
local mediator = dp.Mediator()
function dptest.dataview()
local data = torch.rand(3,4)
local sizes = {3, 4}
local dv = dp.DataView('bf', data)
local f = dv:forward('bf', 'torch.CudaTensor')
mytester:assert(f:type() == 'torch.CudaTensor')
mytester:asserteq(f:dim(),2)
... |
local function isCallable(fn, t)
if t == "function" then return true end
if t ~= "table" then return false end
local meta = getmetatable(fn)
return meta and meta.__call
end
return function (rawread, rawwrite, register, call)
local freeze, thaw
local function read()
return thaw(rawread())
end
lo... |
cc = cc or {}
---PhysicsSprite3D object
---@class PhysicsSprite3D : Sprite3D
local PhysicsSprite3D = {}
cc.PhysicsSprite3D = PhysicsSprite3D
--------------------------------
--- synchronize node transformation to physics.
---@return PhysicsSprite3D
function PhysicsSprite3D:syncNodeToPhysics() end
--------------------... |
--[[
luaunit.lua
Description: A unit testing framework
Homepage: https://github.com/bluebird75/luaunit
Development by Philippe Fremy <phil@freehackers.org>
Based on initial work of Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
License: BSD License, see LICENSE.txt
Version: 3.0
]]--
VERSION='3.0'
--[[ ... |
local gl = require("moongl")
local glmath = require("moonglmath")
local teapotdata = require("common.teapotdata")
local mat3 = glmath.mat3
local function GetPatch(patch_num)
local patchdata = teapotdata.patchdata[patch_num]
local positions = teapotdata.positions
local patch1 = {{}, {}, {}, {}}
local patch... |
local COMMAND = Command.new('tpto')
COMMAND.name = 'Tpto'
COMMAND.description = 'command.tpto.description'
COMMAND.syntax = 'command.tpto.syntax'
COMMAND.permission = 'assistant'
COMMAND.category = 'permission.categories.administration'
COMMAND.arguments = 1
COMMAND.immunity = true
COMMAND.aliases = { 'goto' }
functio... |
local m = require 'pegparser.parser'
local coder = require 'pegparser.coder'
local util = require'pegparser.util'
g = [[
compilation <- SKIP compilationUnit (!.)^EndErr
-- JLS 4 Types, Values and Variables
basicType <- BYTE / SHORT / INT / LONG /
CHAR / FLOAT /... |
--=======================================
-- filename: entities/decorations/table.lua
-- author: Shane Krolikowski
-- created: Apr, 2018
-- description: Table decoration entity.
--=======================================
local Decoration = require 'entities.decorations.decoration'
local Table = Decorat... |
local Q = require 'Q'
-- Q.print_csv({T.x1, T.x2, T.goal}, { filter = { lb = 0, ub = 10} })
-- Is x14 > 488? This results in 500 samples where 265/500,
-- or 53%, are profitable (y = 1)
local cond = Q.vsgt(T.x14, 488) -- from Evan
-- local cond = Q.vsgt(T.x14, 468.66) -- from Ramesh
local gprime = Q.where(T.goal, c... |
local allowCountdown = false
function onStartCountdown()
-- Block the first countdown and start a timer of 0.8 seconds to play the dialogue
if not allowCountdown and isStoryMode and not seenCutscene then
startCutscene();
allowCountdown = true;
return Function_Stop;
end
return Function_Continue;
end
... |
--- Embedded Robotics Library.
-- Toribio is a library for developing robotics applications. It is based on Lumen cooperative
-- scheduler, and allows to write coroutine, signal and callback based applications.
-- Toribio provides a mechanism for easily accesing hardware, and is geared towards
-- low end hardware, such... |
--Allows to expose a function to outside the element simply
local path = string.sub(..., 1, string.len(...) - string.len(".hooks.callback"))
local context = require(path.. ".core.stack")
---Creates a callback on the 'name' field for the current element
---@param name string
---@param callback function
return function ... |
HOME = os.getenv('HOME')
-- Setup nvim-cmp.
local cmp = require('cmp')
local lspkind = require('lspkind')
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
mapping = {
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { ... |
local Game = class("Game")
local Field = require "class.Field"
local monsterImg = love.graphics.newImage("img/monsters.png")
local monsterQuad = {}
for i = 1, 9 do
table.insert(monsterQuad, love.graphics.newQuad((i-1)*16, 0, 16, 16, 144, 16))
end
local shakeTime = 0.15
local flashTime = 0.25
local shakeIntensit... |
return {
tlldilophosaurus = {
acceleration = 0.08,
airsightdistance = 1200,
brakerate = 0.494,
buildcostenergy = 61041,
buildcostmetal = 6565,
buildpic = "tlldilophosaurus.dds",
buildtime = 100000,
canmove = true,
category = "ALL LARGE MOBILE SURFACE UNDERWATER",
collisionvolumeoffsets = "0 0 0",
... |
function love.conf(t)
t.version = "11.3"
t.window.title = "Six Card Golf"
t.window.width = 400
t.window.height = 240
t.window.resizable = true
t.modules.audio = false
t.modules.joystick = false
t.modules.physics = false
t.modules.sound = false
t.modules.touch = false
t.mo... |
WebBanking {
version = 0.1,
url = "https://ebanking.easybank.at/InternetBanking/InternetBanking?d=login&svc=EASYBANK&ui=html&lang=de",
services = {"EasyBank"},
description = "Extension für die österreichische Onine Bank EasyBank"
}
local mainPage = nil
local connection = nil
loca... |
local entity = {}
entity["arcana"] = [[Strength]]
entity["spellDeck"] = {}
entity["spellDeck"][1] = [[Cleave]]
entity["spellDeck"][2] = [[Dodge Slash]]
entity["spellDeck"][3] = [[]]
entity["spellDeck"][4] = [[]]
entity["spellDeck"][5] = [[]]
entity["spellDeck"][6] = [[]]
entity["desc"] = [[Sir Kay was King Arthur's fos... |
--- Physical object in the game world
-- @classmod Entity
local entityMeta = FindMetaTable("Entity")
local propDoors = {
["models/props_doors/doorklab01.mdl"] = true,
["models/props_lab/elevatordoor.mdl"] = true,
["models/props_combine/combine_door01.mdl"] = true,
["models/combine_gate_vehicle.mdl"] = true,
["mo... |
local Mob
Mob = class()
function Mob:constructor()
self._shadow = true
self.name = 'Unknown'
self.path = nil
self.legs_path = nil
self.img = nil
self.legs_img = nil
self.hd = false
self.health = 0
self.attack_dist = 0
self.attack_delay = 0
self.attack_dmg = 0
self.attac... |
local PositionComponent =require"source/ecs/component/position_component"
local BoxComponent = require"source/ecs/component/box_component"
local CollisionComponent = require"source/ecs/component/collision_component"
return core.EntityConstructor("Box",function(x,y,w,h)
local entity = {}
PositionComponent.make(... |
local ffi = require("ffi")
local cx = ffi.typeof("complex")
local cxf = ffi.typeof("complex float")
ffi.cdef[[
typedef struct jit_complex_chain_t {
struct jit_complex_chain_t *next;
complex c;
} jit_complex_chain_t;
]]
do --- field access
local c = cx(1, 2)
local x
for i=1,100 do
x = c.re + c.im
end
... |
return {
VERSION = "V1.1.0",
SCENARIO_TEXT =
"ATR is a cooperative game that is intended to provide some continuity across map resets. \n" ..
"Rules: Be polite. Ask before changing other player's stuff. Have fun!",
SERVER_TEXT = "Something pithy describing this map.",
MAP_INFO = "More useful des... |
local juaVersion = "0.0"
juaRunning = false
eventRegistry = {}
timedRegistry = {}
local function registerEvent(event, callback)
if eventRegistry[event] == nil then
eventRegistry[event] = {}
end
table.insert(eventRegistry[event], callback)
end
local function registerTimed(time, repeating, callback)
if repeatin... |
--[[local mapList = {}
function refreshTables ()
local file = fileOpen("maps.json")
mapList = fromJSON(fileRead(file, fileGetSize(file)))
fileClose(file)
end
addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), refreshTables)
function refreshT(plr)
if not exports.CSGstaff:isPlayerStaff(plr... |
-- Lua stuff
function onCreate()
makeLuaSprite('Sky', 'bgsky1', -300, -350)
makeLuaSprite('BG', 'bgnormal', -100, -260)
addLuaSprite('Sky', false)
addLuaSprite('BG', false)
end |
-- DFHack-native implementation of the classic Quickfort utility
--[====[
quickfort
=========
Processes Quickfort-style blueprint files.
Quickfort blueprints record what you want at each map coordinate in a
spreadsheet, storing the keys in a spreadsheet cell that you would press to make
something happen at that spot ... |
-- Useful helper functions prior to other files loading. Ideally this is the first file loaded after Localization, right before Config
local AddonName, Addon = ...
function Addon:IsShadowlands()
return select(4, GetBuildInfo()) >= 90000
end
-- Gets the version of the addon
function Addon:GetVersion()
local ve... |
Class = require "lib.hump.class"
GameState = require "lib.hump.gamestate"
Camera = require "lib.hump.camera"
bump = require "lib.bump.bump"
sti = require "lib.sti"
--
Entity = require "entities.entity"
Block = require "entities.block"
Enemy = require "entities.enemy"
Player = require "entities.player"
--
Map... |
-- This is the table where we define all of the different taunts we can say to the player. Each taunt is grouped by
-- "kind" which lets you choose an appropriate taunt based on the situation.
_taunts = {
-- This taunt is appropriate when joining a game (that is, when
-- we're sitting the "join game" window waitin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.