content stringlengths 5 1.05M |
|---|
local _M = {}
function _M.debug_log(msg)
ngx.log(ngx.DEBUG, msg);
end
function _M.warn_log(msg)
ngx.log(ngx.WARN, msg);
end
function _M.error_log(msg)
ngx.log(ngx.ERR, msg);
end
function _M.load_module_if_exists(module_name)
local status, res = pcall(require, module_name)
if status then
... |
-- this is a comment
(( )){} -- grouping stuff
*+-/=<> <= == -- operators
"ivan"
[[
ivan\nvasil
]]
23.5
11.6
ivan = "ivan"
break
goto
until
-- a = {1, 2, 3}
-- print(string)
print("ivan\arakitic")
--[[
ivan
]]
|
local module = {
authenticationRequired = true;
};
function module.run(authentication)
local endpoint = "https://friends.roblox.com/v1/user/friend-requests/decline-all";
local response,body = api.request("POST",endpoint,{{"Content-Length",0}},{},authentication,true,true);
if(response.code == 200) then
return t... |
local SoftMin, parent = torch.class('nn.SoftMin', 'nn.Module')
function SoftMin:updateOutput(input)
self.mininput = self.mininput or input.new()
self.mininput:resizeAs(input):copy(input):mul(-1)
return input.nn.SoftMax_updateOutput(self, self.mininput)
end
function SoftMin:updateGradInput(input, gradOutput)
... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "NOGO Vodka";
ITEM.model = "models/mark2580/gtav/barstuff/Vodka_Bottle.mdl";
ITEM.width = 1;
ITEM.height = 2;
ITEM.description = "Maybe the universe is trying to tell me something.";
ITEM.permit = "consumab... |
RegisterCommand('coords', function(source, args, rawCommand)
local ped = PlayerPedId()
local coords = GetEntityCoords(PlayerPedId())
SendNUIMessage({
coords = ""..coords.x..","..coords.y..","..coords.z..", HEADING: "..GetEntityHeading(ped)..""
})
end) |
--[[
Topology stored as set of faces. Each face is list of n vertex indices
corresponding to one oriented, n-sided face. Vertices listed clockwise as seen from outside.
this.faces = [ [vidx1, vidx2, vidx3] ]
--]]
local Polyhedron = require(game:GetService("ReplicatedStorage"):WaitForChild("polyhedron"))
function ico... |
DEFINE_BASECLASS( "player_default" )
local PLAYER = {}
--
-- See gamemodes/base/player_class/player_default.lua for all overridable variables
--
PLAYER.DisplayName = "Spectator"
PLAYER.SetObserverMode = 6
PLAYER.CanUseFlashlight = false
PLAYER.AvoidPlayers = false
PLAYER.lastTaunt = 0.0
function PLAY... |
return {
author = {
name = 'Mermaid Heavy Industries',
link = 'https://mermaid.industries'
}
}
|
pg = pg or {}
pg.enemy_data_statistics_153 = {
[10104024] = {
cannon = 200,
reload = 150,
speed_growth = 0,
cannon_growth = 0,
rarity = 3,
air = 0,
torpedo = 0,
dodge = 11,
durability_growth = 340000,
antiaircraft = 180,
luck = 30,
reload_growth = 0,
dodge_growth = 156,
hit_growth = 210,
... |
-----------------------------------------------------
local FLASHTIMER = 2; --time in seconds, for the grenade to transition from full white to clear
local EFFECT_DELAY = 10; --time, in seconds when the effects still are going on, even when the whiteness of the flash is gone (set to -1 for no effects at all =]).
... |
local APIData = require(script.APIData)
local APIInterface = require(script.APIInterface)
---
local APIUtils = {}
APIUtils.createAPIData = APIData.new
APIUtils.createAPIInterface = APIInterface.new
return APIUtils |
data:extend(
{
{
type = "item",
name = "cursix-scrambled-eggs-equipment",
icon = "__cursix-tech__/graphics/icons/cursix-scrambled-eggs-equipment.png",
icon_size = 32,
placed_as_equipment_result = "cursix-scrambled-eggs-equipment",
flags = {},
subgroup = "equipment",
order = "a[energy-so... |
--[[
Casual Mission script - Version: 1.02 - 2/2/2020 by Theodossis Papadopoulos
-- Requires MIST
-- Points only work with my other script: PointSystem ELSE use variables: extraBluePoints, extraRedPoints
]]
-- -----------------------------------CODE DO NOT TOUCH---------------------------------... |
Citizen.CreateThread(function()
local uptimeMinute, uptimeHour, uptime = 0, 0, ''
while true do
Citizen.Wait(1000 * 60) -- every minute
uptimeMinute = uptimeMinute + 1
if uptimeMinute == 60 then
uptimeMinute = 0
uptimeHour = uptimeHour + 1
end
uptime = string.format("%02dh %02dm", uptimeHour, uptim... |
if vim.fn.executable'neuron' == 0 then
error("Unable to find neuron executable on the path. Install it.")
end
local neuron_builtin = require'telescope._extensions.neuron_builtin'
return require'telescope'.register_extension{
exports = {
list = neuron_builtin.list,
backlinks = neuron_builtin.backlinks
},
}... |
Runes = Runes or class({})
function Runes:Init()
--Debug.EnableDebugging()
--DebugPrint('Init runes module')
if self.initialized then
print("Runes were already initialized and there was an attempt to initialize it again -> preventing")
return nil
end
-- Check every 0.5 second if there is a rune spa... |
#!/usr/bin/env lua
local sig = require 'signal'
local irc = require 'irc'
irc.DEBUG = true
local nick = "luabot"
local channel = "#doytest"
local network = "irc.freenode.org"
local envs = {}
local function create_env()
return {
_VERSION = _VERSION,
assert = assert,
collectga... |
require('boolexpr.src.boolexpr')
Listener = setmetatable({}, {})
do
local listener = getmetatable(Listener)
listener.__index = listener
local data_table = {}
local recur_table = {}
function listener.create()
local self = setmetatable(BoolExpr.Any(), listener)
self.index_table = {... |
local sin, floor
do
local _obj_0 = math
sin, floor = _obj_0.sin, _obj_0.floor
end
local death = { }
death.textTop = "YOU"
death.textBottom = "\nDIED"
death.height = 32
death.y = death.height
local move
move = function()
return flux.to(death, 0.48, {
y = death.height + 16
}):ease("cubicin"):oncomplete(functi... |
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\ShieldpackMarine.lua
--
-- Created by: Andreas Urwalek (a_urwa@sbox.tugraz.at
--
-- Thanks to twiliteblue for initial input.
--
-- ========= For more information, visit us at http://www.unknownworlds.co... |
wait(1)
script.Parent:Destroy() |
------------------------------------------------------------------------------
--
-- This file is part of the Corona game engine.
-- For overview and more information on licensing please refer to README.md
-- Home page: https://github.com/coronalabs/corona
-- Contact: support@coronalabs.com
--
------------------------... |
-- Premier écran, pas grand chose à voir ici :D
Start = class.set(Start)
function Start:init()
self.delay = 60*2
end
function Start:load()
self.delay = 60*2 -- en steps
end
function Start:update()
if self.delay == 0 then
game.state = MAIN_MENU_LOAD
else
self.delay = s... |
data:extend(
{
{
type = "recipe",
name = "long-handed-inserter",
enabled = false,
ingredients =
{
{"iron-gear-wheel", 1},
{"iron-plate", 1},
{"inserter", 1}
},
result = "long-handed-inserter"
},
{
type = "recipe",
name = "fast-inserter",
enabled = false,
... |
--
-- main.lua
-- AdColony Sample App
--
-- Copyright (c) 2016 Corona Labs Inc. All rights reserved.
--
local adcolony = require("plugin.adcolony")
local widget = require("widget")
local json = require("json")
--------------------------------------------------------------------------
-- set up UI
-----------------... |
-- Provides a toggleable systray widget.
-- Code is based on this old wiki entry:
-- http://web.archive.org/web/20160316064839/http://awesome.naquadah.org/wiki/Systray_Hide/Show
local awful = require("awful")
local wibox = require("wibox")
local M = {}
local function creator(reverse)
local tray = wibox.widget.sy... |
--- Like a rotated camera, except we end up pushing back to a default rotation.
-- This same behavior is seen in Roblox vehicle seats
-- @classmod PushCamera
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CameraState = require("CameraState")
local getRotationInXZPlane = ... |
local HardTanh = torch.class('nn.HardTanh', 'nn.Module')
function HardTanh:updateOutput(input)
return input.nn.HardTanh_updateOutput(self, input)
end
function HardTanh:updateGradInput(input, gradOutput)
return input.nn.HardTanh_updateGradInput(self, input, gradOutput)
end
|
return {'exil','existentialisme','existentialist','existentialistisch','existentie','existentieel','existentiefilosofie','existeren','exit','exitgesprek','exitinterview','exitpoll','exitstrategie','existentiefilosoof','existeer','existeerde','existeerden','existeert','existentialistische','existentiele','existentialist... |
--Very small extension to structuredmission.
function mission.Log(_MethodName, _Msg, _OverrideDebug)
local _TempDebug = mission._Debug
if _OverrideDebug then mission._Debug = _OverrideDebug end
if mission._Debug and mission._Debug == 1 then
local _Name = mission._Name or mission.title or "Mission"
... |
function onSay(cid, words, param)
local param = param.explode(param, ',')
if param then
if isPlayer(getCreatureByName(param[1])) == TRUE then
doPlayerSendTextMessage(getCreatureByName(param[1]), 22, "Você acabou de receber um item do Senhor!")
doPlayerAddItem(getCreatureByName(param[1]), param[2], param[3])
end
... |
--[[
TheNexusAvenger
Runs callbacks when the aspect ratio of a GUI
requires switching for portrait and landscape.
--]]
local ReplicatedStorageProject = require(game:GetService("ReplicatedStorage"):WaitForChild("Project"):WaitForChild("ReplicatedStorage"))
local NexusObject = ReplicatedStorageProject:GetResource("Ext... |
local PistolShotGUIImp
local PistolShotGUIImpag
function CreatePistolGUI()
local PistolShotGUI = CreateFrame("Frame", "PistolShotGUI", UIParent, BackdropTemplateMixin and "BackdropTemplate")
PistolShotGUI:SetWidth(420)
PistolShotGUI:SetHeight(420)
PistolShotGUI:SetPoint("CENTER", UIParent)
PistolS... |
local combinations
local function generate_combinations(a, n, offset)
if n > (#a - offset) then
return
end
if n == 0 then
coroutine.yield({})
return
end
for v in combinations(a, n - 1, offset + 1) do
table.insert(v, 1, a[1 + offset])
coroutine.yield(v)
end
for v in combinations(a, ... |
-- {{{ Required deps
local awesome, tag = awesome, screen
local awful = require("awful")
-- }}}
-- {
-- workspace {
-- screen {
-- tag1, tag2, ...
-- }
-- }
-- }
local workspaces = {
workspaces = {},
current_workspace = 1
}
local workspace_tags = {}
function workspaces.next_workspace(... |
--[[----------------------------------------------------------------------------
Application Name:
CalibratedBlobDiameters
Summary:
Measuring coin diameters on calibrated and corrected image
Description:
Calibrating a camera using one shot of a checkerboard calibration target.
Correcting the image by... |
local formatter = require('formatter.format')
local logging = require('yode-nvim.logging')
local storeBundle = require('yode-nvim.redux.index')
local seditors = storeBundle.seditors
local changeSyncing = require('yode-nvim.changeSyncing')
local M = {}
local formatBuffer = function(bufId, shouldWrite, callback)
lo... |
local Broadcast = require("core.Broadcast")
return {
listeners = {
playerEnter = function(state)
return function(self, player)
Broadcast.sayAt(player)
Broadcast.sayAt(player,
"<cyan>Hint: You can pick up items from the room listed in '<white>look' with '<white>get' f... |
--[[
Licensed under GNU General Public License v2
* (c) 2014, projektile
* (c) 2013, Luke Bonham
* (c) 2010-2012, Peter Hofmann
--]]
lo... |
------------------------------- Sourcing ---------------------------------------
-- This file executes all the plugins. This file itself will be executed from
-- the init.lua file. This file serves as the entrypoint to the plugins folder
-- under lua (/lua/plugins/). Executing plugins will execute this file which
-- i... |
Global( "PlayerDistance", {} )
function PlayerDistance:Init(anID)
self.playerID = anID
self.unitParams = {}
self.distance = 0
self.lastDistance = -1
self.lastAngle = -1
self.SKIP_UPDATES_CNT = 5
self.skipCnt = 0
self.base = copyTable(PlayerBase)
self.base:Init()
self.eventFunc = self:GetEventFunc()
self... |
-- gruvbox
-- Retro groove color scheme for Vim
-- https://github.com/morhetz/gruvbox
--
vim.cmd [[
augroup gruvbox-overrides
autocmd!
" HTML
autocmd ColorScheme gruvbox highlight htmlArg cterm=italic gui=italic ctermfg=214 guifg=#fabd2f
" Css
autocmd ColorScheme gruvbox highlight cssBorderProp ... |
-- Define sets and vars used by this job file.
function init_gear_sets()
gear.melee = {}
gear.melee.feet = { name="Argosy Sollerets +1", augments={'HP+65','"Dbl.Atk."+3','"Store TP"+5',}}
gear.acc = {}
gear.acc.head = { name="Valorous Mask", augments={'Accuracy+25 Attack+25','STR+10','Accuracy+15','Attack+6',}}
... |
data:extend({
{
type = "sound",
name = "ion-cannon-ready-CommandAndConquer",
variations =
{
{
filename = "__Orbital Ion Cannon__/sound/CommandAndConquer/IonCannonReady.ogg",
volume = 0.75
},
},
},
{
type = "sound",
name = "ion-cannon-charging-CommandAndConquer",
variation... |
local kong = kong
local HeaderRouter = {
-- plugin should be executed after authentication and transformation
-- phase, but before logging
PRIORITY = 600,
VERSION = "0.1",
}
local function match_rule(rule)
for header_name,header_value in pairs(rule.condition) do
local request_header_value = kong.requ... |
object_mobile_dressed_bh_male_human_02 = object_mobile_shared_dressed_bh_male_human_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_bh_male_human_02, "object/mobile/dressed_bh_male_human_02.iff")
|
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
-----------------------------------
-- Ability: Innin
-- Reduces enmity and impairs evasion. Grants a bonus to accuracy, critical hit rate, and ninjutsu damage when striking target from behind.
-- Obtained: Ninja Level 40
-- Recast Time: 3:00
-- Duration: 5:00
-----------------------------------
require("scripts/global... |
-- The bio reactor was copied from the Bio Industries mod, who copied it from the Tree Mod
data:extend({
{
type = "item",
name = "biotech-biosolarpanel",
icon = "__BioTech__/graphics/icons/panel-1.png",
flags = {"goes-to-quickbar"},
subgroup = "biotech-equipment",
order = "c[solar]",
plac... |
local cjson = require "cjson"
require "init.lua_func_ex"
local _M = {}
_M._VERSION = '0.01'
local mt = { __index = _M }
function _M.new()
return setmetatable({}, mt)
end
--[[
-- 获取http get/post 请求参数
--]]
function _M.getArgs()
-- local request_method = ngx.var.request_method... |
local validWeaponIDs = {
1, 2, 3, 4, 5, 6, 7, 8, 9,
22, 23, 24,
25, 26, 27,
28, 29, 32,
30, 31,
33, 34,
35, 36, 37, 38,
16, 17, 18, 39,
41, 42, 43,
10, 11, 12, 14, 15,
44, 45, 46
}
function getValidWeaponIDs()
return table.copy(validWeaponIDs)
end
function isValidWeaponID(id)
if not scheck("n") then ret... |
local RPTAGS = RPTAGS;
RPTAGS.queue:WaitUntil("after UTILS_LOCALE",
function(self, event, ...)
local locUtils = RPTAGS.utils.locale;
local loc = locUtils.loc;
local function getTagDescription(tag)
return loc("TAG_" .. tag .. "_DESC");
end;
local function chooseDescInstead(tag)
local hash =
{ ... |
return require('lib.oop.generated.button')
|
include ( "panel/animation.lua" )
include ( "panel/dragdrop.lua" )
include ( "panel/selections.lua" )
include ( "panel/scriptedpanels.lua" )
local meta = FindMetaTable( "Panel" )
AccessorFunc( meta, "m_strCookieName", "CookieName" )
meta.SetFGColorEx = meta.SetFGColor
meta.SetBGColorEx = meta.SetBGColor
--[[----... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
DEFINE_BASECLASS("base_gmodentity");
ENT.Type = "anim";
ENT.Author = "kurozael";
... |
--[[
The user registry is simply an association of a user to their command environment.
when a user first appears, they can be registered to have their environment created.
note that for players, this doesn't happen immediately but either on login,
or first use after gaining the correct privileges to use the /lua comma... |
local class = require('class')
local UIWidget = class:extend()
function UIWidget:init(x, y, w, h)
self.parent = nil
self.children = {}
self.x = x
self.y = y
self.w = w
self.h = h
self.focus = nil
self.transform = nil
self.background = nil
self._mouseactive = nil
if parent ~... |
slot0 = class("WorldMediaCollectionSubLayer", import("view.base.BaseSubView"))
slot0.Ctor = function (slot0, slot1, ...)
slot0.super.Ctor(slot0, ...)
slot0.viewParent = slot1
slot0.buffer = setmetatable({}, {
__index = function (slot0, slot1)
return function (slot0, ...)
slot0:ActionInvoke(slot0.ActionInv... |
BaseNpc_PersistDialogState(this, "{{Tale_ChildNode_Unused_Function}}") |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/weapons/molotov3rd_zm.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:GetPhysicsObject():Wake()
self:SetAngles(Angle(math.r... |
local func = require 'ldk.func'
describe("#func", function()
describe("compose", function()
it("should return the proper result", function()
local function f(x) return x + 1 end
local function g(x) return x * 10 end
local fg = func.compose(f, g)
assert.equal(11, fg(1))
assert.equal(... |
local draw_nearby_boxes = require("__subterra__.scripts.events.ui.draw_nearby_boxes")
local get_adjacent_surfaces = require("__subterra__.scripts.events.player.get_adjacent_surfaces")
local get_all_subterra_surfaces = require("__subterra__.scripts.events.player.get_all_subterra_surfaces")
local get_player_level = requi... |
--[[
Copyright 2021 边蓬(bianpeng001@163.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
local class = require 'middleclass'
local lume = require 'lume'
-- ホワイトリスト
local Whitelist = class 'Whitelist'
-- 初期化
function Whitelist:initialize(t)
self.list = t or {}
end
-- オーバーライド:比較
function Whitelist:__eq(other)
local equal = true
if #self.list ~= #other.list then
equal = false
else
... |
if opt.begin_epoch == 1 then
if opt.model == 'c3d' then
dofile('models/c3d.lua')
elseif opt.model == 'resnet' then
dofile('models/resnet.lua')
end
model = create_model()
if not opt.no_cuda then
model = model:cuda()
cudnn.convert(model, cudnn)
end
else
local model_file_path = paths.concat(
... |
map = class("map")
local buttonImage = love.graphics.newImage("assets/gfx/images/button.png")
function map:initialize()
self.tileset = tileset:new("blocks.png")
self.canvas = love.graphics.newCanvas(405, 720)
self.rects = {}
self.turrets = {}
self.doors = {}
self.button = {
x = 10,
y = 10,
width = 15,
h... |
local torch = require "torch"
local nn = require "nn"
local lua_util = require "lua_util"
local ucl = require "ucl"
local rescore_utility = require "rspamadm/rescore_utility"
local function make_dataset_from_logs(logs, all_symbols)
-- Returns a list of {input, output} for torch SGD train
local dataset = {}
for _... |
object_static_item_lair_fake_cave_small = object_static_item_shared_lair_fake_cave_small:new {
}
ObjectTemplates:addTemplate(object_static_item_lair_fake_cave_small, "object/static/item/lair_fake_cave_small.iff") |
vim.keymap.set("n", "[file]f", [[<Cmd>tab drop ~/workspace/todo/todo.tsv<CR>]], { buffer = true })
|
object_mobile_shocktrooper_blue = object_mobile_shared_shocktrooper_blue:new {
}
ObjectTemplates:addTemplate(object_mobile_shocktrooper_blue, "object/mobile/shocktrooper_blue.iff")
|
local skynet = require "skynet"
local sc = require "skynet.socketchannel"
local socket = require "skynet.socket"
local cluster = require "skynet.cluster.core"
local ignoreret = skynet.ignoreret
local clusterd, gate, fd = ...
clusterd = tonumber(clusterd)
gate = tonumber(gate)
fd = tonumber(fd)
local large_request = {... |
require 'tables'
require 'sets'
file = require 'files'
config = require 'config'
require 'strings'
res = require 'resources'
require 'actions'
require 'pack'
bit = require 'bit'
require 'generic_helpers'
require 'parse_action_packet'
require 'statics'
_addon.version = '3.29'
_addon.name = 'BattleMod'
_addon.author = ... |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2016 (All Rights Reserved)
-- =============================================================
-- RG Files Module Library - Loader and Initializer
-- =============================================================
-- Las... |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Painting"
ENT.Author = "Pilot2"
ENT.Category = "Museum robbery"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:SetupDataTables()
self:NetworkVar( "String", 0, "imgururl" )
self:Network... |
string.startswith = function (s, p)
return string.sub(s, 1, string.len(p)) == p
end
string.endswith = function (s, p)
return string.sub(s, string.len(s) - string.len(p) + 1) == p
end
string.split = function (str, delimiter)
if str == nil or str == '' or delimiter == nil then
return nil
end
local result = {}
... |
OpenNefia.Prototypes.Elona.FieldType.Elona =
{
Plains = {
Name = "平地",
},
Grassland = {
Name = "草原",
},
Desert = {
Name = "草原",
},
Sea = {
Name = "水上",
},
Forest = {
Name = "森",
},
SnowField = {
Name = "雪原"
}
}
|
local ENT = {}
ENT.Type = "anim"
ENT.Base = "base_entity"
-- Also allow spawnmenu spawning
ENT.Category = "nZombies Unlimited"
ENT.PrintName = "Invisible Wall"
ENT.Author = "Zet0r"
ENT.Spawnable = true
local defaultmodel = "models/hunter/plates/plate5x5.mdl"
local col = Color(255,150,0,100)
local mat = "models/wirefr... |
--
-- playercollider.lua
-- Inherits from the Collider class
-- Provides many player variables and functions
-- Mostly pertains to movement
--
local Class = require ("src.class")
local Collider = require ("src.logic.physics.collider")
local PlayerCollider = Class.new (Collider)
-- MODULES --
local Constants = requi... |
data:extend(
{
{
type = "string-setting",
name = "tlbe-save-folder",
setting_type = "runtime-per-user",
default_value = "timelapse",
order = "3"
},
{
type = "bool-setting",
name = "tlbe-sequential-names",
... |
function onUpdate()
getPropertyFromClass('flixel.input', 'FlxKey') --Basically lets the script figure out what button you are pressing.
if keyJustPressed('up') then --self explanatory
triggerEvent('Play Animation', 'hey', 'BF')
--characterPlayAnim('boyfrie... |
return {
clock = 1,
date = 3,
difftime = 1,
execute = 3,
exit = 1,
getenv = 1,
remove = 1,
rename = 1,
setlocale = 1,
time = 1,
tmpname = 1,
}
|
package("rsync")
set_kind("binary")
set_homepage("https://rsync.samba.org/")
set_description("rsync is an open source utility that provides fast incremental file transfer.")
set_license("GPL-3.0")
add_urls("https://download.samba.org/pub/rsync/src/rsync-$(version).tar.gz")
add_versions("3.2.3"... |
_C = {
pures = set.new(),
dets = {},
}
local types = {
void=true,
int=true,
u32=true, s32=true,
u16=true, s16=true,
u8=true, s8=true,
}
function _C.isNumeric (tp)
return tp~='void' and (not _C.deref(tp))
end
function _C.deref (tp)
return string.match(tp, '(.-)%*$')
end
function... |
-- another small bug (in 5.2.1)
f = load(string.dump(function () return 1 end), nil, "b", {})
assert(type(f) == "function" and f() == 1) |
slot0 = class("WorldTrigger", import("...BaseEntity"))
slot0.Fields = {
config = "table",
progress = "number",
id = "number",
maxProgress = "number",
desc = "string"
}
slot0.Setup = function (slot0, slot1)
slot0.id = slot1
end
slot0.GetProgress = function (slot0)
return slot0.progress
end
slot0.GetMaxProgress... |
include("shared.lua")
local mat = CreateMaterial("UnlitGeneric", "GMODScreenspace", { })
function ENT:Draw()
if not self.Rt then
self.Rt = GetRenderTarget("ControllerDrr" .. self:EntIndex(), 1024, 1024, false)
end
self:DrawModel()
cam.Start3D2D(self:LocalToWorld(Vector(-14.7, -14.4, 1.5)), self:LocalToWorldAn... |
local _, Addon = ...
local Colors = Addon.Colors
local DB = Addon.DB
local DCL = Addon.Libs.DCL
local E = Addon.Events
local EventManager = Addon.EventManager
local L = Addon.Libs.L
local ListMixins = Addon.ListMixins
local Lists = Addon.Lists
local Utils = Addon.Utils
local UI = Addon.UI
local GROUP_KEYS = {
inclus... |
--------------------------------------------------------------------------------
-- Handler.......... : onWalk
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
----------------------------------------------------------------------------... |
PROJECT_NAME = path.getname(os.getcwd())
if not minko.platform.supports { "windows32", "windows64", "linux32", "linux64", "osx64" } then
return
end
minko.project.application("minko-example-" .. PROJECT_NAME)
removeplatforms { "android", "ios", "html5" }
files { "src/**.cpp", "src/**.hpp", "asset/**" }
included... |
--[=[
Update on heartbeat, must GC this camera state, unlike others. This
allows for camera effects to run on heartbeat and cache information once instead
of potentially going deeep into a tree and getting invoked multiple times
@class HeartbeatCamera
]=]
local ReplicatedStorage = game:GetService("ReplicatedStora... |
-- main.lua
FCLoadScript( "globals" )
FCLoadScript( "Languages/en" )
-- Language word tables
locale = FCDevice.GetString("locale")
FCLog( "Found locale " .. locale )
FCLoadScriptOptional( "Languages/" .. locale )
FCLoadScript( "frontendphase" )
FCLoadScript( "gamephase" )
screenWidth = FCDevice.GetInteger( kFCDevi... |
local test = {}
local json = require('arken.json')
local Class = require('arken.oop.Class')
local Adapter = require('arken.ActiveRecord.SqliteAdapter')
local SqliteTypes = Class.new("SqliteTypes", "ActiveRecord")
SqliteTypes.tableName = 'sqlit_adapter_types'
test.beforeAll = function()
ActiveRecord.reset()
... |
#!/usr/bin/env lua
-- MoonVulkan example: Custom allocator.
glfw = require("moonglfw")
vk = require("moonvulkan")
-- 1) Import the allocator module, and get the light userdata
allocator = require("allocator")
allocatorLUD = allocator.get()
allocator.trace(true)
if not glfw.vulkan_supported() then
error("MoonGLFW... |
-- This is the editbox module from Chatter by Antiarc
if not Prat.BN_CHAT then return end -- Requires 3.3.5
Prat:AddModuleToLoad(function()
local PRAT_MODULE = Prat:RequestModuleName("Editbox")
if PRAT_MODULE == nil then
return
end
local mod = Prat:NewModule(PRAT_MODULE, "AceHook-3.0")
local PL = mo... |
--[[
Code originally referenced from AyrA.
Modified greatly and improved a lot by Vas.
If you use this, please make sure to mention us somewhere like in your readme.
]]--
-- User Settings
local BASE_KIT = settings.global["basic-kit-base"].value
local EQUIPME = settings.global["basic-kit-equipment"].value
loc... |
local ThreatLib = LibStub and LibStub("ThreatClassic-1.0", true)
if not ThreatLib then return end
if select(2, _G.UnitClass("player")) ~= "MAGE" then return end
local _G = _G
local select = _G.select
local max = _G.max
local GetTalentInfo = _G.GetTalentInfo
local Mage = ThreatLib:GetOrCreateModule("Player")
local S... |
--************************
--name : ttid_001.lua
--ver : 0.1
--author : Ferron
--date : 2004/09/21
--lang : en
--desc : General Faction Information
--npc : Hacknet Broadcast Daemon v0.1.1
--************************
--changelog:
--2004/09/21(0.1): built from snows template
--*********************... |
xivopeners_pld = {}
xivopeners_pld.debug = false
xivopeners_pld.supportedLevel = 80
xivopeners_pld.openerAbilities = {
ShieldLob = ActionList:Get(1, 24),
FastBlade = ActionList:Get(1, 9),
RiotBlade = ActionList:Get(1, 15),
GoringBlade = ActionList:Get(1, 3538),
RoyalAuthority = ActionList:Get(1, 3... |
local Luna = assert(foundation.com.Luna)
local case = Luna:new("yatm_oku.OKU.Memory")
local m = assert(yatm_oku.OKU.Memory)
case:describe("adjust_and_check_bounds", function (t2)
t2:test("will correctly adjust the given index to match internal", function (t3)
local mem = m:new(256) -- really small memory for t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.