content stringlengths 5 1.05M |
|---|
--[[
© 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
--]]
cwAnimatedLegs.BoneHoldTypes = {
["none"] = {
"ValveBiped.Bip01_Head1",
"Valv... |
project "glm"
kind "StaticLib" -- StaticLib for .lib
language "C++" -- C++
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
-- Files that should be included into this project
files
{
"glm/**.hpp",
"glm/**.inl"
}
-- If the system is... |
--------------------------------------------------------------
-- Definition of "setfallback" using tag methods
-- (for compatibility with old code)
--------------------------------------------------------------
-- default fallbacks for each event:
local defaults = {
gettable = function () error('indexed expression... |
BigWigs:AddColors("Mechano-Lord Capacitus", {
[35158] = {"green","orange"},
[35159] = {"green","orange"},
[39096] = {"cyan","orange","red"},
})
BigWigs:AddColors("Gatewatcher Iron-Hand", {
[35311] = {"blue","orange"},
[39193] = "red",
[39194] = {"blue","yellow"},
})
BigWigs:AddColors("Gatewatcher Gyro-Kill", {... |
workspace "Adonis"
architecture "x64"
configurations{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}/%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Adonis/vendor/GLFW/include"
IncludeDir["GLAD"] = "Adonis/vendor/glad/include"
IncludeDir["IMGUI"] = "Adonis/vendor/imgui"
I... |
--
-- slip.actions
--
-- Public functions with unified API.
--
local notes = require('slip.notes')
local slips = require('slip.slips')
local config = require('slip.config').opts
local slip_finders = require('slip.telescope.finders')
local tele_builtin = require('telescope.builtin')
local pickers = require('telescope.... |
local event = require("event")
local libGUI = require("libGUI")
local reactor_ctrl = require("brgc/reactor_ctrl")
local turbine_ctrl = require("brgc/turbine_ctrl")
local reactor_info_small = require("brgc/gui/reactor_info_small")
local turbine_info_small = require("brgc/gui/turbine_info_small")
local reactor_... |
local class = require('opus.class')
local Sound = require('opus.sound')
local UI = require('opus.ui')
local colors = _G.colors
UI.Form = class(UI.Window)
UI.Form.defaults = {
UIElement = 'Form',
values = { },
margin = 2,
event = 'form_complete',
cancelEvent = 'form_cancel',
}
function UI.Form:postInit()
self... |
-- protocol ops:
-- c->s prgdl <uid> <version>
-- s->c prgfile <uid> <path>
-- s->c prgdata <uid> <bin data>
-- Check protocol.txt for more info
local dlprogram = {}
local fs = require("filesystem")
local term = require("term")
local modem = require("component").modem
local event = require("event")
local programport =... |
EFFECT.Smoke = {
Material( "particle/smokesprites_0001" ),
Material( "particle/smokesprites_0002" ),
Material( "particle/smokesprites_0003" ),
Material( "particle/smokesprites_0004" ),
Material( "particle/smokesprites_0005" ),
Material( "particle/smokesprites_0006" ),
Material( "particle/smokesprites_0007" ),
M... |
--
-- volume.lua
-- volume status notification
--
local naughty = require("naughty")
local beautiful = require("beautiful")
-- ========================================
-- Config
-- ========================================
local icons_path = beautiful.icons_path .. "volume/"
-- =====================================... |
-- Date palms.
--
-- Date palms grow in hot and dry desert, but they require water. This makes them
-- a bit harder to find. If found in the middle of the desert, their presence
-- indicates a water source below the surface.
--
-- As an additional feature (which can be disabled), dates automatically regrow after
-- har... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Driftwood Club"] = {
type = "One Handed Mace",
socketLimit = 3,
tags = { default = true, weapon = true, onehand = true, mace = true, one_hand_weapon = true, },
implicit = "10% reduced Enemy S... |
Lexer = require 'lexer'
Parser = require 'parser'
examples = {
[1] = [[-~not-~#dog and friend + cheese]],
[2] = [[{['-'] = 'what', happy = true, ['rain'] = 'nice'; 5+5,}]],
[3] = [[wow.would['you']():look(at).that]],
[4] = [[x.y:z('heh')]],
[5] = [['hello' .. "world"]],
[6] = [[
function testFunction(word)
return "lo... |
return {
name = "Bomb",
desc = "Explosive fun",
sprite = 'bomb',
usage = 'bomb'
}
|
-- for Super Metroid
script_filename = @@LUA_SCRIPT_FILENAME@@
script_dir = script_filename:match("^(.*[/\\])")
-- first instructions of a wait for NMI loop
wait_start_addrs = {0x808343, 0x82e526, 0x85813c, 0x82e06b}
-- the first instruction after those loops (in no particular order)
wait_end_addrs = {0x808348, 0x82e... |
print("CTEST_FULL_OUTPUT")
require "Scene"
function expectSuccess(script)
print("Expect success:", script)
loadstring(script)()
print("OK!")
end
function expectAnythingButCrash(script)
print("Expect success or failure but no crash:", script)
local f = loadstring(script)
local success, retval =... |
#!/usr/bin/env bcc-lua
--[[
Copyright 2016 GitHub, Inc
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 ... |
require 'loadcaffe'
prototxt_name = '/home/zagoruys/deploy.prototxt'
binary_name = '/home/zagoruys/bvlc_reference_caffenet.caffemodel'
model = loadcaffe.load(prototxt_name, binary_name, 'ccn2')
|
local util = {}
util.colorsUsed = {}
util.bg = "#000000"
util.fg = "#ffffff"
local function hexToRgb(hex_str)
local hex = "[abcdef0-9][abcdef0-9]"
local pat = "^#(" .. hex .. ")(" .. hex .. ")(" .. hex .. ")$"
hex_str = string.lower(hex_str)
assert(string.find(hex_str, pat) ~= nil, "hex_to_rgb: invalid hex_... |
local NAME, S = ...
S.VERSION = GetAddOnMetadata(NAME, "Version")
S.BUILD = "Release"
KethoInstanceTimer = LibStub("AceAddon-3.0"):NewAddon(NAME, "AceEvent-3.0", "AceConsole-3.0", "LibSink-2.0")
local KIT = KethoInstanceTimer
KIT.S = S -- debug purpose
S.isClassic = (WOW_PROJECT_ID == WOW_PROJECT_CLASSIC)
local L = ... |
project ("App_RobotSimulator")
language "C++"
kind "ConsoleApp"
includedirs {"../../src", "../../examples",
"../../examples/ThirdPartyLibs"}
defines {"B3_USE_ROBOTSIM_GUI", "PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"}
if _OPTIONS["enable_grpc"] then
initGRPC()
files {
"../../examples/SharedMemory/Phy... |
print("Hello Lua")
|
local PLUGIN = PLUGIN
local PANEL = {}
AccessorFunc(PANEL, "money", "Money", FORCE_NUMBER)
function PANEL:Init()
self:DockPadding(1, 1, 1, 1)
self:SetTall(24)
self:Dock(BOTTOM)
self.moneyBtn = self:Add("DButton")
self.moneyBtn:Dock(FILL)
self.moneyBtn:SetFont("ixGenericFont")
self.moneyBtn:SetText("")
self.m... |
local default_msg_data = {
sender = nil,
listeners = {},
data = {},
position = nil,
radius = 0,
filter = nil,
rich = false,
size = Config.get('default_font_size', 20),
text = nil,
team_chat = false
}
local filters = {}
local client_mode = false
function Chatbox.add_filter(id, data)
filters[id] =... |
--sox 08.ogg -t u8 -c 1 -b 8 -r 8k 08.u8
--sox gun.wav -t wav -c 1 -b 8 -r 8k gun1.wav
--@see https://docs.yate.ro/wiki/ConvertingAudio
local songs = {
{
name = "White noise audio",
desc = "30 seconds of white noise",
path = "songs/noise_8k.u8"
},
{
name = "Empty audio",
desc = "30 seconds of nothing",
p... |
require("examples/benchmark")
|
--[[
阵形基类
]]
-- 显示延时
local C_SHOW_DELAY = 0.8
-- 显示配置
local C_SHOW_CONFIG = {
usecursor = false,
usesound = false,
quickshow = true,
linefeed = true,
ctrl_quick = false,
ctrl_complete = false,
}
local _FormationBase = class("_FormationBase", require("app.main.modules.script.ScriptBase"))
-- 战场动作
functi... |
local small_explosion_LUQ = table.deepcopy(data.raw.explosion["uranium-explosion-LUQ"])
small_explosion_LUQ.name = "small-uranium-explosion-LUQ"
small_explosion_LUQ.animations[1].scale = small_explosion_LUQ.animations[1].scale/2
small_explosion_LUQ.animations[1].shift = {-8,-8}
local small_explosion_RUQ = table.d... |
local config = {
numOfJobWorkers = 0,
mysql = {
--path = "/tmp/mysql.sock",
path = "/var/run/mysqld/mysqld.sock",
--host = "192.168.0.55",
--port = 3306,
database = "loginMaster",
--user = "funkii",
--password = "12345678",
user = "root",
... |
---------------------------------------------------------------------------------------------
-- Requirements summary:
-- [PolicyTableUpdate] PoliciesManager must initiate PTU in case getting 'device consent' from the user
--
-- Description:
-- SDL should request PTU in case gets 'device consent' from the user
-- 1. Us... |
require('bqf').setup({
auto_enable = true,
})
|
dyinclude("classes/abstract.logger.class.lua",true);
CLogger = class(CAbstractLogger,
function (self, copyfrom)
self.file = nil;
self.filename = nil;
self.dateformat = "%Y/%m/%d %H:%M:%S";
self.lastMsgTime = 0; -- last time we log a message
self.lastMsg = "<UNKNOWN>"; -- last mesage we log
self.repeatT... |
-- DESCRIPTION
-- ========================================================================
-- Widget to show the IP
-- LIBRARY
-- ========================================================================
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
local beaut... |
local ffi = require 'ffi'
local x11 = require './x11'
local gc = require './gc'
local font = require './font'
return function(opts)
local rects = ffi.new('xcb_rectangle_t[1]')
x11.change_gc(gc, {
foreground = opts.colors.bg;
})
rects[0].x = opts.x + 1
rects[0].y = opts.y + 1
rects[0].width = opts.width - 2
re... |
-- common
-- //-----------------------------------------------------------------------
function print_info(info)
print("[info] " .. info)
end
function print_warning(warning)
print("[warn] " .. warning)
end
function print_err(error)
print("[error!] " .. error)
end
function os.capture(cmd, raw)
print("-... |
local json = require "json"
local database = require "database"
local exit = require "exit"
local template = require'template'
template.caching(false)
-- Compile template, disable cache, enable plain text view to skip filesystem loading
local view = template.compile([[<!DOCTYPE html><html><head><title>Fortunes</title>... |
--[[-------------------------------------------------------------------------
StormFox2.Sun.SetTimeUp(nTime) Sets how long the sun is on the sky.
StormFox2.Sun.IsUp() Returns true if the sun is on the sky.
StormFox2.Moon.SetTimeUp(nTime) Sets how long the moon is on the sky.
--------------------------------... |
if not wac then return end
if SERVER then AddCSLuaFile('shared.lua') end
ENT.Base = "wac_pl_base"
ENT.Type = "anim"
ENT.Category = wac.aircraft.spawnCategoryC
ENT.PrintName = "F-4 Phantom II"
ENT.Author = "SentryGunMan"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Model =... |
-- register data
local _static_data = {
name = "steam-geyser",
entity_name = "steam-geyser-bare",
default_floor = "sand",
position = {
offset = { 300, 400 },
}
}
local _upgrade_data = {
name = "steam-geyser-bare",
upgrades = {
["restored-steam-geyser"] = {
entity_name ... |
--------------------------------------------------------------------------------
--<[ Внутренние события ]>------------------------------------------------------
--------------------------------------------------------------------------------
addEvent( "Popup.onServerShowPopup", true ) -- Сервер показал popup ... |
local Schema = require "kong.db.schema"
local ts = require "kong.db.schema.topological_sort"
describe("schemas_topological_sort", function()
local function collect_names(schemas)
local names = {}
for i = 1, #schemas do
names[i] = schemas[i].name
end
return names
end
local function schema_... |
-----------------------------------
-- Area: Bastok Markets
-- NPC: Nbu Latteh
-- Starts & Finishes Quest: Mom, The Adventurer?
-- Starts Quest: The Signpost Marks the Spot
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/titles");
r... |
--------------------------------------------------------------------------------
-- 81-501 controller panel
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for additional... |
local loremipsum = {}
local mattata = require('mattata')
local HTTP = require('socket.http')
function loremipsum:init(configuration)
loremipsum.arguments = 'loremipsum'
loremipsum.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('loremipsum').table
loremipsum.help = configuration.comma... |
bit32 = bit
---Indicates a call when the server first starts up.
RESET_REASON_BOOT = 0
---Indicates a call by the engine, usually when the round/day resets in default game modes.
RESET_REASON_ENGINECALL = 1
---Indicates a call after the Lua state was manually reset.
RESET_REASON_LUARESET = 2
---Indicates a call from S... |
require 'SRC.strict'
-- define some convenience functions
function get_point_by_name (container, name)
for key, value in ipairs(container) do
if value["name"] == name then
value["coordinates"] = value["point"]
return value
end
end
print('container does not contain p... |
local GUI = require("GUI")
local internet = require("Internet")
local system = require("System")
local filesystem = require("Filesystem")
local image = require("Image")
local color = require("Color")
local screen = require("Screen")
local paths = require("Paths")
local text = require("Text")
local keyboard = require("... |
local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Resolver", function()
local admin_client
setup(function()
assert(helpers.start_kong({
custom_plugins = "database-cache",
lua_package_path = "?/init.lua;./kong/?.lua;./spec/fixtures/?.lua"
}))
admin_client = help... |
--元灵的后续·Monosu
local m=37564052
local cm=_G["c"..m]
xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end)
cm.Senya_name_with_elem=true
function cm.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,4,2,nil,nil,63)
c:EnableReviveLimit()
local e1=Effect.CreateE... |
return {'pentagon','pentateuch','pen','penaal','penaliseren','penaliteit','penalty','penaltystip','penant','penantkastje','penantspiegel','penanttafel','penarie','penaten','pendag','pendant','pendel','pendelaar','pendelbeweging','pendelbus','pendeldienst','pendeldiplomatie','pendelen','pendeloque','pendeltrein','pendel... |
DefineClass.NetworkNode =
{
__parents = { "SpireBase", "ElectricityConsumer", "Workplace" },
properties = {
{ template = true, category = "Spire", name = T(679, "Performance boost"), id = "performance_boost", editor = "number", default = 20, help = "Performance boost (int percent) to all research buildings in the... |
function onCreate()
-- background shit
makeLuaSprite('back2', 'back2', -500, -300);
setLuaSpriteScrollFactor('back2', 0.9, 0.9);
scaleObject('back2', 1, 1)
addLuaSprite('back2', false);
makeLuaSprite('back22', 'back2', -500, -300);
setLuaSpriteScrollFactor('back22', 0.9, 0.9);
scaleObject('back22', 1, 1)
addL... |
local aabb = require 'aabb'
local boxgen = {}
local function cuts(n) -- helper function for generate
-- calculates how many levels of recursion are required
-- to split a space in n slices
-- (in practice this function is equal to the logarithm of n in base 4)
local sum = 1
local cnum = 0
... |
object_tangible_quest_skeleton_ithorian = object_tangible_quest_shared_skeleton_ithorian:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_skeleton_ithorian, "object/tangible/quest/skeleton_ithorian.iff")
|
MazeState = Class{__includes = BaseState}
function MazeState:init()
-- initial data to prevent nil values
self.data = {level = 0,
row = math.random(GRID_LENGTH),
col = math.random(GRID_LENGTH),
tokens = 0}
-- tokens found on current level
self.tokensLevelCount = 0
-- maze generation
self... |
---@param str string
local function SubstituteString(str, ...)
local args = {...}
local result = str
for k, v in pairs(args) do
if type(v) == "number" and v == math.floor(v) then v = math.floor(v) end -- Formatting integers to not show .0
result = result:gsub("%["..tostring(k).."%]", v)
... |
local uloop = require("uloop")
-- XXX: for uloop, it is global, so only one uloop_reactor instance
-- can be use.
local uloop_reactor = {}
local __events = {}
uloop.init()
uloop_reactor.register_fd_event = function (fd_event_cb, fd, event)
local new_ev_obj
local events = 0
-- TODO: support regiser... |
--
-- Created by IntelliJ IDEA.
-- User: Kunkka
-- Date: 17/1/25
-- Time: 下午5:28
-- To change this template use File | Settings | File Templates.
--
local TableViewTest = class("TableViewTest", gk.Layer)
function TableViewTest:ctor()
TableViewTest.super.ctor(self)
-- let height fill screen
local height = ... |
util.AddNetworkString( "EPS_RetrievePersonalRecords" )
local function GetJobNameForRecords( target )
local job_number = target:Team( )
local job_name = RPExtraTeams[ job_number ].name
local jobs_to_display = EggrollPoliceSystem.Config.JobsToDisplayInRecords
if jobs_to_display[ "all" ] then
return job_name
end
... |
--
-- @@LIB_NAME@@, Version: @@Version@@
--
-- This file is a part of @@LIB_NAME@@.
--
-- Author:
-- Xiaofeng Yang 2015
--
-- Provide simple annotation support for Lua.
local M = {}
-- annotationChain[generated function] == { ... }
local annotationChain = setmetatable({},{ __mode = 'k' })
local create = function... |
return {
"icons/weapon/weapon_blade_turkishflag",
"icons/weapon/wp_blade-m017_algeria-flag",
"icons/weapon/wp_blade-m017_argentina-flag",
"icons/weapon/wp_blade-m017_australia-flag",
"icons/weapon/wp_blade-m017_bahrain-flag",
"icons/weapon/wp_blade-m017_belize-flag",
"icons/weapon/wp_blade-m017_black-white",
"icons/wea... |
local _M = {}
function _M.register_rbac_resources(dao)
local utils = require "kong.tools.utils"
local bit = require "bit"
local rbac = require "kong.rbac"
local bxor = bit.bxor
-- action int for all
local action_bits_all = 0x0
for k, v in pairs(rbac.actions_bitfields) do
action_bits_all = bxor(... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
local condition = Condition(CONDITION_CURSED)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition... |
return {
Core = require(script.Core);
new = require(script.Core).new;
useChaining = require(script.Chaining);
useQuery = require(script.Query);
useReplication = require(script.Replication);
useTags = require(script.Tags);
}
|
local mod = {}
local dpdkc = require "dpdkc"
local ffi = require "ffi"
mod.rte_i40e_pmd = require "driver.i40e"
mod.rte_ixgbe_pmd = require "driver.ixgbe"
mod.rte_igb_pmd = require "driver.igb"
mod.rte_virtio_pmd = require "driver.virtio"
mod.rte_vmxnet3_pmd = require "driver.vmxnet3"
function mod.initDriver(dev)
l... |
local socket = require 'skynet.socket'
local base = require 'client.base'
local client = base:subclass("LOGGER_CLIENT_UDP")
---
function client:initialize(logger, fmt, host, port)
base.initialize(self, logger, fmt)
self._host = host
self._port = tonumber(port) or 1514
end
--- Timeout: ms
function client:send(raw... |
-- TODO: Add support for MAC OS and Linux
workspace "Nova" -- "Solution name"
architecture "x64" -- Only support x64
configurations
{
"Debug", -- Development
"Release", -- "Faster development", still logging etc
"Dist" -- For release to "other people", stripped version
}
outputdir = "%{cfg.buildcfg}-%... |
local inserted = false
local tinsert = table.insert
local music = {
{
text = "Bride of Dawn",
value = "Interface\\AddOns\\DBM-TURUL-MusicPack\\Music\\Bride_of_Dawn.ogg"
},
{
text = "End Effect",
value = "Interface\\AddOns\\DBM-TURUL-MusicPack\\Music\\End_Effect.ogg"
},
{
text = "Fall of the Dark Lady",
... |
local mod = ...
local M =
{
Msg = nil,
SC = nil,
TM="--:--:--",
UpT=''
}
_G[mod] = M
-- 128 x 64 with top 16 lines in different color
local WC={ "\208", "\211", "\209", "\210" }
local WCNT=1
local NWT=0 -- how many waiters
local IC_X=119
local IC_Y=0
local M_X = 51
local M_Y = 5
local T_X=0
l... |
local button = {}
local buttons = {}
function button.clear()
for k, v in pairs(buttons) do
if v.label ~= HELP_BUTTON_STR then
buttons[k] = nil
end
end
end
function button.add( newX, newY, newWidth, newHeight, newLabel, functionOff, functionHover, newEvent, newArgument )
local newButton = {}
newButton.x = ... |
function initNPCHLC()
all_npcs = {}
unsynced_npcs = {}
last_update = {}
initNPCControl()
end
addEventHandler("onResourceStart",resourceRoot,initNPCHLC)
function addNPCToUnsyncedListOnStopSync()
addNPCToUnsyncedList(source)
end
function removeNPCFromUnsyncedListOnStartSync()
removeNPCFromUnSyncedList(source)
end... |
-- A job object.
job = {
-- If the job has been completed
done = false
}
function job:new( o )
o = o or {}
setmetatable( o, self )
self.__index = self
return o
end
function job:start_work()
end
return job |
---
-- @module Path
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Class = require( 'lib.Middleclass' )
local Walk = require( 'src.characters.actions.Walk' )
local Open = require( 'src.characters.actions.Open' )
local OpenInventory ... |
--local Model = require( 'models/base' )
local MySQLDatabase = class( 'MySQLDatabase' )--, Model )
function MySQLDatabase.static:connect( connection_settings )
local object = MySQLDatabase:new()
object.host = connection_settings.host
object.database = connection_settings.database
object.username = connecti... |
help(
[[
This module loads xz 5.2.2 into the environment. XZ Utils is free
general-purpose data compression software with a high compression ratio. XZ
Utils were written for POSIX-like systems, but also work on some not-so-POSIX
systems. XZ Utils are the successor to LZMA Utils.
]])
whatis("Loads the xz compression ... |
local lspconfig = require('lspconfig')
local lspconfigs = require('lspconfig.configs')
local lspkind = require('lspkind')
local lsp_installer = require("nvim-lsp-installer")
local coq = require("coq")
local M = {}
-- add some emoji decorations to the completion menu's suggestions
lspkind.init({
with_text = true,
... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Selectors = {}
function Selectors.get(state, perspective, position)
if not state.fogOfWar then return nil end
local view = state.fogOfWar[perspective]
if not view th... |
local lpugl = require"lpugl_cairo"
local oocairo = require"oocairo"
local floor = math.floor
local ceil = math.ceil
local abs = math.abs
local sqrt = math.sqrt
local unpack = table.unpack or unpack -- for Lua 5.1
math.randomseed(os.time())
local world = lpugl.newWorld("example03.lua")
local scale = world:getS... |
-- local MQ = require "MQ.stomp"
local MQ = require "MQ.redis"
-- local MQ = require "MQ.mqtt"
local cf = require "cf"
require "utils"
local mq = MQ:new {
host = 'localhost',
-- port = 61613,
-- port = 1883,
port = 6379,
-- vhost = '/exchange',
-- auth = "admin",
-- username = "guest",
-- password = "guest",
... |
--[[
Made by Fenrier.
]]
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right Arm"] ... |
local lush = require("lush")
local c = require("gruvboy.colors")
local theme = lush(function()
return {
NvimTreeFolderIcon({ fg = c.yellow }),
NvimTreeIndentMarker({ fg = c.bg4 }),
NvimTreeEndOfBuffer({ fg = c.bg0 }),
NvimTreeRootFolder({ fg = c.bg4, gui = "bold" }),
}
end)
ret... |
local BaseGui = require 'src.gui.BaseGui'
local Grid = require 'src.gui.Grid'
local ClassLookup = require 'src.class.ClassLookup'
return function(spriteData, nickname, selectedClass, key, colour)
local characterSelect = BaseGui()
characterSelect.spriteData = spriteData
if key and colour then
chara... |
Locales ['cs'] = {
['buy_license'] = 'zakoupit zbrojni prukaz?',
['yes'] = '%s',
['no'] = 'ne',
['weapon_bought'] = 'zakoupeno za $%s',
['not_enough_black'] = 'nemas dostatek spinavych penez',
['not_enough'] = 'nemas dostatek penez',
['already_owned'] = 'tuhle zbran jiz vlastnis!',
['shop_menu_title'] =... |
--- GUI structuring tools and event handling.
-- **NOTICE: This module will be deprecated when Factorio 1.2 releases. Use the @{gui-beta} module instead.**
-- @module gui
-- @alias flib_gui
-- @usage local gui = require("__flib__.gui")
-- @see gui.lua
local flib_gui = {}
local table = require("__flib__.table")
local ... |
require("prototypes.entity.entity")
require("prototypes.item.alien-economy")
require("prototypes.item.alien-components")
require("prototypes.item.alien-warfare")
require("prototypes.item.alien-module")
require("prototypes.item-group.item-groups-module")
require("prototypes.recipe.alien-module")
require("prototypes.r... |
-- Says hello to the name entered in the text box on a button click
-- Create the controls
local vbox = as3.class.mx.containers.VBox.new()
local label = as3.class.mx.controls.Label.new()
local input = as3.class.mx.controls.TextInput.new()
local button = as3.class.mx.controls.Button.new()
label.text = "Name:"
button.l... |
local test = require('test')
local Matrix4x3 = Matrix4x3
local Vector3 = Vector3
test.suite('Matrix4x3 Library')
test.test('creation', function()
local m = Matrix4x3.new()
test.assert_equal(#m, 12)
test.expect_equal(m:get(1, 1), 1)
test.expect_equal(m:get(1, 2), 0)
test.expect_equal(m:get(1, 3), 0... |
local _, T = ...
if T.Mark ~= 50 then return end
local L, EV, G, api = T.L, T.Evie, T.Garrison, {}
local MISSION_PAGE_FRAME = GarrisonMissionFrame.MissionTab.MissionPage
local SHIP_MISSION_PAGE = GarrisonShipyardFrame.MissionTab.MissionPage
local RefreshActiveMissionsView, activeMissionsHandle
local RefreshAvailMissio... |
return Def.ActorFrame {
-- Speed
Def.Sprite {
OnCommand=function(self)
self:x(-85);
if GAMESTATE:PlayerIsUsingModifier(PLAYER_2,'1.5x') and SCREENMAN:GetTopScreen():GetScreenType() == "ScreenType_Gameplay" then
self:Load(THEME:GetPathB("","optionicon_P2/speed_x1_5_P1"));
elseif GAMESTATE:PlayerI... |
require "x_functions";
-- Set to "true" to disable all hotkeys
-- Set to "false" to enable hotkeys
NO_HOT_KEYS = true
-- -------------------------------------------------------------------------------
function forcez()
if memory.readdwordsigned(0x800BA028) == 32768 then
memory.writedword(0x800BA028, 26000);
... |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Position = require "game.rules.world.position"
local Selectors = {}
function Selectors.getDimensions(state)
if not state or not state.map then
return { width = 0, he... |
-- TODO: Add filetype as an argument, delete all filetypes
local M = {}
local api = vim.api
local config = require('close_buffers.config')
local allowed_delete_type = {
nameless = true,
other = true,
hidden = true,
all = true,
this = true,
}
-- Match buffer name against glob or regex.
---@param bufnr numbe... |
-- See LICENSE for terms
function OnMsg.LoadGame()
local o = BuildMenuPrerequisiteOverrides
if o.WindTurbine and TGetID(o.WindTurbine) == 401896326435 --[[You can't construct this building at this time]] then
o.WindTurbine = nil
end
end
|
-- INCLUDES
#include 'include/internal_events.lua'
-- VARIABLES
local g_Commands
local g_LoadingCmdList = false
local g_GuiParent, g_SearchEdit, g_CmdList
local g_HelpMgrRes = Resource('helpmanager')
-- FUNCTIONS
local function HlpUpdateList()
if(not g_CmdList or not g_Commands) then return end
guiGr... |
json = require("dkjson")
function printf(...)
print(string.format(...))
end
function round(val, dec)
if dec then
return math.floor(val * 10 ^ dec + 0.5) / 10 ^ dec
else
return math.floor(val + 0.5)
end
end
function processTemplateFile(name, directiveTable)
local state = { }
local out = io.open(name..".lua... |
local proto = require 'proto'
local define = require 'proto.define'
local client = require 'client'
local json = require "json"
local config = require 'config'
local lang = require 'language'
local nonil = require 'without-check-nil'
local dontShowAgain = f... |
--[[
Copyright (c) 2007 Gordon Gremme <gordon@gremme.org>
Copyright (c) 2007 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notic... |
miner_settings = {
max_velocity = 30,
max_acceleration=10,
max_angular_velocity=0.25,
kp_1=30.0,
kd_1=3.0,
kp_2=3.0,
kd_2=5.0,
}
upgrade_maximums = {
max_velocity = 30,
max_acceleration=10,
max_angular_velocity=0.25,
kp_1=100.0,
kd_1=50.0,
kp_2=100.0,
kd_2=50.0
}... |
SILE.hyphenator.languages["ro"] = {};
SILE.hyphenator.languages["ro"].patterns =
{
".a3ic",
".a4n3is",
".a2z",
".cre1",
".de2aj",
".de2z1",
".g4",
".i2a",
".i2e",
".i3ț",
".i4u3",
".i3v",
".î4m",
".n2",
".ni2",
".p4",
".pre3ș",
".s4",
".ș4",
".u4i",
".u5ni",
".z2",
"a1",
"2acă",
"achi5",
"a3e",
"afo3",
"a3i2a",
"a3i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.