content stringlengths 5 1.05M |
|---|
module("luci.controller.socatg", package.seeall)
function index()
if not nixio.fs.access("/etc/config/socatg") then
return
end
entry({"admin", "network", "socatg"}, cbi("socatg"), _("SocatG"), 100).dependent = true
end
|
local MincraftItemData = {
ore = {
'minecraft:gold_ore',
'minecraft:iron_ore',
'minecraft:coal_ore',
'minecraft:lapis_ore',
},
wood = {
'minecraft:planks',
'minecraft:log',
},
stone = {
'minecraft:stone',
'minecraft:cobblestone',
},
}
|
local _, Engine = ...
local Handler = Engine:GetHandler("UnitFrame")
local Update = function(self, event, ...)
local unit = self.unit
end
local Enable = function(self, unit)
local Happiness = self.Happiness
if Happiness then
end
end
local Disable = function(self, unit)
local Happiness = self.Happiness
if Happi... |
--[[
Author: tochonement
Email: tochonement@gmail.com
12.03.2021
--]]
if SERVER then
util.AddNetworkString("gfconsole:Send")
local RECOVERY_TIME = 1
local MAXIMUM_MESSAGES = 1024
local MESSAGES_PER_TICK = 3
local queue = {}
local function get_recipients()
local all = player.GetHuma... |
local config = {}
function config.init()
if not packer_plugins["nvim-treesitter"].loaded then
vim.cmd [[packadd nvim-treesitter]]
end
if not packer_plugins["nvim-treesitter-textobjects"].loaded then
vim.cmd [[packadd nvim-treesitter-textobjects]]
end
if not packer_plugins["nvim-tree... |
local meta = FindMetaTable("Entity");
local black = Color(0, 0, 0, 255);
local white = Color(255, 255, 255, 200);
local red = Color(128, 30, 30, 255);
function meta:drawOwnableInfo()
if LocalPlayer():InVehicle() then return end
-- Look, if you want to change the way door ownership is drawn, don't edit this file, us... |
---
-- This screen can be used to inform the user of certain events.
-- @module KeybindingModal
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local ScreenManager = require( 'lib.screenmanager.ScreenManager' )
local Screen = require( 'src... |
----------------------------- 以下为 UI代码 不可修改 -----------------------------------
---@type Framework.UI.Prefab
local super = require("Framework.UI.Prefab")
---@class Examples.02_Event.UI_02:Framework.UI.Prefab
UI_02 = class("Examples.02_Event.UI_02", super)
function UI_02:ctor(autoBind)
super.ctor(self)
if auto... |
--[[ Night Stalker AI ]]
function Spawn( entityKeyValues )
end
--[[
function OnEntityKilled( event )
local killedEntity = EntIndexToHScript( event.entindex_killed )
if killedEntity then
print( "killedEntity == " .. killedEntity )
end
--CreateUnitByName( "npc_dota_techies_land_mine", thisEntity:GetAbsOrigin(), ... |
local AddonName, AddonTable = ...
AddonTable.blacksmithing = {
-- Plans
87408,
87409,
87410,
87411,
87412,
87413,
}
|
require "unicode"
txt="Köhlerhütte"
for c in txt:allunicode() do
print(c)
end |
local M = {}
local TAG_FLOAT = 202021.25
-- Functions in this file might be called by a thread
-- In that case, add following lines to _init_():
--
-- require 'image'
function M.loadImage(path)
local input = image.load(path, 3, 'float')
return input
end
function M.loadFlow(filename)
local ff = torch.DiskF... |
function STATE:IsIdle(pl)
return true
end
function STATE:CanPickup(pl, ent)
return true
end
function STATE:Started(pl, oldstate)
end
|
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local model = ReplicatedStorage.model.projectile
local by = require(common.util.by)
local compileSubmodulesToArray = require(common.util.compileSubmodulesToArray)
local assets = compileSubmodulesToArray(script, true)... |
-- mod_auth_ldap
local jid_split = require "util.jid".split;
local new_sasl = require "util.sasl".new;
local lualdap = require "lualdap";
local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
-- Config options
local ldap_server = module:get_option_s... |
local spellbook = {}
spellbook.preamble = function()
local ret = {}
if os.getenv('DEBUG') then
table.insert(ret, '\\renewcommand{\\wizpenfont}{\\normalfont}')
end
return ret
end
spellbook.match = function(str, pattern, iftrue, iffalse)
if string.match(str, pattern) then
return iftr... |
function ShadowCouncilWarlock_OnEnterCombat(Unit,Event)
Unit:SetCombatMeleeCapable(1)
Unit:registerEvent("ShadowCouncilWarlock_DrainLife", 24000, 0)
Unit:registerEvent("ShadowCouncilWarlock_ShadowBolt", 2500, 0)
end
function ShadowCouncilWarlock_DrainLife(Unit,Event)
Unit:FullCastSpellOnTarget(37992,Unit:GetCloses... |
-- Localize globals
local VoxelArea, ItemStack, assert, error, io, ipairs, math, minetest, modlib, next, pairs, setmetatable, string, table, type, vector
= VoxelArea, ItemStack, assert, error, io, ipairs, math, minetest, modlib, next, pairs, setmetatable, string, table, type, vector
-- Set environment
local _ENV = ..... |
--
-- tests/base/test_filename.lua
-- Verify generation of project/solution/rule filenames.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_filename")
local p = premake
--
-- Setup
--
local sln
function suite.setup()
sln = test.createsolution()
end
... |
--[[
-- Todo: --
1. Basic obstacles and obstructions that the player has to jump over
3. Read this https://www.reddit.com/r/gamedev/comments/25tk7d/finally_finished_my_multipart_technical_series/
4. And these https://www.reddit.com/r/gamedev/comments/1f83c5/3_articles_about_component_entity_systems/
5. Implement game s... |
local playerService = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local player = playerService.LocalPlayer
local replication = {}
local replicateRemote = replicatedStorage.Replicate
replicateRemote.OnClientEvent:Connect(function(otherPlayer, gunSettings, cframe, length)
i... |
--
--
-- ▄ ▄ ▀
-- ▄▄▄ ▄▄▄ ▄▄█▄▄ ▄▄█▄▄ ▄▄▄ ▄ ▄▄ ▄▄▄▄ ▄▄▄
-- █ ▀ █▀ █ █ █ █ █▀ █ █▀ ▀█ █ ▀
-- ▀▀▀▄ █▀▀▀▀ █ █ █ █ █ █ █ ▀▀▀▄
-- ▀▄▄▄▀ ▀█▄▄▀ ▀▄▄ ▀▄▄ ▄▄█▄▄ █ █ ▀█▄▀█ ▀▄▄▄▀
-- ... |
object_mobile_nova_orion_willard_wassleman = object_mobile_shared_nova_orion_willard_wassleman:new {
}
ObjectTemplates:addTemplate(object_mobile_nova_orion_willard_wassleman, "object/mobile/nova_orion_willard_wassleman.iff")
|
-- TODO: String format support missing
function todo.log(message)
if type(message) == 'table' then
message = serpent.dump(message) .. ' [' .. #message .. ']'
end
message = "" .. message or '<nil>'
if game then
for _, p in pairs(game.players) do
if (todo.show_log(p)) then
... |
local modname = minetest.get_current_modname()
local register_craftitem = minetest.register_tool
local register_entity = minetest.register_entity
local add_entity = minetest.add_entity
local mudsling = {}
mudsling.players = {}
mudsling.POWER_MAX = 12
minetest.after(4, function() end)
-- Player index functions
mudsli... |
local _ENV = mkmodule('json')
local internal = require 'json.internal'
local fs = dfhack.filesystem
encode_defaults = {
-- For compatibility with jsonxx (C++)
pretty = true,
indent = '\t',
}
function encode(data, options, msg)
local opts = {}
for k, v in pairs(encode_defaults) do opts[k] = v end
... |
local ObjectManager = require("managers.object.object_manager")
local Logger = require("utils.logger")
require("utils.helpers")
spHelper = require("screenplayHelper")
talus_poi_waypoints = ScreenPlay:new {
numberOfActs = 1,
questString = "talus_poi_waypoints_task",
states = {},
}
registerScreenPlay("talus_po... |
-- TODO: has never been debugged
local key = KEYS[1]
local json = ARGV[1]
local node = ARGV[2]
local tags = ARGV[3]
local modeltype = ARGV[4]
local now = tonumber(ARGV[5])
local rediskey = string.format("reality:%s", key)
local v = {}
v.key = key
v.node = node
v.json = json
v.tags = tags
v.epoch = now
v.modeltype = ... |
local levent = require "levent.levent"
local signal = require "levent.signal"
local function run()
local s
s = signal.signal(signal.SIGINT, function()
print("in SIGINT")
s:cancel()
end)
end
levent.start(run)
|
-------------------------------
-- Skill: Final Heaven
-- H2H weapon skill
-- Skill Level N/A
-- Additional effect: temporarily enhances Subtle Blow tpz.effect.
-- Mods : VIT:60%
-- 100%TP 200%TP 300%TP
-- 3.0x 3.0x 3.0x
-- +10 Subtle Blow for a short duration after using the weapon skill. (Not implem... |
-----------------------------------
--
-- Zone: Oldton_Movalpolos (11)
--
-----------------------------------
local ID = require("scripts/zones/Oldton_Movalpolos/IDs")
require("scripts/globals/conquest")
require("scripts/globals/missions")
require("scripts/globals/treasure")
require("scripts/globals/helm")
------------... |
local function main(max)
db:setmaxinstructions(20000000)
local dbtab = db:prepare("insert into t2 values(@a, 'test1', x'1234', @d, @e, @f)")
local dbtab2 = db:prepare("insert into t1 values(@a)")
local i = 1
local tran = 0
local rc = 0
db:begin()
local st... |
-- Copyright 2014-2015 Greentwip. All Rights Reserved.
local block = import("app.objects.gameplay.level.environment.core.block")
local teleporter = class("teleporter", block)
function teleporter:ctor(position, size)
self:setup(position, size)
self:getPhysicsBody():getShapes()[1]:setTag(cc.tags.teleporter)
end... |
startscene = 1
SceneEnum = {
"Info";
"res";
name = "SceneEnum"
}
defaultScene = "res.default";
fullscreen = true
luatitle = "Catch O\'Run"
_en ={
dt = 0.015;
screen = {size = "640x320", name = "screen"};
1;
name = "_en";
}
_en.screen.w, _en.screen.h = WxHtoints(_en.screen.size) |
TRACER_FLAG_USEATTACHMENT = 0x0002;
SOUND_FROM_WORLD = 0;
CHAN_STATIC = 6;
EFFECT.Thickness = 16
EFFECT.Life = 0.25
EFFECT.RotVelocity = 30
EFFECT.InValid = false;
local Mat_Impact = Material( "effects/combinemuzzle2" );
local Mat... |
-- Data preparation for BiCNN
-- Author: Minwei Feng (mfeng@us.ibm.com)
require 'torch'
require 'nn'
if opt.trainFile ~= 'none' then
trainFileHandle = assert(io.open(opt.trainFile, 'r'))
end
if opt.validFile ~= 'none' then
validFileHandle = assert(io.open(opt.validFile, 'r'))
end
if opt.testFile1 ~= 'none' th... |
-- ********************************************************************************************************************
-- Aliases
-- ********************************************************************************************************************
minetest.register_alias("wine_red_trunk", "stimulants:wine_red_trunk"... |
object_tangible_item_som_blistmok_heart = object_tangible_item_som_shared_blistmok_heart:new {
}
ObjectTemplates:addTemplate(object_tangible_item_som_blistmok_heart, "object/tangible/item/som/blistmok_heart.iff")
|
----------------------------------------------------------------------------------------------------
-- Flower Extentions Library for Dungeon.
--
-- ダンジョンを生成する為のライブラリです.
-- ダンジョンとは、以下の要素で構成されます.
--
-- * エリア : ダンジョンの分割エリア.
-- * 部屋 : 分割エリア内の部屋.
-- * 通路 : 部屋と部屋を繋ぐための道.
-- * アイテム : 静的に配置されるアイテムオブジェクト.
-- * オブジェクト : 動的に移動でき... |
local utf8 = require("utf8")
local log = require("log")
local function error_printer(msg, layer)
log.error((debug.traceback("Error: " .. tostring(msg), 1+(layer or 1)):gsub("\n[^\n]+$", "")))
end
function love.errorhandler(msg)
msg = tostring(msg)
error_printer(msg, 2)
if not love.window or not love.graphics... |
object_ship_player_player_blacksun_vaksai_s02 = object_ship_player_shared_player_blacksun_vaksai_s02:new {
}
ObjectTemplates:addTemplate(object_ship_player_player_blacksun_vaksai_s02, "object/ship/player/player_blacksun_vaksai_s02.iff")
|
require("stabilize").setup()
|
talus_selonian_squad_neutral_none = Lair:new {
mobiles = {{"selonian_separatist",3},{"selonian_separatist_general",1},{"selonian_separatist_soldier",3},{"selonian_separatist_recruit",3},{"selonian_separatist_captain",2}},
spawnLimit = 15,
buildingsVeryEasy = {},
buildingsEasy = {},
buildingsMedium = {},
buildings... |
function start (song)
end
function update (elapsed)
local currentBeat = (songPos / 1000)*(bpm/140)
for i=0,7 do
setActorY(_G['defaultStrum'..i..'Y'] + 10 * math.cos((currentBeat + i*0.25) * math.pi), i)
end
end
|
-- ssd1306
local Module = {}
local global = global or _G
-- 保护包代码上下文
local locale = {}
setfenv( 1, setmetatable({}, {
__index = function( t, k )
if global[k] then
return global[k]
elseif locale[k] then
return locale[k]
end
end,
__newindex =... |
local rocket_hideout_0 = DoorSlot("rocket_hideout","0")
local rocket_hideout_0_hub = DoorSlotHub("rocket_hideout","0",rocket_hideout_0)
rocket_hideout_0:setHubIcon(rocket_hideout_0_hub)
local rocket_hideout_1 = DoorSlot("rocket_hideout","1")
local rocket_hideout_1_hub = DoorSlotHub("rocket_hideout","1",rocket_hideout_1... |
wordclient_proto = {
["UIBag_Label1"] = { },
["UIBag_Label2"] = { },
["UIBag_Label3"] = { },
["UIBag_title"] = { },
["UIItemTip_type"] = { },
}
return wordclient_proto
|
local L = BigWigs:NewBossLocale("Warbringer Yenajz", "frFR")
if not L then return end
if L then
L.tear = "Vous étiez dans une Brèche dans la réalité"
end
|
local Compat = require("mod.elona_sys.api.Compat")
local Fs = require("api.Fs")
local Csv = require("mod.extlibs.api.Csv")
local Theme = require("api.Theme")
local ElonaItem = require("mod.elona.api.ElonaItem")
local ItemMemory = require("mod.elona_sys.api.ItemMemory")
local CodeGenerator = require("api.CodeGenerator")... |
describe("TestAttacks", function()
before_each(function()
newBuild()
end)
teardown(function()
-- newBuild() takes care of resetting everything in setup()
end)
it("creates an item and has the correct crit chance", function()
assert.are.equals(build.calcsTab.mainOutput.CritCh... |
--- Functions to be used inside translations, like "${itemname(_1, _2, _3)}".
-- Require common formatting.
require_relative("../_common/functions.lua")
local FOV = require("core.FOV")
local I18N = require("core.I18N")
local Item = require("core.Item")
local string = string
I18N.add_function {
ordinal = function(... |
local server = require "nvim-lsp-installer.server"
local npm = require "nvim-lsp-installer.installers.npm"
return function(name, root_dir)
local cmd = {
npm.executable(root_dir, "ngserver"),
"--stdio",
"--tsProbeLocations",
root_dir,
"--ngProbeLocations",
root_dir,
... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local lib = ReplicatedStorage:WaitForChild("lib")
local common = ReplicatedStorage:WaitForChild("common")
local template = ReplicatedStorage:WaitForChild("template")
-- local util = common:WaitForChild("... |
local ShowCursor = {
Properties = {
--
}
}
function ShowCursor:OnActivate ()
if LyShineLua then
LyShineLua.ShowMouseCursor(true)
end
end
function ShowCursor:OnDeactivate ()
if LyShineLua then
LyShineLua.ShowMouseCursor(false)
end
end
return ShowCursor
|
-----------------------------------------------------------------------------------------------
-- Client Lua Script for RandomMount
-- Copyright (c) NCsoft. All rights reserved
-- Author: MisterP
-- Allows users to summon a random mount from among a pool of known mounts that they select
--------------------------... |
-- Lua utilities and functionality. Note that this file is called from init_bootstrap.
assert(loadfile("glorp/init_util.lua"))()
assert(loadfile("glorp/init_event.lua"))()
function InitComplete()
-- Global lua libraries that aren't needed for early init
assert(loadfile("glorp/init_stdlib.lua"))()
-- Debug-on... |
local magnitude = 0.03
local maxDistX = SCREEN_WIDTH*magnitude
local maxDistY = SCREEN_HEIGHT*magnitude
-- 1 = simply load the song bg. (default)
-- 2 = a bg will be chosen from a pool of both clear bgs and grade specific bgs.
-- 3 = the pool will be grade specific bgs only. unless it doesn't exist in which case it ... |
Config = {}
Config.Stables = {
Valentine = {
Pos = {x=-367.73, y=787.72, z=116.26},
Name = 'Estábulo',
Heading = -30.65,
SpawnPoint = {
Pos = {x=-372.43, y=791.79, z=116.13},
CamPos = {x=1, y=-3, z=0},
Heading = 182.3
}
},
BlackWater = {
Pos = {x=-873.167, y=-1366.040, z=43.531}... |
local function create_augroup(name)
return vim.api.nvim_create_augroup(name, { clear = true })
end
local augroup = create_augroup("SpecialFiles")
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = ".prettierc",
callback = function()
vim.schedule(function()
vim.bo.filetype = "json"
end)
en... |
Config = {}
Config.DrawDistance = 150.0 -- [View distance]
Config.Markers = {
EXAMPLE_EX = {
Name = "EXAMPLE", --[Unique but not important]
POS = { --[ Marker pos ]
x = 0,
y = 0,
z = 0
},
Color = { -- [Marker color]
r = 0... |
require('astronauta.keymap')
local nmap = vim.keymap.nmap
nmap { 'ga', '<Plug>(UnicodeGA)' }
|
local Player = FindMetaTable("Player");
if (SERVER) then
util.AddNetworkString("sv_chat_color");
function Player:Chat(...)
net.Start("sv_chat_color");
net.WriteTable({...});
net.Send(self);
end
else
net.Receive("sv_chat_color", function(len, client)
local tbl = net.ReadTable();
chat.AddText(... |
BakefileGen = {}
BakefileGen.name = "BakefileGen"
project "BakefileGen"
kind "ConsoleApp"
language "C#"
location "."
files
{
"BakefileGen.lua",
"**.cs",
}
links
{
"System",
"System.Xml",
"System.Xml.Linq"
} |
-- Lua Extreme example: try...catch...end
-- See Agreement in LICENSE
-- Copyright (C) 2019, Alexey Smirnov <saylermedia@gmail.com>
--
-- how to use:
-- try
-- ...block
-- catch ([e])
-- ...when exception
-- end
-- it's equal:
-- xpcall(
-- function ()
-- ...block
-- end,
-- functio... |
--require "strict"
--look for packages one folder up.
package.path = package.path .. ";;;../?.lua;../?/init.lua"
local sched = require 'lumen.sched'
local log = require 'lumen.log'
log.setlevel('ALL', 'RONG')
--log.setlevel('ALL', 'RON')
log.setlevel('ALL', 'TRW')
--log.setlevel('DETAIL', 'RWALK')
--log.setlevel('ALL'... |
local bump = {
_VERSION = 'bump v3.1.2',
_URL = 'https://github.com/kikito/bump.lua',
_DESCRIPTION = 'A collision detection library for Lua',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2014 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
... |
local Native = require('lib.stdlib.native')
local converter = require('lib.stdlib.enum.converter')
---@class CameraField
local CameraField = {
TargetDistance = 0, --CAMERA_FIELD_TARGET_DISTANCE
Farz = 1, --CAMERA_FIELD_FARZ
AngleOfAttack = 2, --CAMERA_FIELD_ANGLE_OF_ATTACK
FieldOfView = 3, --CAMERA_FIE... |
local utils_ok, utils = pcall(require, "utils")
if not utils_ok then
return
end
local cmp_ok, cmp = pcall(require, "cmp")
if not cmp_ok then
return
end
local lsp_status_ok, lsp_status = pcall(require, "lsp-status")
if not lsp_status_ok then
return
end
local win_ok, win = pcall(require, "lspconfig.ui.windows")
... |
local F, C = unpack(select(2, ...))
tinsert(C.themes["FreeUI"], function()
if C.isClassic then return end
LevelUpDisplaySide:HookScript("OnShow", function(self)
for i = 1, #self.unlockList do
local f = _G["LevelUpDisplaySideUnlockFrame"..i]
if not f.restyled then
f.icon:SetTexCoord(.08, .92, .08, .92)
... |
RegisterClientScript()
local entity = ScriptedEntity({
Base = "entity_burger",
IsNetworked = true,
MaxHealth = 1,
Properties = {}
})
|
----------------------------------------
-- Stat categories
----------------------------------------
Outfitter.StatCategories = {}
function Outfitter:GetCategoryByID(pCategoryID)
for _, vCategory in ipairs(Outfitter.StatCategories) do
if vCategory.CategoryID == pCategoryID then
return vCategory
end
... |
---------------------
--DEFINE FAKE ITEMS--
---------------------
data:extend({
{
type = "item",
name = "platform-minigun-turret-mk1",
icon = "__Armored-train__/graphics/icons/trainTurrets/platform-minigun-turret-mk1-icon.png",
icon_size = 32,
flags = {},
subgroup = "transport",
order = "a[train-system]... |
local drawableRectangle = require("structs.drawable_rectangle")
local utils = require("utils")
local everestNpc = {}
everestNpc.name = "MaxHelpingHand/CustomNPCSprite"
everestNpc.depth = 100
everestNpc.justification = {0.5, 1.0}
everestNpc.nodeLimits = {0, 2}
everestNpc.nodeLineRenderType = "line"
everestNpc.fieldInf... |
--for mah old 'hacker' friend
textu = script.ImageUrl.Value
function imagevirus(object)
for i = 1,1 do -- lol 8D
if object.className == "Part" or object.className == "TrussPart" or object.className == "WedgePart" then
print'Virus lol'
d1 = Instance.new("Decal")
d2 = Instance.new("Decal")
d3 = Instance.new("Decal")
d4... |
class = require 'class'
FieldObject = require 'field_object'
BaseTrap = class(FieldObject)
BaseTrap.expulsion_speed = 400
BaseTrap.init = FieldObject.init
BaseTrap.enable_char_collisions = true
function BaseTrap:handle_hero_collision(instance, char, map)
if char.is_vulnerable then
self:damage(instance, char)
end... |
local test = {}
local json = require('charon.json')
local Class = require('charon.oop.Class')
local Adapter = require('charon.ActiveRecord.MysqlAdapter')
local Person = Class.new("Person", "ActiveRecord")
Person.tableName = string.format("person_%s", "columns") --os.uuid():replace('-', '_'))
test.beforeAll = func... |
class 'CombatAlienUpgrade' (CombatUpgrade)
function CombatAlienUpgrade:Initialize(...)
CombatUpgrade.Initialize(self, "Alien", ...)
end
function CombatAlienUpgrade:TeamSpecificLogic(player)
if not player.isRespawning then
-- Eliminate velocity so that we don't slide or jump as an egg
player:SetVelo... |
local function flatmap(arr, f)
local result = {}
for i = 1, #arr do
local t = f(arr[i], i, arr)
for j = 1, #t do
result[#result+1] = t[j]
end
end
return result
end
return flatmap
|
local ALPHABET = {}
local INDICES = {}
-- A-Z
for index = 65, 90 do
table.insert(ALPHABET, index)
end
-- a-z
for index = 97, 122 do
table.insert(ALPHABET, index)
end
-- 0-9
for index = 48, 57 do
table.insert(ALPHABET, index)
end
table.insert(ALPHABET, 43) -- +
table.insert(ALPHABET, 47) -- /
... |
--[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
-- this is exprimental
--
require 'strict'
local CSPM = require 'cspmPrelude'
function main()
print "start"
test1 ()
if #arg < 4 then return "not enough arguments" end
test2 (arg[1],arg[2])
print "finished"
end
function test1 ()
print("eval an expressions ", CSPM.eval("3+3"):toString())
pr... |
local old_counter = 20
local counter = 20
local thidperson_bind = ui.add_key_bind("Thirdperson bind", "thirdperson_bind", 0, 2)
ui.get_key_bind("visuals_other_thirdperson_bind"):set_key(0x00)
ui.get_key_bind("visuals_other_thirdperson_bind"):set_type(0)
ui.get_check_box("visuals_other_thirdperson"):set_value(f... |
local PhysicsService = game:GetService("PhysicsService")
local Package = game:GetService("ReplicatedStorage").NNLibrary
local FeedforwardNetwork = require(Package.NeuralNetwork.FeedforwardNetwork)
local ParamEvo = require(Package.GeneticAlgorithm.ParamEvo)
local clock = os.clock()
local collisionGroupName = "CarCollis... |
local AddonName, AddonTable = ...
AddonTable.blacksmithing = {
-- Recipe's
30324, -- Plans: Red Havoc Boots
32737, -- Plans: Swiftsteel Shoulders
}
|
do class "MalformedTwoSharedBlocks"
{}
shared_block {}
shared_block {}
function Initialize( self )
end
end |
Talk(0, "灵姑娘,请你先回药王庄,若有需要你帮忙时,我再去找你.", "talkname0", 1);
Leave(2);
ModifyEvent(49, 2, 1, 1, 953, -1, -1, 5210, 5210, 5210, 0, -2, -2);
jyx2_ReplaceSceneObject("49","NPC/chenglingsu","1");
do return end;
|
object_building_kashyyyk_cave_mushroom_brown_s04 = object_building_kashyyyk_shared_cave_mushroom_brown_s04:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_cave_mushroom_brown_s04, "object/building/kashyyyk/cave_mushroom_brown_s04.iff")
|
function onCastSpell(cid, var)
if isSummon(cid) then return true end
docastspell(cid, "Scary Face")
return true
end |
--
-- Created by IntelliJ IDEA. Copyright (C) 2017 Hanks
-- User: hanks
-- Date: 2017/5/26
-- A news app
--
require "import"
import "android.widget.*"
import "android.content.*"
import "android.view.View"
import "androlua.LuaHttp"
import "androlua.LuaAdapter"
import "androlua.widget.video.VideoPlayerActivity"
import "... |
return {
tag = 'worldBasics',
summary = 'Destroy the World!! Muahaha!',
description = 'Destroy the World!',
arguments = {},
returns = {},
notes = [[
Bad things will happen if you destroy the world and then try to access it or anything that was
in it.
]]
}
|
solution (_ACTION .. ".regenesis")
configurations { "Debug", "Release" }
platforms { "x64" }
architecture "x64"
-- -------------------------------------------------------------
function DefaultOutputDirs()
objdir ( "_build/obj/" .. _ACTION .. "/" )
targetdir ( "_build/bin/" .. _ACTION .. "/%{... |
local class = require('opus.class')
local UI = require('opus.ui')
local Util = require('opus.util')
local colors = _G.colors
UI.ScrollBar = class(UI.Window)
UI.ScrollBar.defaults = {
UIElement = 'ScrollBar',
lineChar = '\166',
sliderChar = UI.extChars and '\127' or '#',
upArrowChar = UI.extChars and '\30' or ... |
function removeFromPluginRepresentation()
end
function updatePluginRepresentation()
end
function getDefaultInfoForNonExistingFields(info)
if not info['version'] then
info['version']=_MODELVERSION_
end
if not info['subtype'] then
info['subtype']='time'
end
if not info['bitCoded'] ... |
--電脳堺門-朱雀
--
--Script by JustFish
function c101102072.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101102072,0))
e2:SetCategory(CATEGORY_DE... |
local utils = require "kong.tools.utils"
local DaoError = require "kong.dao.error"
local constants = require "kong.constants"
local function load_value_schema(plugin_t)
if plugin_t.name then
local loaded, plugin_schema = utils.load_module_if_exists("kong.plugins."..plugin_t.name..".schema")
if loaded then
... |
function love.conf(t)
t.window.title = "love2d STG sample 02"
t.version = "11.1"
t.window.vsync = 1
t.window.resizable = true
-- t.window.width = 1280
-- t.window.height = 720
-- t.window.fullscreen = true
-- t.window.fullscreentype = "exclusive"
end
|
----------------------------------------------------------------------------------------------------
-- bindings module
--get the engine and create the module
local Engine = select(2,...);
local mod = Engine.AddOn:NewModule("bindings");
--get the locale
local L=Engine.Locale;
--module defaults
mod.Defaults = {
pro... |
local vim_fn = vim.fn
---Returns the color set by the current colorscheme for the `attr` attribute of
---the `hlgroup_name` highlight group in hexadecimal format.
---@param hlgroup_name string
---@param attr '"fg"' | '"bg"'
---@return string
local get_hex = function(hlgroup_name, attr)
local hlgroup_ID = vim_fn.sy... |
local state = {}
local W, H
local graphics
local P, Q
function state.load ()
W, H = love.window.getDimensions()
graphics = love.graphics
graphics.setFont(graphics.newFont(96))
end
function state.keypressed ()
setState 'start'
end
function state.mousepressed ()
setState 'start'
end
function state.draw ()... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Rodux = require(Modules.Packages.Rodux)
local SetCurrentlySellingAssetsFromFetchSellData =
require(Modules.AvatarExperience.Catalog.Actions.SetCurrentlySellingAssetsFromFetchSellData)
local AddCurrentlySellingAsset = requ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.