content stringlengths 5 1.05M |
|---|
att.PrintName = "Squirt Gun"
att.Icon = Material("snowysnowtime/2k/ico/arico/squirtgun.png", "smooth mips")
att.Description = "A Squirt Gun alternative for the MA5B"
att.Desc_Pros = {
" ok but why"
}
att.Desc_Cons = {
}
att.Slot = "skin_hcear"
att.Free = true
att.ActivateElements = {"squirtgun"}
att.AttachSound... |
local temp
if data.raw.item["brass-alloy"] then
temp = data.raw.recipe["brass-gear-wheel"]
temp.energy_required = 1.5
temp.ingredients = {
{type="item", name="brass-alloy", amount=5},
}
end
if data.raw.item["silicon-nitride"] then
temp = data.raw.recipe["ceramic-bearing"]
temp.energy_required = 1.5
temp.ingr... |
resource.AddFile("sound/gmodz/player/gasmask_wear.wav")
resource.AddFile("gmodz/player/gasmask_inhale.wav")
resource.AddFile("gmodz/player/gasmask_exhale.wav")
resource.AddFile("materials/gmdz/gasmask.vmt")
resource.AddFile("materials/gmdz/gasmask.vtf")
resource.AddFile("materials/gmdz/gasmask_n.vtf")
resource.AddFile(... |
_G.ele_scoreboard = ele_scoreboard or {}
ele_scoreboard.derma = ele_scoreboard.derma
local teams = {}
teams[TEAM_BLACK] = Material("element/ui/black.png")
teams[TEAM_WHITE] = Material("element/ui/white.png")
local playerList = function( panel )
players = team.GetPlayers(panel.team)
panel.lastPlayers = panel.l... |
object_mobile_space_comm_ep3_cpg_ace_04 = object_mobile_shared_space_comm_ep3_cpg_ace_04:new {
}
ObjectTemplates:addTemplate(object_mobile_space_comm_ep3_cpg_ace_04, "object/mobile/space_comm_ep3_cpg_ace_04.iff")
|
--[[
Gangi: aktualizacja danych dla czlonkow
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-gangi
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
function updatePlayerCoData(pid)
if (type(pid)=="num... |
local M = {}
function M.parse(arg)
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Object detection in torch')
cmd:text()
cmd:text('Options:')
local curr_dir = paths.cwd()
local defaultDataSetDir = paths.concat(curr_dir,'datasets')
local defaultDataDir = paths.concat(defaultDataSetDir,'VOCdevkit/')
... |
local Looper = require 'looping_signal'
local KINDS = {'signal', 'word', 'listener'}
local DEFAULT_DROPSPEED = 1
local LOOP_DELAY_FACTOR = 7
---(Bubble):isAlive()
-- @return boolean; whether the entity has outlasted its lifetime
local isAlive = function(self)
return self[6] > self[7]
end
---(Bubble):isOn()
-... |
local E, C, L, ET, _ = select(2, shCore()):unpack()
if C.main.restyleUI ~= true then return end
local _G = _G
local GetPetHappiness = GetPetHappiness
local HasPetUI = HasPetUI
local UnitExists = UnitExists
local function LoadSkin()
local PetStableFrame = _G['PetStableFrame']
PetStableFrame:StripLayout()... |
local config = {
guildTalksEnabled = getBooleanFromString(getConfigValue('ingameGuildManagement'))
}
function onSay(cid, words, param, channel)
local playerAccess, t = getPlayerAccess(cid), {}
for i, talk in ipairs(getTalkActionList()) do
if(not talk.hide and playerAccess >= talk.access) then
local tmp... |
test_run = require('test_run').new()
REPLICASET_1 = { 'storage_1_a', 'storage_1_b' }
REPLICASET_2 = { 'storage_2_a', 'storage_2_b' }
test_run:create_cluster(REPLICASET_1, 'router')
test_run:create_cluster(REPLICASET_2, 'router')
util = require('util')
util.wait_master(test_run, REPLICASET_1, 'storage_1_a')
util.wait_ma... |
remote = require('net.box')
test_run = require('test_run').new()
engine = test_run:get_cfg('engine')
_ = box.space._session_settings:update('sql_default_engine', {{'=', 2, engine}})
box.execute('create table test (id int primary key, a NUMBER, b text)')
space = box.space.TEST
space:replace{1, 2, '3'}
space:replace{4, ... |
local m = require 'lpeg'
local contiguous_byte_ranges = require 'parse.char.utf8.data.contiguous_byte_ranges'
local m_char = require 'parse.char.utf8'
local two_chars = m.C(m_char) * m.C(m_char) * m.P(-1)
local prefix_char = m.C(m_char) * m.Cp()
local blob_tools = require 'parse.blob.tools'
local next_blob = blob_too... |
---@class AceLocale-3.0
local AceLocale = {}
---@param application string Unique name of addon / module
---@param silent? boolean If true, the locale is optional, silently return nil if it's not found (defaults to false, optional)
---@return table -- The locale table for the current language.
--- ---
---[Documentation... |
local _G = getfenv(0)
local AtlasLoot = _G.AtlasLoot
-- lua
local GetMapInfo = C_Map.GetMapInfo
local rawget = rawget
local _, tmp1
local months = {
MONTH_JANUARY,
MONTH_FEBRUARY,
MONTH_MARCH,
MONTH_APRIL,
MONTH_MAY,
MONTH_JUNE,
MONTH_JULY,
MONTH_AUGUST,
MONTH_SEPTEMBER,
MONTH_OCTOBER,
MONTH_NOVEMBER,
MON... |
local name, _GatherLite = ...;
local GFrame = LibStub("GatherLiteFrame");
local HBD = LibStub("HereBeDragons-2.0");
local worldmapOpen = false;
local worldmapID = nil;
local timeDiff = 0
local checkDiff = 0
GatherLiteTracker = {};
function GatherLiteTracker:OnLoad()
GatherLite:On("worldmap:update", function()
... |
local Timing = Component.create("Timing")
function Timing:initialize(time)
self.timer = time
end
|
return {
namespaced_message = "This message is in another intl file."
} |
modifier_dummy = class({})
--Set the dummy out of the game
function modifier_dummy:CheckState()
local state = {
[MODIFIER_STATE_OUT_OF_GAME] = true,
[MODIFIER_STATE_INVULNERABLE] = true,
[MODIFIER_STATE_NO_UNIT_COLLISION] = true,
[MODIFIER_STATE_UNSELECTABLE] = true
}
return state
end |
table.insert(data.raw["technology"]["military"].effects,
{
type = "unlock-recipe",
recipe = "alien-plate"
})
table.insert(data.raw["technology"]["military"].effects,
{
type = "unlock-recipe",
recipe = "alien-magazine"
})
table.insert(data.raw["technology"]["military"].e... |
--
-- Created by IntelliJ IDEA.
-- User: chen0
-- Date: 11/7/2017
-- Time: 8:28 AM
-- To change this template use File | Settings | File Templates.
--
local ConnectedComponents = {}
ConnectedComponents.__index = ConnectedComponents
function ConnectedComponents.create()
local s = {}
setmetatable(s, ConnectedCo... |
---@class FrameworkMessageType
EsoAddonFramework_Framework_MessageType = {
---Sent from framework the first time a player is activated after login or ui reload.
InitialActivation = 1,
---Sent from framework to request controls that should be shown on the settings page.
SettingsControlsRequest = 2,... |
-- important fields for Analyzer class
require "lpeg"
extensions = {"lua"}
language = "Lua"
full_grammar = "lua_grammar"
other_grammars = {block = "lua_grammar"}
paired = {"{", "}", "(", ")"}
selectable = {"block", "chunk", "stat", "laststat", "function_name",
"namelist", "varlist", "function_call", "expression", "u... |
local cjson = require "cjson"
local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
describe("URI encoding [#" .. strategy .. "]", function()
local proxy_client
setup(function()
local bp = helpers.get_db_utils(strategy)
bp.routes:insert {
hosts = { ... |
-- This file is generated with ListStrings.ps1
local L = LibStub("AceLocale-3.0"):NewLocale("XKeyBinding", "ruRU")
if not L then return end
---------- Total: 46 ----------
L["Command #"] = "Команда №"
L["Invoked Macro by name: "] = "Вызван макрос с именем "
L["Invoked Macro sequence "] = "Вызван код макроса "
L[... |
if not modules then modules = { } end modules ['lpdf-mis'] = {
version = 1.001,
comment = "companion to lpdf-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- Although we moved mo... |
splash:go(args.url)
splash:wait(1.0)
result = {}
result.lowest_price = 10000
result.bag_weight = "20kg"
result.bag_price = "20"
result.html = splash:html()
|
--local _button = "Small"
local id_number = 0
local debug = false
local names = {
"Kyle",
"Preston",
"Pedro",
"Jean",
"Willis",
"Eric",
"Alan",
"Jeremiah",
"Troy",
"Warner",
"Guadalupe",
"Emanuel",
"Parker",
"Willie",
"Mauricio",
"Tommie",
"Buck",
... |
SWEP.Base = "arccw_base"
SWEP.Spawnable = true -- this obviously has to be set to true
SWEP.Category = "ArcCW - COD Extras" -- edit this if you like
SWEP.AdminOnly = false
SWEP.PrintName = "Kuda AP9"
SWEP.Trivia_Class = "Submachine Gun"
SWEP.Trivia_Desc = "South African SMG."
SWEP.Trivia_Manufacturer = "Kuda"
SWEP.Tri... |
local path = (...):match('(.-)[^%./]+$')
return {
name = 'Quad',
description = 'A quadrilateral (a polygon with four sides and four corners) with texture coordinate information.\n\nQuads can be used to select part of a texture to draw. In this way, one large texture atlas can be loaded, and then split up into ... |
local gears = require("gears")
local awful = require("awful")
require("widgets.main_menu")
local desktop_mouse = gears.table.join(
awful.button({}, 3, function()
mymainmenu:toggle()
end),
awful.button({}, 4, awful.tag.viewnext),
awful.button({}, 5, awful.tag.viewprev)
)
return desktop_mouse
|
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
if CLIENT then
SWEP.DrawCrosshair = true
SWEP.PrintName = "Winchester 9422"
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelMovementScale = 1.15
SWEP.IconLetter = "i"
SWEP.MuzzleEffect = "muzzleflash_SR25"
SWEP.MuzzleAttachmentName = "muzzle"
SW... |
-- Pandoc Filter to Generate FurAffinity Markup
-- By anonusr, 2022
--
-- Based on 2bbcode (https://github.com/lilydjwg/2bbcode)
-- Invoke with: pandoc -t to_furaffinity.lua [INPUTFILE]
--
-- Note that Pandoc has no concept of text color or alignment,
-- so these items will never be translated, even if FA supports the... |
require 'torch'
require 'nn'
require 'optim'
require 'image'
require 'nninit'
local model = require 'src/model'
local dataproc = require 'src/dataproc'
--Use FloatTensor for faster training
local dtype = 'torch.FloatTensor'
local useOpenCl = true;
--If we are using opencl, we change the tensor dtype to "ClTensor" ... |
--------------------------------
-- @module BezierTo
-- @extend BezierBy
-- @parent_module cc
--------------------------------
--
-- @function [parent=#BezierTo] startWithTarget
-- @param self
-- @param #cc.Node target
-- @return BezierTo#BezierTo self (return value: cc.BezierTo)
--------------------------... |
for i=1,7 do
soundblock.register({
filename = "horror_" .. i,
key = "horror_" .. i,
name = "Horror track " .. i
})
end
soundblock.register({
filename = "clock",
key = "horror_clock",
name = "Horror clock"
})
soundblock.register({
filename = "clock_strikes_twelve",
key = "clock_strikes_twelv... |
data:extend(
{
{
type = "bool-setting",
name = "enableinfiniteclownsore1",
setting_type = "startup",
default_value = true,
order = "a",
},
{
type = "bool-setting",
name = "enableinfiniteclownsore2",
setting_type = "startup",
default_value = true,
order = "b",
},
{
type = "bool-setting",
nam... |
vim.opt.path = ".,/usr/include,,,/home/max/.config/nvim,/home/max/Documents**"
vim.opt.shiftwidth = 4
vim.opt.scrolloff = 10
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.showmode = false
vim.opt.laststatus = 3
vim.opt.guicursor = "" -- disable cursor-styling
... |
-- NMEA0183 sample setup for home tests, with UDP sockets instead of the real wired RS-422 network
-- get the package
NMEA = require( "NMEAcop" )
-- listener for incoming messages on backbone
bblistener = NMEA.new()
-- set up the filtering, override default discard action by forward to backbone output
bblistener.defaul... |
function love.load()
require "class"
require "variables"
require "essentials"
require "tilelist"
require "physics"
require "game"
require "spells"
require "spellbook"
require "end"
require "menu"
require "quoteunquotestory"
require "player"
require "quad"
require "tile"
require "laser"
require "cube"
... |
ITEM.name = "Blown Capacitor"
ITEM.model ="models/artefacts/empty.mdl"
ITEM.description = "An electric artifact."
ITEM.longdesc = "A physical impossibility. These two circular plates are held at a constant distance to one another, as if something invisible and intangible is keeping them apart. Scientists are still deba... |
describe("translate", function()
local lib = require "resty.waf.translate"
local t = lib.translate
local chains, errs
before_each(function()
chains = {}
errs = nil
end)
it("single valid rule with no errors", function()
local raw = {
[[SecRule ARGS "foo" "id:12345,phase:2,deny,msg:'dummy msg'"]]
}... |
local Translator = torch.class('Translator')
local nnq = require ('nnquery')
local options = {
{'-model', '', [[Path to model .t7 file]], {valid=onmt.utils.ExtendedCmdLine.nonEmpty}},
{'-beam_size', 5, [[Beam size]]},
{'-batch_size', 30, [[Batch size]]},
{'-max_sent_length', 250, [[Maximum output sentence leng... |
-- http://stackoverflow.com/questions/20284515/capitalize-first-letter-of-every-word-in-lua
function string:to_http ()
return self:gsub ("_", "-"):gsub ("(%a)(%a*)", function (letter, r)
return letter:upper() .. r:lower()
end)
end
function string:to_identifier ()
return self:trim ():lower ():gsub ("-", "_")
... |
local t = My.Translator.translate
My = My or {}
My.SideMissions = My.SideMissions or {}
My.SideMissions.TransportThing = function(from, to, player)
local size = math.random()
size = size * size + 0.2 -- ensures the size is at the lower border more oftenly
local amount = math.ceil(size * player:getMaxStora... |
local match = require "luassert.match"
local spy = require "luassert.spy"
local display = require "nvim-lsp-installer.core.ui.display"
local Ui = require "nvim-lsp-installer.core.ui"
local a = require "nvim-lsp-installer.core.async"
describe("ui", function()
it("produces a correct tree", function()
local f... |
--- MaterialDesign
local M = {}
M.FontIconFileName = "MaterialIcons-Regular.ttf"
M.IconMin = 0xe000
M.IconMax = 0xeb4c
M.The3d_rotation = "\xee\xa1\x8d"
M.Ac_unit = "\xee\xac\xbb"
M.Access_alarm = "\xee\x86\x90"
M.Access_alarms = "\xee\x86\x91"
M.Access_time = "\xee\x86\x92"
M.Accessibility = "\xee\xa1\x8e"
M.Accessib... |
local class = require("pl.class")
local ChannelAudience = require("core.ChannelAudience");
local tablex = require("pl.tablex")
---@class WorldAudience : ChannelAudience
local M = class(ChannelAudience)
function M:getBroadcastTargets()
return tablex.filter(tablex.values(self.state.Pla... |
local m = require "luadiff"
assert(m.diff("", "") == 0,
"Empty strings should have diff equal to zero")
assert(m.diff(" ", " ") == 0,
"Characters should have diff equal to zero")
assert(m.diff("algo", "algo") == 0,
"Strings without spaces should have diff equal to zero")
assert(m.diff("algo assim"... |
WeaponTypes.addType("SpreadFire", "Spreadfire Cannon", armed) |
_G.GhostMode = _G.GhostMode or {}
GhostMode._path = ModPath
GhostMode._data_path = SavePath .. "ghost_mode_data.json"
GhostMode._data = {}
--[[
Menu logics
]]
function GhostMode:Save()
local file = io.open(self._data_path, "w+")
if file then
file:write(json.encode(self._data))
file:close()
... |
---------------------------------------------------------------------------
-- A layout with widgets added at specific positions.
--
-- Use cases include desktop icons, complex custom composed widgets, a floating
-- client layout and fine grained control over the output.
--
--
-- @author Emmanuel Lepage Vallee
-- @copy... |
T = require't'
Pack = require( "t.Pack" )
Test = require( "t.Test" )
Buffer = require( "t.Buffer" )
Oht = require( "t.OrderedHashTable" )
pprint = require( "t.Table" ).pprint
equals = require( "t" ).equals
prxIdx = require( "t" ).proxyTableIndex
utl = T.require('t_pck_utl')
-- 0 1 2 3 ... |
-- event.lua
local M = {}
local manager = {
events = {}
}
M.notify = function(event, data)
if not manager.events[event] then return end
for _,callback in ipairs(manager.events[event]) do
callback(data)
end
end
M.subscribe = function(event, callback)
if not manager.events[event] then
manager.events[... |
local qcfg = require 'Q/UTILS/lua/qcfg'
local qconsts = require 'Q/UTILS/lua/qconsts'
local incdir = "../gen_inc/"
local srcdir = "../gen_src/"
local plpath = require 'pl.path'
if ( not plpath.isdir(srcdir) ) then plpath.mkdir(srcdir) end
if ( not plpath.isdir(incdir) ) then plpath.mkdir(incdir) end
local gen_cod... |
local success, config = pcall(function()
return json.fromString(remodel.readFile("deployment.json"))
end)
if not success then
error("Could not read deployment.json: " .. config)
end
local branchName = io.popen("git rev-parse --abbrev-ref HEAD"):read("*l")
local commitSHA = io.popen("git rev-parse HEAD"):read("... |
-- test luacheck
-- if there is a error, luacheck does NOT show warnings
local foo = true
local function bar()
end
|
module("luci.controller.vlmcsd", package.seeall)
function index()
if not nixio.fs.access("/etc/config/vlmcsd") then
return
end
entry({"admin", "services", "vlmcsd"}, cbi("vlmcsd"), _("KMS Server"), 100).dependent = true
entry({"admin", "services", "vlmcsd", "status"}, call("act_status")).leaf = true
end
functi... |
local ngx_agent = ngx.var.http_user_agent
local ngx_host = ngx.var.host
local ngx_status = ngx.var.status
local ngx_request_time = tonumber(ngx.var.request_time)
local ngx_scheme = ngx.var.scheme
local ngx_ssl_session_reused = ngx.var.ssl_session_reused
local ngx_xlocation = ""
if ngx.var.xlocation ~= nil and ngx.var.... |
---------------------------------------------------------------------------
-- NUI CALLBACKS
---------------------------------------------------------------------------
RegisterNUICallback("bub-notify::closeSettings", function(data, callback)
SetNuiFocus(false, false)
callback("ok")
end) |
AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Flame"
ENT.Author = "FiLzO"
ENT.Purpose = "Can you feel Air Exchange?"
ENT.Category = "Combine Units +PLUS+"
ENT.Spawnable = false
ENT.AdminOnly = false
local COLLISION_RADIUS = 3
local LIFE_TIME = 0.35
local sndEngulf = Sound( "... |
local Native = require('lib.native.native')
local Player = require('lib.oop.player')
local Widget = require('lib.oop.widget')
local Destructable = require('lib.oop.destructable')
local Item = require('lib.oop.item')
local Unit = require('lib.oop.unit')
local Ability = require('lib.oop.ability')
local Timer = require('l... |
object_building_kashyyyk_poi_kash_rryatt_lvl1_near_canopy_a3 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl1_near_canopy_a3:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl1_near_canopy_a3, "object/building/kashyyyk/poi_kash_rryatt_lvl1_near_canopy_a3.iff")
|
wincent.g.command_callbacks = {}
-- TODO: garbage-collect overwritten command callbacks
-- Wrapper for simple :command use cases. `repl` (replacement) may be a string
-- or a Lua function.
--
-- Slight departure from Vim default behavior: `force = true` is the default
-- (ie. `:command!` instead of `:command`), seein... |
-----------------------------------
-- Ability: Evoker's Roll
-- Gradually restores MP for party members within area of effect
-- Optimal Job: Summoner
-- Lucky Number: 5
-- Unlucky Number: 9
-- Level: 40
--
-- Die Roll |No SMN |With SMN
-- -------- ------- -----------
-- 1 |+1 |+2
-- 2 ... |
-- private utility module for `cp.rx`.
local util = {}
local defaultScheduler = nil
util.pack = table.pack or function(...) return { n = select('#', ...), ... } end
util.unpack = table.unpack or _G.unpack
util.eq = function(x, y) return x == y end
util.noop = function() end
util.identity = function(x) return x end
ut... |
local testCasesForRAI = {}
require('atf.util')
local commonPreconditions = require ('user_modules/shared_testcases/commonPreconditions')
local events = require("events")
local path_config = commonPreconditions:GetPathToSDL()
--[[@InitHMI_onReady_without_UI_GetCapabilities: replace original InitHMIOnReady from connect... |
local core = require "sys.core"
local master = require "cluster.master"
core.start(function()
local addr = assert(core.envget("master"), "master")
local monitor = assert(core.envget("monitor"), "monitor")
local capacity = {
['auth'] = 1,
['gate'] = 2,
['role'] = 2,
}
local ok, err = master.start {
monitor... |
local thismod = minetest.get_current_modname()
local modpath = minetest.get_modpath(thismod)
-- Global
leash = {}
leash.leashes = {}
leash.leashed_entities = {}
leash.leashed_playernames = {}
-- Leash object prototype
leash.proto = {}
local proto = leash.proto
proto.entity_ref = ""
proto.origin = {x = 0, y = 100, z... |
local registerAsserts = require 'registerAsserts'
local SparkSession = require 'stuart-sql.SparkSession'
registerAsserts(assert)
describe('DataFrameReader.parquet()', function()
local filename = 'model2-data-part-00003.parquet'
describe(filename, function()
it('centroids load', function()
local se... |
function Client_PresentSettingsUI(rootParent)
UI.CreateLabel(rootParent)
.SetText('Cost per neutral army = ' .. Mod.Settings.CostPerNeutralArmy);
end
|
---------------------------------
--! @file SystemLogger.lua
--! @brief ロガー管理クラス定義
--! SILENT ログ出力無し
--! 出力する場合は以下の8段階
--! FATAL、ERROR、WARN、INFO、DEBUG、TRACE、VERBOSE、PARANOID
--! 現状、loggingライブラリの都合で以下の5段階になっている
--! FATAL、ERROR、WARN、INFO、DEBUG
--! DEBUG、TRACE、VERBOSE、PARANOIDはDEBUGの出力になる
---------------------------------... |
mhf = require("schema_processor")
unistd = require("posix.unistd");
local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?>
<ns1:array_struct xmlns:ns1="http://test_example.com">
<author>123</author>
<author>456</author>
<author>789</author>
<author>012</author>
<author>234</author>
<title>1</title>
... |
local players = {}
local function tick(name)
if players[name] == nil then return end
if not minetest.get_player_by_name(name) or minetest.check_player_privs(name, {interact=true}) == true then
players[name] = nil
return
end
if minetest.check_player_privs(name, {shout=true}) then
minetest.chat_send_player(na... |
function class(base, init)
local c = {} -- a new class instance
if not init and type(base) == 'function' then
init = base
base = nil
elseif type(base) == 'table' then
-- our new class is a shallow copy of the base class!
for i,v in pairs(base) do
c[i] = v
end
c._ba... |
require("Examples.08_Container.Container")
require("Examples.08_Container.Child")
require("Framework.event.Event")
---@class Examples.08_Container.logic_08
---@field ui Examples.08_Container.Container
logic_08 = class("Examples.08_Container.logic_08")
function logic_08:ctor()
self.ui = Container.New()
local c... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('FlowerRecord_pb')
FLOWERRECORD = protobuf.Descriptor();
local FLOWERRECORD_ROLEID_FIELD = protobuf.FieldDescriptor();
local FLOWERRECORD_COUNT_FIELD = protobuf.FieldDescriptor();
local FLOWERRECORD_UPDATEDAY_FIELD = protob... |
require "xlog"
require "xclass"
local log = xlog("xclients")
xclients = xclass
{
__create = function (self)
self.clients = {}
return self
end,
get_clients_count = function (self)
local count = 0
for _ in pairs(self.clients) do
count = count + 1
end
return count
end,
check_client = function (se... |
local http = require "socket.http"
local ltn12 = require "ltn12"
local baseurl = "http://api.projecthawkthorne.com"
local glove = require 'vendor/glove'
local channel = glove.thread.getChannel("mixpanel")
while true do
local payload = channel:demand()
http.request {
method = "POST",
url = baseurl .. "/met... |
openIn:whatever( 4, false ) |
local function god(ply, args)
if (!ply:hasPerm("God")) then return am.broadcast(ply, "You aren't staff! You can't do this!"); end
local user = am.finduser(args[1]);
if (!user) then return am.broadcast(ply, "User not found!"); end
if (!user:Alive()) then return am.broadcast(ply, "User is not alive!"); end
if (!use... |
local Clockwork = Clockwork;
local PLUGIN = PLUGIN;
-- A function to load the fields.
function PLUGIN:LoadFields()
local fields = Clockwork.kernel:RestoreSchemaData("plugins/ff/"..game.GetMap());
for k, v in pairs(fields) do
local entity = ents.Create("cw_forcefield");
entity:SetAngles(v.angles);
entity:Set... |
local view = require'nvim-tree.view'
local M = {}
function M.compute_lines()
local help_lines = {'HELP'}
local help_hl = {{'NvimTreeRootFolder', 0, 0, #help_lines[1]}}
local mappings = vim.tbl_filter(function(v)
return v.cb ~= nil and v.cb ~= ""
end, view.View.mappings)
local processed = {}
for _, b in... |
--TODO: Depends - wood, gear, steel, stick, stone
--TODO: Steel requires forgin of head
--TODO: Tiles
crafting.register_type('tools')
workbench.register('toolbench:lvl1', 'tools', 1, {
description = 'Tool workbench',
tiles = {
"workbench_top.png^level1.png", "workbench_bottom.png^level1.png",
{name = "workbench... |
local UTILS = {}
-- # trilateration formulas to return the (x,y) intersection point of three circles
local function trilateration(x1,y1,r1,x2,y2,r2,x3,y3,r3)
local A = 2*x2 - 2*x1
local B = 2*y2 - 2*y1
local C = math.pow(r1, 2) - math.pow(r2, 2) - math.pow(x1, 2) + math.pow(x2, 2) - math.pow(y1, 2) + math.pow(... |
script.Parent = nil
text = "hours:mins:secs"
main = Vector3.new(-10,1.7,40)
sec = nil
min = nil
ho = nil
mod = nil
function makeclock()
for _,v in pairs(workspace:children()) do if v.Name == "xSclock" then v:remove() end end
local m = Instance.new("Model",workspace)
m.Name = "xSclock"
local o = 5
local humbug = 5
fo... |
print("Solving 2015, day 1")
local directions = nil
for line in io.lines("Day01.txt") do
directions = line
end
local floor = 0
local basement = 0
for i = 1, #directions do
-- print(string.byte(directions,i))
-- open: 40
-- closed: 41
local isOpenParenthesis = string.byte(directions,i) == 40
if... |
--- TDLib client.
-- @classmod Client
local ffi = require("ffi")
local cjson = require("cjson")
local class = require("middleclass")
local Client = class("luajit-tdlib.Client")
function Client:initialize(clib)
--- The internal loaded FFI object of tdlib (clib).
-- @local
self._clib = clib
--- The in... |
local player = require 'lib.ent.player'
local enemy = require 'lib.ent.enemy'
local bullet = require 'lib.ent.bullet'
local missle = require 'lib.ent.missle'
local planet = require 'lib.ent.planet'
local radio = require 'lib.ent.radio'
local smoke = require 'lib.ent.smoke'
local ecs = {}
function ecs.new(model, x, y... |
dofile ("raylib_premake5.lua")
dofile ("examples_premake5.lua")
workspace "raylib"
configurations { "Debug","Debug.DLL", "Release", "Release.DLL" }
platforms { "x64" }
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Debug.DLL"
defines { "DEBUG" }
symbols "On"
fi... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local luaunit = require "luaunit"
local mach = require "mach"
local Object = require "classic"
local TestFunctionWrapper = Object:extend()
function TestFunctionWrapper:setUp()
package.loaded["ArgumentListWrapper.Ar... |
local Log = require("uic/log");
local Util = require("uic/util");
local Components = require("uic/components");
local Text = {} --# assume Text: TEXT
--v function(name: string, parent: CA_UIC | COMPONENT_TYPE, textType: TEXT_TYPE, textToDisplay: string) --> TEXT
function Text.new(name, parent, textType, textToDisplay... |
local PANEL = {}
function PANEL:Init()
self:SetSize(500, 150)
local sw, sh = ScrW(), ScrH()
local ww, wh = self:GetSize()
self:SetPos(sw/2 - ww/2, sh - wh - 100)
self:SetTitle("Vote (F2 to activate)")
local seconds = 10
self.setTime = CurTime() + seconds
self.id = 0
self.name = self:Add("DLabel")
self.nam... |
-- This file is required by Luarocks, but I think putting source files in the
-- project root is dumb, so it is not used.
|
package("imath")
set_homepage("https://github.com/AcademySoftwareFoundation/Imath/")
set_description("Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics")
set_license("BSD-3-Clause")
add_urls("https://github.com/AcademySoftwareFoundation/Imath/arch... |
-----------------------------------------------------------------
-----------------------------------------------------------------
-- MASS EFFECT: UNIFICATION Low Health IFS Script by Nedarb7
-- Build 20404/06
-- Screen Names: Nedarb7
-- E-Mail:
-- Apr 04, 2015
-- Copyright (c) 2015 Nedarb7
--
-- About:
-... |
--[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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 ... |
--[[--ldoc desc
@Module Chip.lua
@Author JasonLiu
Date: 2018-10-24 14:25:57
Last Modified by: JasonLiu
Last Modified time: 2018-10-25 11:52:07
]]
local Chip = class("Chip", cc.load("boyaa").mvc.BoyaaView);
local BehaviorExtend = cc.load("boyaa").behavior.BehaviorExtend;
BehaviorExtend(Chip);
function ... |
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com>
--
-- 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, co... |
-- **Big thing that contains all sorts of fun stuff related to ms based scoring and adapting existing systems to it**
-- probably need to reorganize large parts of this
-- global here
ms = {}
-- *Values and stuff*
-- Make the distinction between ms timed and non-timed judgments
-- Radar values people on earth actuall... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.