content stringlengths 5 1.05M |
|---|
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local tiny = require "ext.tiny-ecs"
local RenderSymbolSystem = tiny.processingSystem()
local settings = require "settings"
RenderSymbolSystem.tiles = settings.s... |
--[[
LuCI - Lua Configuration Interface
Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman>
]]--
require "luci.util"
local http = require "luci.http"
local uci = luci.model.uci.cursor()
local docker = require "luci.model.docker"
local dk = docker.new()
local images, networks, containers
local res = d... |
return {
init_effect = "",
name = "DOA่ๅจ fever BUFF",
time = 3,
color = "blue",
picture = "",
desc = "",
stack = 1,
id = 8761,
last_effect = "Health",
effect_list = {}
}
|
-----------------------------------
-- Area: Western Altepa Desert
-- Mob: Cactuar
-- Note: Place holder for Cactuar_Cantautor
-----------------------------------
local ID = require("scripts/zones/Western_Altepa_Desert/IDs")
require("scripts/globals/regimes")
require("scripts/globals/mobs")
---------------------------... |
local M = {}
function M.udgj_label(url, text)
local upper = true
label.set_text(url, text)
timer.delay(0.3, true, function()
upper = not upper
if upper then
text = string.upper(text)
else
text = string.lower(text)
end
label.set_text(url, text)
end)
end
function M.udgj_text(node, text)
local uppe... |
-- Operators on a internal stack(`internal/stack.lua`)
-- When a `requireDependency` happens, we push the required
-- dependency onto the top of the stack; and when it finishes being
-- evaled, we pop it off from the stack.
return function(options)
local Utils = options.Utils
local Operators = {}
local f... |
require "test-setup"
require "lunit"
local Cairo = require "oocairo"
module("test.general", lunit.testcase, package.seeall)
function test_support_flags ()
for _, feature in ipairs{
"HAS_PDF_SURFACE", "HAS_PNG_FUNCTIONS", "HAS_PS_SURFACE",
"HAS_SVG_SURFACE", "HAS_USER_FONT"
} do
assert_... |
------------------------------------------------------------------------
--[[ RandomSampler ]]--
-- DataSet iterator
-- Randomly samples batches from a dataset.
------------------------------------------------------------------------
local RandomSampler, parent = torch.class("dp.RandomSampler", "dp.Sampler")
--Returns... |
--
-- Name: codelite/codelite_workspace.lua
-- Purpose: Generate a CodeLite workspace.
-- Author: Ryan Pusztai
-- Modified by: Andrea Zanellato
-- Manu Evans
-- Created: 2013/05/06
-- Copyright: (c) 2008-2015 Jason Perkins and the Premake project
--
local p = premake
local project ... |
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
execute 'packadd packer.nvim'
end
local packer_o... |
require 'cutorch'
require 'cunn'
require 'cudnn'
require 'nngraph'
require 'composition/composition_models.CompositionModel'
require 'composition/composition_models.HeadOnly'
require 'composition/composition_models.ModifierOnly'
require 'composition/composition_models.Addition'
require 'composition/composition_models.... |
function instructions()
showTextScreen([[jEM FELL THROUGH A PORTAL TO A
STRANGE, ALIEN WORLD.
hER COLLEAGUES - vAN AND eSS -
ARE WORKING TO GET BACK HOME.
hELP jEM EXPLORE THIS WORLD
AND PROTECT HER FRIENDS.
- jUMP WITH ๐
พ๏ธ.
- wHIP WITH โ.
- tRY WHIPPING EVERYTHING.
- wHEN ADJUSTING DEVICES:
๐
พ๏ธ CHANGES TYPE, ... |
local budki = {
{2493.79,-1684.33,13.51,354.9, numer=1},
{1126.34,-2031.77,69.89,270.1, numer=2},
{1638.51,1309.58,12.16,270, numer=3},
{-2134.01,928.08,80.00,90,numer=4},
{-2410.52,-607.04,132.69,36, numer=5},
{-253.35,2592.72,63.57,180, numer=6},
}
budka_object = {}
budka_marker = {}
addEventHandler("onClien... |
local utils = {}
utils.Cuda = require('onmt.utils.Cuda')
utils.Dict = require('onmt.utils.Dict')
utils.SubDict = require('onmt.utils.SubDict')
utils.FileReader = require('onmt.utils.FileReader')
utils.Tensor = require('onmt.utils.Tensor')
utils.Table = require('onmt.utils.Table')
utils.String = require('onmt.utils.Str... |
chemistry = {}
chemistry.substances = {}
chemistry.reactions = {}
chemistry.nodes = {}
local modpath = minetest.get_modpath("chemistry")
dofile(modpath.."/api.lua")
dofile(modpath.."/flask.lua")
dofile(modpath.."/workbench.lua")
dofile(modpath.."/substances.lua")
|
require( "engine.client.camera" )
require( "game.shared.construction" )
local gui = gui
local map = map
local _G = _G
local require = require
local construction = construction
local r_draw_position = convar( "r_draw_position", "0", nil, nil,
"Draws position" )
mod... |
print(type(true))
print(type(false))
print(type(nil))
|
-- Training of ED models.
if opt.opt == 'SGD' then
optimState = {
learningRate = opt.lr,
momentum = 0.9,
learningRateDecay = 5e-7
}
optimMethod = optim.sgd
elseif opt.opt == 'ADAM' then -- See: http://cs231n.github.io/neural-networks-3/#update
optimState = {
learningRate = opt.lr,
... |
Player = game:GetService("Players").olefson
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["Right Arm"]
RightLeg = Character["Right Leg"]
LS =... |
object_draft_schematic_furniture_wod_ns_potted_plant_scem_04 = object_draft_schematic_furniture_shared_wod_ns_potted_plant_scem_04:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_ns_potted_plant_scem_04, "object/draft_schematic/furniture/wod_ns_potted_plant_scem_04.iff")
|
-- messages
|
function init(virtual)
if not virtual then
energy.init()
-- tile mods to pull
self.pullTypes = entity.configParameter("pullTypes") or {}
-- tile mods not worth replacing
self.trashTypes = entity.configParameter("trashTypes") or {}
self.cleanupLocs = {}
self.nullMod = "grass"
self.p... |
local resultFlag = "0"
local n = tonumber(ARGV[1])
local key = KEYS[1]
local goodsInfo = redis.call("HMGET",key,"totalCount","seckillCount")
local total = tonumber(goodsInfo[1])
local alloc = tonumber(goodsInfo[2])
if not total then
return resultFlag
end
if total >= alloc + n then
local ret = redis.call("HINCRBY",key... |
serverVersion = "0.0.1"
hotUpdateVersion = "1.1.1"
|
local factory
for _,tycoon in pairs(game.Workspace.Tycoons:GetChildren()) do
if tycoon.Factory.Player.Value == game.Players.LocalPlayer then
factory = tycoon.Factory
end
end
local lastCounter
factory.PlacedItems.Finished.ChildAdded:Connect(function(obj)
if obj.Name == "Counter4" then
lastCounter = obj
end
end)
while ... |
local result_new = require("opentelemetry.trace.sampling.result").new
local _M = {
}
local mt = {
__index = _M
}
function _M.new()
return setmetatable({}, mt)
end
function _M.should_sample(self, parameters)
return result_new(0, parameters.parent_ctx.trace_state)
end
function _M.description(self)
re... |
local getFrameIndex
local chatPrint
local filterDefaults = {
['locale'] = 'default',
['printframe'] = 1,
}
local perCharacterFilter = {
['printframe'] = true,
}
function chatPrint(text, cRed, cGreen, cBlue, cAlpha, holdTime)
--local frameIndex = DFLootDictionary.Config.GetFrameIndex();
i... |
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlPressed(1, 323) then --Start holding X
TaskHandsUp(GetPlayerPed(-1), 1000, -1, -1, true) -- Perform animation.
end
end
end) |
return require('custom_example2')
|
require("moonsc").import_tags()
-- A simple test that onexit handlers work.
-- var1 should be incremented when we leave s0
return _scxml{ initial="s0",
_datamodel{
_data{ id="var1", expr="0" },
},
_state{ id="s0",
_onexit{ _assign{ location="var1", expr="var1+1" }},
_transition{ target="s1"... |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0204-same-app-from-multiple-devices.md
-- Description:
-- Two mobile applications with the same appNames and different appIds from di... |
function EFFECT:Init( data )
local posoffset = data:GetOrigin()
local emitter = ParticleEmitter( posoffset )
for i = 0,5 do
local p = emitter:Add( "particle/particle_smokegrenade", posoffset )
p:SetVelocity( math.random(12,16) * math.sqrt(i) * data:GetNormal() * 3 + 2 * VectorRand() )
p:SetAirResistan... |
function HandleUnrankCommand(Split, Player)
-- Also handles the /deop command
local Response
local PlayerName = Split[2]
local InformLoadRank = function(OtherPlayer)
local AuthorName = "the server console"
if Player then
AuthorName = "\"" .. Player:GetName() .. "\""
end
OtherPlayer:SendMessageInfo("... |
local function read(domain, address, bytes)
local methods = {
[1] = memory.readbyte,
[2] = memory.readdword
}
if (methods[bytes]) then
return methods[bytes](address)
end
return 0
end
function wram(address, bytes)
return read('WRAM', address, bytes);
end
function rom(address, bytes)
return r... |
--
-- racewar_server.lua
--
Racewar = {}
Racewar.__index = Racewar
local chooseTeamDisplay = nil
local chooseTeamLines = {}
local newsDisplay = nil -- messages go here instead of the chatbox
local newsDisplayLines = {}
local statusDisplay = nil -- Score and rounds left
local statusDisplayLines = {}
local playe... |
require"cdlua"
require"iupluacd"
require"iuplua"
--main canvas
canva = iup.canvas {size = "200x100"}
--vertical box
vbox = iup.vbox{ canva }
--main dialog
dlg = iup.dialog{vbox; title="test-1.0"}
--responsible for creating the CD canvas
function canva:map_cb()
canvas = cd.CreateCanvas(cd.IUP, self)
self.canvas ... |
return {
{
name = 'ARM',
startunit = 'armcom',
},
{
name = 'CORE',
startunit = 'corcom',
},
{
name = 'TLL',
startunit = 'tllcom',
},
{
name = 'TALON',
startunit = 'talon_com',
},
{
name = 'GOK',
st... |
-- I'm just gonna write my own library for events
-- I'm sick of fixing other people's bugs
local Emitter = {}
local pfx_once = '_once_'
setmetatable(Emitter, {
__call = function (_) return Emitter:new() end
})
function Emitter:new()
local obj = {}
self.__index = self
setmetatable(obj, s... |
local _, cfg = ... --export config
local addon, ns = ... --get addon namespace
--not done yet |
local ModExtTable = require("api.ModExtTable")
local IModDataHolder = class.interface("IModDataHolder", { get_mod_data = "function" })
function IModDataHolder:init()
self._mod_data = ModExtTable:new()
end
function IModDataHolder:get_mod_data(mod_id)
return self._mod_data:get_mod_data(mod_id)
end
return IModDa... |
--[[====================================
=
= template list ๆฉๅฑ
=
========================================]]
local CCContainer = tolua_get_class('CCContainer')
local AsyncContainer = tolua_get_class('AsyncContainer')
--ๆจกๆฟๅบ็ฑป
local SCrollList, SCrollList_Super = tolua_get_class('SCrollList')
-- override
functi... |
----------------------- istable --------------------------
local function istable(obj)
return obj and (type(obj) == "table")
end
----------------------- isfunction --------------------------
local function isfunction(obj)
return obj and (type(obj) == "function")
end
----------------------- isstring ----------... |
-- updated to pass compress mode, mvh 20140126
-- updated to suppress characters like umlaut Jorg 20160609
print('Content-Type: application/xml\n')
local patid = string.gsub(series2, ':.*$', '')
local seriesuid = string.gsub(series2, '^.*:', '')
local q = DicomObject:new()
q.QueryRetrieveLevel = 'IMAGE'
q.PatientID =... |
-- LICENSE
-- MIT License
-- Copyright (c) 2021 thibaultDup
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, ... |
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(256, '[XB] Priest - Discipline', inCombat, outCombat) |
local Concord = require "libs.concord"
local Input = Concord.component()
return Input
|
class("GetDormThemeListCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot3 = 0
slot4 = nil
if slot1:getBody() and type(slot2) == "table" then
slot4 = slot2.callback
else
pg.ConnectionMgr.GetInstance():Send(19018, {
id = slot2 or 0
}, 19019, function (slot0)
slot1 = getProxy(DormProxy)
... |
-- * _JOKER_VERSION: 0.0.1 ** Please do not modify this line.
--[[----------------------------------------------------------
Joker - Jokes, Riddles, Fun Facts, & Other Tomfoolery
----------------------------------------------------------
*
* COMPILATION: Your Custom Jokes!
*
* SOURCES:
* It's common practic... |
require "vmath"
module(..., package.seeall);
local function AddMembers(classInst, members)
for funcName, func in pairs(members) do
classInst[funcName] = func;
end
end
--2D Viewport.
local View = {}
function View:Size()
return self.pixelSize;
end
--Takes points in viewport space, returns points in pixel spac... |
ring_onehand = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "Onehands Swiftness",
directObjectTemplate = "object/tangible/wearables/ring/aakuan_ring.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {},
skillMods = {
{"onehandmelee_accuracy", 25},
{"onehandmelee_... |
-- Default values
local DEFAULT_FRAME_COUNT = 10
local DEFAULT_BACKGROUND = { r = 255, g = 255, b = 128 }
local DEFAULT_FOREGROUND = { r = 0, g = 0, b = 0 }
local DEFAULT_BORDER = { r = 0, g = 0, b = 0 }
local FONT_SCALE = 1
local FONT_NAME = "arial"
-- Internal vars
lo... |
local core = require("apisix.core")
local m_redis = require("apisix.plugins.auth-bios.redis")
local m_init = require("apisix.plugins.auth-bios.init")
local m_ident = require("apisix.plugins.auth-bios.ident")
local m_auth = require("apisix.plugins.auth-bios.auth")
local json = require("cjson")
local ngx_encode_base64 = ... |
local thread = require 'bee.thread'
---@class pub_brave
local m = {}
m.type = 'brave'
m.ability = {}
--- ๆณจๅๆไธบๅ่
function m.register(id)
m.taskpad = thread.channel('taskpad' .. id)
m.waiter = thread.channel('waiter' .. id)
m.id = id
m.start()
end
--- ๆณจๅ่ฝๅ
function m.on(name, callback)
m.abi... |
object_tangible_tcg_series7_armor_kit_composite_battleworn = object_tangible_tcg_series7_shared_armor_kit_composite_battleworn:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series7_armor_kit_composite_battleworn, "object/tangible/tcg/series7/armor_kit_composite_battleworn.iff") |
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
-- โโโโโโโโโโโโ... |
--[[
Copyright 2019 Manticore Games, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distri... |
-- Because there does not seem to be any way to have a dir automatically added
-- to the Lua packages cpath, and there also does not seem to be a way to get
-- the current project directory, it must be specified here manually.
-- Otherwise, doing "require 'layout'" will fail, because the .dll will not be
-- in search p... |
local m = require 'pegparser.parser'
local coder = require 'pegparser.coder'
local util = require'pegparser.util'
local parser = [[
-- EXTERNAL DEFINITIONS
translationUnit <- Spacing externalDeclaration+ EOT^ErrEOT
externalDeclaration <- functionDefinition / declarati... |
object_tangible_event_perk_halloween_skull_candle_02 = object_tangible_event_perk_shared_halloween_skull_candle_02:new {
}
ObjectTemplates:addTemplate(object_tangible_event_perk_halloween_skull_candle_02, "object/tangible/event_perk/halloween_skull_candle_02.iff")
|
pointcloud.Projection = pointcloud.Projection or {}
pointcloud.Projection.Key = CreateClientConVar("pointcloud_projection_key", KEY_J, true, true)
pointcloud.Projection.Scale = CreateClientConVar("pointcloud_projection_scale", "0.01", true, false)
pointcloud.Projection.Mode = CreateClientConVar("pointcloud_projection_... |
--More Shiny bob!
data:extend({
{
type = "item-subgroup",
name = "msb-lighted-poles-list-first",
group = "logistics",
order = "d[poles]-a[poles]-b",
},
{
type = "item-subgroup",
name = "msb-lighted-poles-list-second",
group = "logistics",
order = "d[poles]-b[poles]-b",
},
{
type = ... |
fx_version 'cerulean'
game 'gta5'
name 'rr_notify'
description 'Simple notification script'
version '1.0'
url 'https://github.com/RoleplayRevisited/rr_notify'
author 'RoleplayRevisted - Kevintjuhz'
client_scripts {
'client.lua'
}
ui_page 'html/index.html'
files {
'html/index.html',
'html/tata.js',
'h... |
array_cifre = {};
array_temp = {};
array_value = {};
array_out = {};
order = {};
value = {}
stampa = 10;
array_cifre[1] = math.random(5) + 4;
array_cifre[2] = math.random(4);
array_cifre[3] = 0;
index = 0;
for i = 1,3 do
if(array_cifre[i] ~= 0) then
sub1 = array_cifre[i];
for j = 1,3 do
... |
return function()
return Board and Board:GetSize() == Point(6, 6)
end |
๏ปฟ
cfg.table("Person", function(tb)
tb.sqls.Add = function (sk) --skๆฏไธไธชkey(guid)๏ผ็จไบ่ทๅSqlParametersๆถ็จ็
-- cfg.paramsๅฝๆฐ็จไบ้ๅ่ทๅSqlParameters็keyๆ่
value๏ผๅฝๆฐไธญ็ๅๆฐ่ฏดๆ๏ผ
-- (Func<string, string, string, string, string, ICollection<string>, object>)
-- (type, sqlkey, prefix, suffix, ignores, separate)
-- type: ๆไฝ็ฑปๅ๏ผ็ฎๅ... |
--[[
Programmable robot ('hoverbot') mod for Minetest
Copyright (C) 2018 Pilcrow182
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
... |
-- You will only get nice output from this script (like other unicode examples)
-- if executed in a properly multilingual environment like SciTE.
-- To get UTF-8 support in SciTE, edit your global properties like so:
-- # Internationalisation
-- # Japanese input code page 932 and ShiftJIS character set 128
-- #cod... |
local Player = "LocalPlayer" -- Don't change if you want it to be you
local StatName = "StatName" -- Change it to the name of the stat
local Value = "69" -- Change it to the value you want the stat to change to
-- Do not touch below --
local Plr = game:GetService("Players"):FindFirstChild(Player)
if Plr and Plr.Chara... |
local is_windows = vim.loop.os_uname().sysname == "Windows"
local path_sep = is_windows and '\\' or '/'
-- check index in table
local function has_key (tab,idx)
for index,_ in pairs(tab) do
if index == idx then
return true
end
end
return false
end
return {
is_windows = is_windows,
path_sep = p... |
--
player = {}
function player:new(tipo, x, y, raio, velocidade)
local instancia = {
x = x or 20,
y = y or 30,
raio = raio or 20,
velocidade = velocidade or 10,
_tipo = tipo
}
function instancia:draw()
love.graphics.circle(tipo, x, y, raio, 12)
end
... |
local ose = require('os_ext')
local dir = {}
function dir.create(dir_path)
local result, output, err_code, err_msg = ose.run_command(string.format('mkdir %q', dir_path))
return result, err_msg
end
function dir.copy(source_dir, dest_dir)
local result = false
local output = nil
local err_code = 0
local err_msg = ... |
#!/usr/bin/env tarantool
-- Copyright 2021 Kafka-Tarantool-Loader
--
-- 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 require... |
------------------------------------------
-- acme_file_reader.lua
-- Author: Hadriel Kaplan (hadrielk at yahoo dot com)
-- version = 1.0
-- date = 3/3/2014
------------------------------------------
--[[
This is a Wireshark Lua-based capture file reader.
This "capture file" reader reads message logs from Acme ... |
local override = script.Parent:WaitForChild("@override");
local t = require(script.Parent.types);
local basic = ({
access_point = ("@object");
override_point = ("@override");
meta = ({});
});
local get_mapping = ({
["@type"] = (function(self)
local type = (self["@type"]);
if (type) then
if (type == ("pro... |
local gears = require("gears")
local awful = require("awful")
local M = {}
-- Default modkey.
modkey = "Mod4"
-- {{{ Key bindings
M.globalkeys = gears.table.join(
awful.key({ modkey }, "r", function ()
local c = awful.client.restore()
-- Focus restored client
if c then
c:emit_signal(
... |
require('ISUI/ISPanel');
require('ISUI/ISRichTextPanel');
require('ISUI/ISCollapsableWindow');
UIStoryPanel = {};
function UIStoryPanel.new(title, text)
local self = {};
self.richtext = ISRichTextPanel:new(0, 0, 500, 500);
self.richtext:initialise();
self.richtext:setAnchorBottom(true);
self.richt... |
-----------------------------------
--
-- Zone: Misareaux_Coast (25)
--
-----------------------------------
require("scripts/globals/conquest")
require("scripts/globals/helm")
local ID = require("scripts/zones/Misareaux_Coast/IDs")
local MISAREAUX_COAST = require("scripts/zones/Misareaux_Coast/globals")
---------------... |
-- Test all the helper functions
assert(make.path.get_name(make.path.current_file()) == "tests.lua")
assert(make.path.to_os("c:/path/to") == "c:\\path\\to")
assert(make.path.from_os("c:\\path\\to") == "c:/path/to")
assert(string.lower(make.path.short("c:/program files")) == "c:/progra~1")
assert(string.lower(make.path.... |
if CLIENT then
nadmin.hud:CreateCustom({
title = "Simple",
left = {
height = 84,
draw = function(panel, w, h)
local font = "nadmin_hud"
local y = 0
surface.SetFont(font)
-- Draw the armor
... |
BuildEnv(...)
Profile = Addon:NewModule('Profile', 'AceEvent-3.0', 'LibInvoke-1.0')
function Profile:OnInitialize()
local db = {
global = {
firstLogin = true,
planList = {},
trackList = {},
friend = {},
realmFeed = {},
w... |
-----------------------------------
-- Area: Port Bastok
-- NPC: Paujean
-- Starts & Finishes Quest: Silence of the Rams
-- !pos -93.738 4.649 34.373 236
-----------------------------------
local ID = require("scripts/zones/Port_Bastok/IDs")
require("scripts/globals/settings")
require("scripts/globals/quests")
require... |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2018 (All Rights Reserved)
-- =============================================================
-- Actions Library - Target Acquisition Functions
-- =============================================================
local targ... |
-- Class for deciding on what actions to take based on the current state,
-- using a relatively simple strategy.
local BaseAgent = require 'agent.BaseAgent'
require 'table'
require 'codes.direction'
require 'codes.item'
require 'codes.menu'
require 'codes.terrain'
require 'codes.species'
require 'codes.weather'
requi... |
-- This module implements the flow metering app, which records
-- IP flows as part of an IP flow export program.
module(..., package.seeall)
local bit = require("bit")
local ffi = require("ffi")
local pf = require("pf")
local consts = require("apps.lwaftr.constants")
local lib = require("core.lib")
loca... |
--[[
Copyright ยฉ 2018, Langly of Quetzalcoatl
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditio... |
local wrapper = require("core.lib.wrapper")
local EventUtil = require("core.EventUtil")
return {
event = function(state)
return function(self, socket, args)
local say = EventUtil.genSay(socket)
local write = EventUtil.genWrite(socket)
if not args.dontwelcome then
write("<cyan>Confir... |
๏ปฟDCT_Opfont_CurFontID = 4
DCT_Opfont_ColorList = {
{0,0,0},
{0,0,0},
{0,0,0},
{0.4,0.4,0.9},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
{0,0,0},
}
function DCT_Opfont_FontRefresh()
DCTFontOption:Hide()
DCTFontOption:Show()
end
function DCT_Opfont_OnShow(sel... |
do --- operators
local y = 0
for i=1,100 do local a, b = 23, 11; y = a+b end; assert(y == 23+11)
for i=1,100 do local a, b = 23, 11; y = a-b end; assert(y == 23-11)
for i=1,100 do local a, b = 23, 11; y = a*b end; assert(y == 23*11)
for i=1,100 do local a, b = 23, 11; y = a/b end; assert(y == 23/11)
for i=1... |
local _, G = ...
G.Eventer({
PLAYER_LOGIN = function()
ChatFrame1:ClearAllPoints()
ChatFrame1:SetClampRectInsets(0, 0, 0, 0)
ChatFrame1:SetPoint('BOTTOMLEFT', UIParent, 2, 30)
ChatFrame1:SetHeight(180)
ChatFrame1:SetWidth(400)
ChatFrame1:SetUserPlaced(true)
end,
})
|
--
-- Many colors support 'active', 'inactive', and 'disabled' states.
-- They can all be set to the same color with the syntax:
--
-- key = '<color>'
--
-- Or set individually with syntax like:
--
-- key = { active = '<color>', inactive = '<color>', disabled = '<color>' }
--
-- Use the 'default' key set one state ... |
local class = require("thirdparty.pl.class")
local lexer = require("kotaro.parser.lexer")
local utils = require("kotaro.utils")
local NodeTypes = require("kotaro.parser.node_types")
-- Takes tokenized source and converts it to a Concrete Syntax Tree
-- (CST), which preserves whitespace and comments. The intent is to b... |
object_tangible_furniture_all_frn_all_statuette_cityhall_naboo = object_tangible_furniture_all_shared_frn_all_statuette_cityhall_naboo:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_statuette_cityhall_naboo, "object/tangible/furniture/all/frn_all_statuette_cityhall_naboo.iff")
|
local DateUtil = {}
DateUtil.__DebugFlag = false
function DateUtil:YangLi2NongLiDate(st)
--ๅคฉๅนฒๅ็งฐ
local cTianGan = {"็ฒ","ไน","ไธ","ไธ","ๆ","ๅทฑ","ๅบ","่พ","ๅฃฌ","็ธ"}
--ๅฐๆฏๅ็งฐ
local cDiZhi = {"ๅญ","ไธ","ๅฏ
","ๅฏ","่พฐ","ๅทณ","ๅ", "ๆช","็ณ","้
","ๆ","ไบฅ"}
--ๅฑ็ธๅ็งฐ
local cShuXiang = {"้ผ ","็","่","ๅ
","้พ","่", "้ฉฌ","็พ","็ด","้ธก","็","็ช"}
--ๅๅๆฅๆ... |
-- Copyright 2016 John Regan <john@jrjrtech.com>
local string_sub = string.sub
local string_len = string.len
local string_byte = string.byte
local M = {
_VERSION = '1.0.6'
}
local function _decode(a)
local i=1
local len = 0;
local max_len = string_len(a)
repeat
local t = string_byte(a,i) -... |
local math = require('math')
local memory = require('memory')
local settings = require('settings')
local windower = require('core.windower')
local defaults = {
gameplay = {
auto_target = true,
inventory = {
sort = false,
type = 1,
},
},
graphics = {
a... |
function sysCall_info()
autoStart=sim.getNamedBoolParam('visualizationStream.autoStart')
if autoStart==nil then autoStart=false end
return {autoStart=autoStart,menu='Connectivity\nVisualization stream'}
end
function sysCall_init()
appPath=sim.getStringParam(sim.stringparam_application_path)
pathSep... |
local L = LibStub("AceLocale-3.0"):NewLocale("MakePeopleGreetAgain", "enUS", true)
-- Put the language in this locale here
L["Loaded language"] = "English"
--------------------------------------------------
-- General
--------------------------------------------------
L["MPGA_Title"] = "Make People Greet Again!"
L["... |
script/admin = "acb227"
local p = Instance.new("Part")
p.Parent = Workspace
p.Size = Vector3.new(1,1,1)
p.formFactor = 0
p.BrickColor = BrickColor.new("Bright red")
p.Anchored = true
p.Locked = true
if script.Parent.className ~= "HopperBin" then
local h = Instance.new("HopperBin")
h.Parent = game.Players[... |
object_tangible_wearables_necklace_necklace_trando_scale_of_honor_wke_m = object_tangible_wearables_necklace_shared_necklace_trando_scale_of_honor_wke_m:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_trando_scale_of_honor_wke_m, "object/tangible/wearables/necklace/necklace_trando_scale_... |
local args = ...;
local dc = args.PiroGame:load('DrawableComponent.lua');
local tc = args.PiroGame.class('TextComponent', dc);
function tc:initialize(font, text)
self.text = text;
self.font = font;
end
function tc:activate()
self.drawable = love.graphics.newText(self.font, self.text);
end
return tc;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.