content stringlengths 5 1.05M |
|---|
instrument { name = "Percentage Price Oscillator" }
input_group {
"front.ind.dpo.generalline",
short_period = input (12, "Short Cycle", input.integer, 1),
long_period = input (26, "Long Cycle", input.integer, 1),
pmo_color = input { default = "#56CEFF", type = input.color },
pmo_width = input { ... |
require "spirograph"
pncl("#DDDDDD")
-- +-------------------------- radius of equator circle
-- | +--------------------- radius of the bicycle wheel circle
-- | | +---------------- (optional) position of the drawing point
-- | | | +------------ (optional) resolution of the graph
-- | ... |
return
{
entities =
{
{"lab", {x = 1.5, y = -0.5}, {}},
{"wooden-chest", {x = -1.5, y = 0.5}, {items = {["automation-science-pack"] = 20}, }},
},
}
|
local zmq = require "lzmq"
local uv = require "lluv"
local sock = zmq.context():socket{"SUB",
subscribe = "", connect = "tcp://127.0.0.1:5555";
}
local function on_new_message(msg)
print(msg)
end
uv.poll_socket(sock:fd()):start(function(handle, err, event)
if err then
print("Poll error: ", err)
return... |
local stepheightvalue = 25;
local stepwidthvalue = 25;
local stepicononvalue = "stancetracker_on";
local stepiconoffvalue = "stancetracker_off";
local stepfontnamevalue = "sheetlabelinline";
local stepcountmaxvalue = 6;
local iconnamevalue = "button_openwindow2";
local careersnamevalue = "careers";
local upda... |
--[[
MIT License
Copyright (c) 2020 Ryan Ward
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, di... |
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... |
--------------------------------
-- @module Application
--------------------------------
-- @function [parent=#Application] getTargetPlatform
-- @param self
-- @return ApplicationProtocol::Platform#ApplicationProtocol::Platform ret (return value: cc.ApplicationProtocol::Platform)
---------------------------... |
--
-- tests/base/test_os.lua
-- Automated test suite for the new OS functions.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("base_os")
local cwd
function suite.setup()
cwd = os.getcwd()
os.chdir(_TESTS_DIR)
end
function suite.teardown()
os... |
local vim = vim
local M = {}
local Highlighter = {}
Highlighter.__index = Highlighter
function Highlighter.new(ns, bufnr)
vim.validate({ns = {ns, "number"}, bufnr = {bufnr, "number"}})
local tbl = {_ns = ns, _bufnr = bufnr}
return setmetatable(tbl, Highlighter)
end
-- HACK
function Highlighter.add_normal(self... |
local Map = IceRunner.Map
local MapKit = IceRunner.MapKit
local Up = IceRunner.MapTools.UpExtent
local Down = IceRunner.MapTools.DownExtent
local Left = IceRunner.MapTools.LeftExtent
local Right = IceRunner.MapTools.RightExtent
local Wall = IceRunner.Map.Wall
local MapKit = IceRunner.MapTools.MapKit
local Player = Map.... |
require('nvim-treesitter.configs').setup {
ensure_installed = 'maintained',
highlight = {
enable = true,
custom_captures = {
-- ['foo.bar'] = 'Identifier,' // @foo.bar capture group is Identifier
},
additional_vim_regex_highlighting = false, -- maybe? will slow things down
},
-- incrementa... |
----------------------------------------- Shadow skin for 6.2.2 ------------------------------------------
local MSQ = LibStub("Masque", true)
if not MSQ then return end
----------------------------------------------------------------------------------------------------------
------------------------------------------... |
include('shared.lua')
/*---------------------------------------------------------
Name: DrawTranslucent
Desc: Draw translucent
---------------------------------------------------------*/ |
static = false
local staticIVT = INSPECTOR_VARIABLE_TYPE.INSPECTOR_BOOL
staticIV = InspectorVariable.new("static", staticIVT, static)
NewVariable(staticIV)
speed = 20
local speedIVT = INSPECTOR_VARIABLE_TYPE.INSPECTOR_INT
speedIV = InspectorVariable.new("speed", speedIVT, speed)
NewVariable(speedIV)
chaseSpeed = 30
l... |
--[[
Wrapper for loading a lot of the flos
tool suite.
Here we add all the necessary tools that
the flos library allows.
--]]
local ret = {}
local function add_ret( tbl )
for k, v in pairs(tbl) do
ret[k] = v
end
end
add_ret(require "flos.error")
add_ret(require "flos.num")
-- MD-stuff
add_ret(require "f... |
--
-- Following the idea from Jerome Kleinen in issue #88, adding the capability
-- to convert IPv4 addresses into an integer
--
function extract_string(orig_url, feature, positions_and_sizes)
feature_pos=feature .. ".pos"
feature_size=feature .. ".size"
if positions_and_sizes[feature_pos] >= 0
then
fe... |
local Vector=require("vector")
require("utils")
local render={}
render.init = function()
print("[Render] Initialized")
end
render.render = function()
--print(objects[1].linearVelocity,objects[2].linearVelocity)
end
render.waitInput = function()
io.write("[Render] Waiting for input: ")
io.read()
end
... |
--Angel's mods machines
--replvar("category", number)
if angelsmods.refining then
--TODO
if angelsmods.petrochem then
repltech_ore("gas-natural-1", 0.05)
end
end |
return Def.ActorFrame {
InitCommand = function(self)
self:visible(false)
SCREENMAN:SystemMessage("Avatar Switcher Activated")
end
}
|
local Draw = require("api.Draw")
local Ui = require("api.Ui")
local config = require("internal.config")
local Skill = require("mod.elona_sys.api.Skill")
local I18N = require("api.I18N")
local data = require("internal.data")
local Enchantment = require("mod.elona.api.Enchantment")
local Calc = require("mod.elona.api.Cal... |
local weaponPed = {}
local weaponsLoaded = false
-- Configure the coordinates for the vendors.
local weapon_peds = {
{hash="s_m_m_ammucountry", x=1692.733, y=3761.895, z=34.705, a=218.535},
{hash="s_m_m_ammucountry", x=-330.933, y=6085.677, z=31.455, a=207.323},
{hash="s_m_y_ammucity_01", x=253.629, y=-51.305, z... |
require("entity")
Button = {}
function Button:new(pos, action, deaction)
local button = setmetatable({}, {__index = Entity:new(pos, 16, 16, true)})
button.type = "button"
button.action = action or function()end
button.deaction = deaction or function()end
button:setOrigin(button.width/2, button.hei... |
--驀進装甲ライノセイバー
--Scripted by nekrozar
function c100261003.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--atkup
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100261003,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGN... |
require('module.telescope-config')
|
local zlib = require'ffi'
src = "lua c api: how to push a string with a null character in the middle?";
print('Input string:',src);
print('Input length:',#src);
src_c = zlib.compress(src)
print('Compressed length:',#src_c);
l... |
function fib(n)
if n < 2 then return n end
return fib(n - 2) + fib(n - 1)
end
for i = 1, 5 do
io.write(fib(28) .. "\n")
end
|
local Class = require 'lib.hump.class'
local ViewComponent = getClass 'wyx.component.ViewComponent'
local LightingStatusRequest = getClass 'wyx.event.LightingStatusRequest'
local property = require 'wyx.component.property'
local message = require 'wyx.component.message'
local newQuad = love.graphics.newQuad
local draw... |
data:extend(
{
{
type = "item",
name = "low-density-structure",
icon = "__base__/graphics/icons/rocket-structure.png",
flags = {"goes-to-main-inventory"},
subgroup = "advanced-parts",
order = "d-1",
stack_size = 10
},
{
type = "recipe",
name = "low-density-structure",
energ... |
json = require("rapidjson")
-- Controls
local songs = Controls.Songs
local nextSong = Controls.NextSong
local previousSong = Controls.PreviousSong
local submitSongInfo = Controls.SubmitSongInfo
local addName = Controls.AddName
local addTime = Controls.AddTime
local audioPlayerSelect = Controls.AudioPlayerSelect
local ... |
local att = {}
att.name = "md_cblongerbarrel"
att.displayName = "Longer Improved Barrel"
att.displayNameShort = "Longer"
att.isSuppressor = false
att.SpeedDec = 10
att.statModifiers = {OverallMouseSensMult = -.2,
ReloadSpeedMult = -0.15,
AimSpreadMult = -.4}
if CLIENT then
att.displayIcon = surface.GetTextureID("att... |
local _2afile_2a = "fnl/conjure/client/scheme/stdio.fnl"
local _1_
do
local name_4_auto = "conjure.client.scheme.stdio"
local module_5_auto
do
local x_6_auto = _G.package.loaded[name_4_auto]
if ("table" == type(x_6_auto)) then
module_5_auto = x_6_auto
else
module_5_auto = {}
end
end
... |
local colors = {
grays = {
bg = "#2A2622",
overbg = "#38332E",
sel = "#544A45",
com = "#998066",
faded = "#C9B39C",
fg = "#EDE6DE",
},
shades = {
red = "#6B2E2E",
yellow = "#997733",
green = "#244224",
cyan = "#244242",
blue = "#242E42",
magenta = "#422438",
},
tones = {
red = "#B34D4D",
... |
function Mapfill_space(Map_ID, Map_Size_X, Map_Size_Y, Map_Size_Z)
local hx,hy,hz = Map_Size_X-1, Map_Size_Y-1, Map_Size_Z-1
local mat = 49
for iz=0,1 do
local z = iz*hz
for x=0,hx do
for y=0,hy do
mat = 49
if math.random(100) == 1 then
mat = 36
end
Map_Block_Change(-1, Map_ID, x, y, z, m... |
local pac = pac
local part_count = 0 -- unique id thing
local pairs = pairs
pac.registered_parts = {}
local function on_error(msg)
ErrorNoHalt(debug.traceback(msg))
end
local function initialize(part, owner)
if part.PreInitialize then
part:PreInitialize()
end
pac.AddPart(part)
if owner then
part:SetPlayer... |
onEvent("NewGame", function()
addFunctionTimer(loadImages, 100)
tfm.exec.snow(0)
-- controle de início de partida
for i=1000, 1020 do
ui.removeTextArea(i)
end
ui.removeTextArea(27)
for i=10000, 1005 do
ui.removeTextArea(i)
end
ui.removeTextArea(70)
for i, v in pairs(CONFIG.chair) do
CONFIG.chair[i] = fa... |
require 'Properties'
require 'Common'
require 'Vehicle'
Thing = {}
Thing.list = {}
function Thing:add(thing, pos, vel)
if pos then
thing.Pos = {x=pos.x, y=pos.y, angle=pos.angle}
end
if vel then
thing.Vel = {x=vel.x, y=vel.y, angle=vel.angle}
end
table.insert(Thing.list, thin... |
require('mono.utils.mono-publib')
ffi.cdef [[
enum {
SGEN_BRIDGE_VERSION = 5
};
typedef enum {
/* Instances of this class should be scanned when computing the transitive dependency among bridges. E.g. List<object>*/
GC_BRIDGE_TRANSPARENT_CLASS,
/* Instances of this class should not be scanned when computing t... |
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
-- Battery storage. Controller node draws electrical power from here.
-- Note that batttery boxes are digtron group 7.
local battery_holder_formspec_string = "size[8,9.3]" ..
... |
require "app.common.actor.internal"
require "app.common.actor.cluster"
require "app.common.actor.client"
require "app.common.actor.gm"
require "app.common.actor.actor" |
function handleResourceStart( )
setAircraftMaxVelocity( 20.5 )
end
addEventHandler( "onResourceStart", resourceRoot, handleResourceStart ) |
local playsession = {
{"jschuba", {494801}},
{"NappingYG", {80874}},
{"Bartell", {719694}},
{"DKarma", {808674}},
{"kazimuth", {390}},
{"Miteone", {529468}},
{"DrShecta", {700157}},
{"marklinCZ", {41187}},
{"legendary_banana", {30097}},
{"MaFiX", {554477}},
{"ikeikeeng", {254943}},
{"Bolq", {237013}},
{"fo... |
local config = require 'config'
local defaultlibs = require 'library.defaultlibs'
local define = require 'proto.define'
local fs = require 'bee.filesystem'
local furi = require 'file-uri'
local json = require 'json'
local util = require 'utility'
local rojo = {}
rojo.Watch = {}... |
local lib = _3DreamEngine
function lib:newObject(path)
--get name and dir
path = path or "unknown"
local n = string.split(path, "/")
local name = n[#n] or path
local dir = #n > 1 and table.concat(n, "/", 1, #n-1) or ""
return setmetatable({
materials = {
None = self:newMaterial()
},
objects = { },
g... |
-- Yubico OTP implementation
-- Part of the libotp library for ComputerCraft
-- https://github.com/UpsilonDev/libotp
local mode = require("libotp.utils.mode")
local lookup = require("libotp.utils.lookup")
local modhex = require("libotp.yubiotp.modhex")
local request = require("libotp.yubiotp.request")
local yubiotp =... |
object_mobile_coa_aclo_tech_rod_f = object_mobile_shared_coa_aclo_tech_rod_f:new {
}
ObjectTemplates:addTemplate(object_mobile_coa_aclo_tech_rod_f, "object/mobile/coa_aclo_tech_rod_f.iff")
|
---------------------------------------------------------------------------------------------------
-- func: entityVisual
-- desc: push entityVisual packet to player
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"... |
--[[
Ez Scripts - Renekton]]
if myHero.charName ~= "Renekton" then return end
local Version = 0.3
local scriptmsg = "<font color=\"#06CD51\"><b>Renekton</b></font>"
local QRange, ERange = 260, 450
local RageRdy = false
local IsAfterAA = false
-- Bol Tools Tracker --
assert(load(Base64Decode("G0x1YVIAAQQEBAgAGZMNChoK... |
function intro_load()
gamestate = "intro"
introduration = 2.5
blackafterintro = 0.3
introfadetime = 0.5
introprogress = -0.2
screenwidth = 240*scale
screenheight = 120*scale
allowskip = false
end
function intro_update(dt)
allowskip = true
if introprogress < introduration+blackafterintro then
introprogres... |
function CST:SetMaterial(ply, ent, t_data)
ent:SetMaterial(t_data.MaterialOverride)
duplicator.StoreEntityModifier(ent, "Cel_Material", t_data)
duplicator.RegisterEntityModifier("Cel_Material", SetMaterial)
end
function CST:RemoveMaterial(ent)
if not (ent and IsValid(ent) and ent:IsValid()) then retur... |
local Event = require("api.Event")
local Building = require("mod.elona.api.Building")
local ElonaBuilding = require("mod.elona.api.ElonaBuilding")
local I18N = require("api.I18N")
local Map = require("api.Map")
local Home = require("mod.elona.api.Home")
local HomeRankMenu = require("mod.elona.api.gui.HomeRankMenu")
loc... |
return {
PORT = 1,
PROXY = 1,
TIMEOUT = 1,
USERAGENT = 1,
request = 3,
}
|
local c = require("moon_core")
local string_format = string.format
local string_len = string.len
local debug_traceback = debug.traceback
local string_rep = string.rep
local string_split = string.split
local string_trim = string.trim
local M = {}
------------------------------------------... |
local listeners = {}
listeners.but_play = function(target)
end
return function(e)
if PROGRAM.group.isVisible and ALERT then
if e.phase == 'began' then
display.getCurrentStage():setFocus(e.target)
e.target.click = true
if e.target.button == 'but_list'
... |
HTML('Content-type: text/html\n\n');
HTML('<H1>Welcome to Conquest DICOM server lua page, version:'..version..'</H1>')
HTML'<H2>Will query database defined by SQLServer in dicom.ini:</H2>'
HTML'<br>'
HTML(dbquery('DICOMImages', 'SOPInstanc')[1][1])
HTML'<hr>'
HTML'<H2>Will send command to WebServerFor:TCPPort in dic... |
--------------------------------------------------------------------------------
--
-- This file is part of the Graco toolkit.
--
-- Graco is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/archive/... |
-- type = github -- DO NOT REMOVE THIS LINE!
local name = "direnv"
local version = "2.31.0"
local release = "v" .. version
local org = "direnv"
local repo = "direnv"
local base_url = "https://github.com/" .. org .. "/" .. repo
food = {
name = name,
description = "Unclutter your .profile",
license = "MIT",
... |
local strict = require 'strict'
local sidereal = require 'sidereal'
local table_concat = table.concat
local print = print
local assert = assert
module 'db'
local DB = assert(sidereal.connect('localhost', 6379))
function reconnect()
return sidereal.connect('localhost', 6379)
end
local function format_message(use... |
local diff = {
["keyDiffs"] = {
["d378pnilu799cdnilvdnilvpnilvunil"] = {
["name"] = "Button Targeting mode reset",
["removed"] = {
[1] = {
["key"] = "Back",
},
},
},
["d605pnilunilcdnilvdnilvpnilvunil"] = {
["name"] = "Rotor brake",
["removed"] = {
[1] = {
["key"] = "R",
... |
Button = {}
function Button.new(x, y,w,h, name, options, label)
local private = {}
local public = {}
public.x = x
public.y = y
public.h = h
public.w = w
private.name = name
private.focused = false
private.options = options
private.label = label
private.selected = 1
function public.changeOption(option... |
local Class = require "Utils/Class"
local Logger = require "Logger/Logger"
local Queue = Class("Queue")
local function __init(self, Capacity)
if Capacity == nil or Capacity <= 0 then
Capacity = 10
end
self._data = {}
self._size = 0
self._head = -1
self._tail = -1
self._capaci... |
return {bar = {rect={0,0,8,8}, count={3,1}}}
|
Godmode addresses: - fld dword ptr [eax] and 009C9B2C - comiss xmm0,[ecx]
Armspin and Legspin: - comiss xmm2,xmm1
Noclip: - jmp dword ptr [eax*4+009D40BC]
Armswing: - xmm3,[esi+000000D4]
Paranoid: - al,[edx+000001E0]
Superjump: - movss xmm1,[eax+04]
StayDOwn:- cmp dword ptr [ecx+0000017C],00
Script exploit- mov... |
local root = getRootElement()
local MAX_DIST = 300
local color = {255, 0, 0}
local blips = {}
local resourceRoot = getResourceRootElement(getThisResource())
function onPlayerSpawn_blips(spawnpoint)
addBlip(source)
end
function onPlayerQuit_blips()
removeBlip(source)
end
function onPlayerWasted_blips(totalammo, kil... |
return {
{ 30, "First", },
{ 30, "Second", },
{ 30, "Third", },
{ 30, "Fourth", },
{ 30, "Fifth", },
{ 30, "Sixth", },
{ 30, "Seventh", },
{ 30, "Eighth", },
{ 30, "Ninth" },
{ 30, "Tenth" },
{ 30, "Eleventh" },
{ 30, "Twelvth" },
}
|
local No, parent = torch.class('nn.Normalization', 'nn.Module')
function No:__init()
parent.__init(self)
local thresh = thresh or 0
self.thresh = thresh
end
function No:updateOutput(input)
self.output:resizeAs(input)
self.output:copy(input)
-- store the number of dimensions of the input
... |
crystal_maiden_arcane_magic_oaa = class(AbilityBaseClass)
LinkLuaModifier("modifier_crystal_maiden_arcane_aura_oaa", "abilities/oaa_crystal_maiden_arcane_magic.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_crystal_maiden_arcane_aura_effect_oaa", "abilities/oaa_crystal_maiden_arcane_magic.lua", LUA_MODIFIER... |
local PANEL = {}
function PANEL:Init()
self:SetSize(800, 700)
self:Center()
self:SetTitle("Icon Camera Editor")
self:MakePopup()
local lbl = vgui.Create("DLabel", self)
lbl:SetText("Real: Upscale:")
lbl:SizeToContents()
lbl:SetPos(5, 280)
local panel = self
self.bg = vgui.Create("DPa... |
model.ext={}
function model.ext.adjustFrame(frameState,width,height,doorState)
-- nil for args that should stay same
-- frameState: 0=not present, 1=present, 2=hidden
-- doorState: 0=closed, 1=open, 2=hidden
model.adjustFrame(frameState,width,height,doorState)
end
|
Config = {}
Config.MarkerType = 1
Config.DrawDistance = 100.0
Config.ZoneSize = {x = 5.0, y = 5.0, z = 3.0}
Config.MarkerColor = {r = 100, g = 204, b = 100}
Config.RequiredCopsCoke = 4
Config.RequiredCopsMeth = 4
Config.RequiredCopsWeed = 4
Config.RequiredCopsOpium = 4
Config.Locale = 'en'
... |
local cwd = (...):gsub("%.[^%.]+$", "") .. "."
return {
name = "client_topmenu",
description = "reate the top menu",
author = "edubart",
website = "https://github.com/edubart/otclient",
sandboxed = true,
classPath = cwd .. "topmenu"
}
|
-- Play a sound when the player's name appears in chat
-- Play a sound on player's name quote
minetest.register_on_chat_message(function(name, message)
message = message:lower()
local player_name = nil
for _,player in ipairs(minetest.get_connected_players()) do
player_name = player:get_player_name()
if messa... |
local entries = journal.require "entries"
local triggers = journal.require "triggers"
--register a new journal page for the pirate story
entries.register_page("pirate_story:log","ship guide","captain's log")
--write first entry when joining
triggers.register_on_join({
id = "pirate_story:start",
-- trigger is called... |
--ZFUNC-invertby-v1
local function invertby( tab, fv ) --> itab
local itab = {}
for k, v in pairs( tab ) do
local ik = v
if fv then ik = fv( v ) end
itab[ ik ] = itab[ ik ] or {}
table.insert( itab[ ik ], k )
end
return itab
end
return invertby
|
return function()
local getBoundingBox = require(script.Parent.getBoundingBox)
it("should return the same points if given 4 or less points", function()
for i = 0, 3 do
local points = {}
for _ = 0, i do
table.insert(points, Vector2.new(i, i))
end
expect(getBoundingBox(points)).to.equal(points)
e... |
-- Local instances of Global tables --
local PA = PersonalAssistant
local PAMF = PA.MenuFunctions
-- =====================================================================================================================
local function getValue(...)
return PAMF.getValue(PA.SavedVars.Profile.General, ...)
end
local... |
--!nonstrict
type ComponentInstance = any
type ComponentClass = {
Type: string?,
new: (Instance) -> ComponentInstance,
Initial: () -> (),
Destroy: () -> (),
}
type InstanceToComponents = {[Instance]: {[ComponentClass]: ComponentInstance}}
type ComponentClassToInstances = {[ComponentClass]: {[Instance]... |
-- This enables data on volumes, HumanoidRootParts, etc to be handled on an event-basis, instead of being retrieved every interval
-- LOCAL
local players = game:GetService("Players")
local runService = game:GetService("RunService")
local heartbeat = runService.Heartbeat
local Signal = require(script.Parent.Parent.Sign... |
local playsession = {
{"Ochsebein", {33321}},
{"Monkeyboy1024", {142982}},
{"kalenmonster", {103656}},
{"Bidoas", {123461}},
{"Stykes", {15376}},
{"matcap04", {52131}},
{"peluszo", {8671}}
}
return playsession |
--[[-------------------------------------------------------------------------
Copyright (c) 2008, Jim Whitehead II <cladhaire@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
*... |
local state = {}
state._NAME = ...
local Body = require'Body'
local util = require'util'
local vector = require'vector'
local libStep = require'libStep'
-- FSM coordination
local simple_ipc = require'simple_ipc'
local motion_ch = simple_ipc.new_publisher('MotionFSM!')
local robocupplanner = require'robocupplanner'... |
local prop_keys = {
key_gen_lua = "gen_lua",
key_gen_lua_extension = "gen_lua_postfix",
}
---@class GenSetting
GenSetting = fclass()
function GenSetting:ctor()
self.properties = {}
---@type CS.FairyEditor.ComProperty[]
local properties = App.project:GetSettings("CustomProperties").elements
for... |
--[[
Name: "sh_spray_can.lua".
Product: "Terminator RP".
--]]
local ITEM = {};
-- Set some information.
ITEM.name = "Spray Can";
ITEM.cost = 25;
ITEM.model = "models/sprayca2.mdl";
ITEM.weight = 1;
ITEM.access = "v";
ITEM.category = "Perpetuities"
ITEM.business = true;
ITEM.description = "A standard spray can filled ... |
page = [[
<html>
<head>
<title>An HTML Page</title>
</head>
<body>
<a href="http://www.lua.org">Lua</a>
</body>
</html>
]]
io.write(page)
|
local heart = require("heart")
local M = heart.class.newClass()
function M:init(game, config)
self.game = assert(game)
self.boneComponents = assert(self.game.componentManagers.bone)
self.parentConstraintComponents = assert(self.game.componentManagers.parentConstraint)
self.bodyComponents = assert(self.game.c... |
registry = scene:GetRegistry()
entity = registry:Create()
registry:assign_NameComponent(entity)
nameComp = registry:get_NameComponent(entity)
nameComp.name = "LUAEntity"
registry:assign_Transform(entity)
tran = registry:get_Transform(entity)
tran:SetLocalPosition(Vector3.new(10.0,0.0,-2.0))
registry:assign_MeshCompone... |
local type = type
local tostring = tostring
local require = require
local tab_insert = table.insert
local schema = require("gw.schema")
local cjson = require("cjson.safe")
local producer = require "resty.kafka.producer"
local config = require("gw.core.config")
local ngx = ngx
local module = {}
local module_name = "sh... |
-------------------------------------------------------------------------------
-- Spine Runtimes License Agreement
-- Last updated January 1, 2020. Replaces all prior versions.
--
-- Copyright (c) 2013-2020, Esoteric Software LLC
--
-- Integration of the Spine Runtimes into software or otherwise creating
-- derivative... |
-- possible sources:
-- * udpin(address)
-- * filein(path)
-- multiple sources can be handled in the same run (including multiple sources
-- of the same type) by calling deliver more than once.
source = udpin("localhost:9000")
-- multiple metric destination types
-- * graphite(address) goes to tcp with the graphite... |
local LilHH = RegisterMod("Headless Horseman",1 );
local familiarItem = Isaac.GetItemIdByName("Headless Horsemini")
local HeadlessHorsemanHead = Isaac.GetEntityVariantByName("HHHead")
local HeadlessHorsemanBody = Isaac.GetEntityVariantByName("HHBody")
local had = false
local headstate = 0
local headfam= nil
... |
require "/lib/stardust/power.item.lua"
while power.fillEquipEnergy(math.huge, false, math.huge) > 0 do end -- turbo-fill until nothing can recharge further
|
-- // Name: getGroupInformation.lua
-- // Description: Gets the specified group's information
-- // Author: @Jumpathy
return {
authentication_required = false,
call = function(client,api,endpoints,cookie,group_id)
return api.request(true,"group_info",{["Content-Type"] = "application/json"},nil,group_id);
end
} |
local IItemUseable = class.interface("IItemUseable",
{
on_use = "function"
})
return IItemUseable
|
-- Pikmin (NTSC v1.1)
local core = require("games.core")
return core.newGame(0x8039D400) |
local WebSocketCbServer = class("WebSocketCbServer")
function WebSocketCbServer:ctor()
self.Service = nil;
self.ConnectCallbackEvent = "";
self.DisConnectCallbackEvent = "";
end
function WebSocketCbServer:Listen( name, port )
self.ConnectCallbackEvent = name .. "Connection";
self.DisConnectCallbackEvent = n... |
-- Run a command if the current entity matches a given ID.
--[[
Consider this public domain (CC0).
- Milo Christiansen
]]
local usage = [====[
modtools/if-entity
==================
Run a command if the current entity matches a given ID.
To use this script effectively it needs to be called from "raw... |
Auctionator.Config.Options = {
DEBUG = "debug",
MAILBOX_TOOLTIPS = "mailbox_tooltips",
PET_TOOLTIPS = "pet_tooltips",
VENDOR_TOOLTIPS = "vendor_tooltips",
AUCTION_TOOLTIPS = "auction_tooltips",
ENCHANT_TOOLTIPS = "enchant_tooltips",
SHIFT_STACK_TOOLTIPS = "shift_stack_tooltips",
AUTOSCAN = "autoscan_2",... |
Config = {}
--Blips
Config.MainSprite = 688589278 -- Job Blip sprite
Config.DeliverySprite = -1595467349 -- Point Sprite
Config.ShowBlips = true -- Show Point blips
--Buttons
Config.DeliveryButton = 0xD9D0E1C0 --Space
Config.JobButton = 0xD9D0E1C0 --Space
--Messages
Config.Deliver = "Press ~INPUT_JUMP~ t... |
--[[
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
]]--
paths... |
-- perf
local ipairs = ipairs
local require = require
local tinsert = table.insert
local SqlOrm = {}
function SqlOrm.define_model(sql_database, table_name)
local GinModel = {}
GinModel.__index = GinModel
-- init
local function quote(str)
return sql_database:quote(str)
end
local orm =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.