content stringlengths 1 1.05M | size int64 5 1.05M | max_stars_repo_name stringlengths 5 114 |
|---|---|---|
object_building_mustafar_terrain_must_rock_scorched_med = object_building_mustafar_terrain_shared_must_rock_scorched_med:new {
}
ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_scorched_med, "object/building/mustafar/terrain/must_rock_scorched_med.iff")
| 277 | V-Fib/FlurryClone |
--------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | 2,348 | amvb/GUCEF |
local oshiro = {}
oshiro.name = "oshiroTrigger"
oshiro.placements = {
{
name = "oshiro_spawn",
data = {
state = true
}
},
{
name = "oshiro_leave",
data = {
state = false
}
}
}
return oshiro | 279 | Helen0903/Loenn |
stout_ikopi_buck = Creature:new {
objectName = "@mob/creature_names:ikopi_stout_stallion",
socialGroup = "ikopi",
faction = "",
level = 9,
chanceHit = 0.27,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 675,
baseHAMmax = 825,
armor = 0,
resists = {110,0,-1,0,0,0,0,0,-1},
meatType = "meat_wild",
... | 934 | V-Fib/FlurryClone |
-- petit script pour le HTML du serveur web
print("\n web_html.lua zf190119.2018 \n")
--Partie HTML et CSS pour la page web
function html_home()
buf = "<!DOCTYPE html><html><body><meta charset='utf-8' name='viewport' content='width=device-width, initial-scale=1.0'>\n"
buf = buf .. "<h1>Hello, this is No... | 1,440 | zuzu59/NodeMCU_Lua |
local http, url = ...
function blockexchange.api.create_schemamods(token, schema_id, mod_names)
return Promise.new(function(resolve, reject)
local json = minetest.write_json(mod_names);
http.fetch({
url = url .. "/api/schema/" .. schema_id .. "/mods",
extra_headers = {
"Content-Type: appl... | 1,021 | blockexchange/blockexchange |
Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end
Citizen.CreateThread(function()
-- cvpi w/ liberty
AddTextEntry('0x54830233', 'Hwaycar')
-- 2015 charger
AddTextEntry('0x519EF9F7', 'Hwaycar2')
-- 2014 explorer
AddTextEntry('0x43605D7A', 'Hwaycar3')
-- 2014 slicktop explorer
AddTextEntry('0x6... | 688 | Donkie16/DuNOF-vRP |
--// Services
local SignalsService = require(game:GetService('ReplicatedStorage'):FindFirstChild('SignalsService'))
--// Signals
local Adder = SignalsService.new('Adder') -- Creates a connection.
local Parallel = SignalsService.new('Parallel')
--// Functions
Adder:ConnectParallel(function(A, B) -- It will connect par... | 684 | metatablecat/SignalsService |
love.conf = function(t)
t.title = "Don't Mind the Gap"
t.version = "11.2"
t.window.width = 1920
t.window.height = 1080
t.window.resizable = false
--t.console = true
t.window.vsync = false
end | 219 | nanderv/IAJAM2019 |
m = Map("babeld", translate("Babeld Overview"))
m.pageaction = false
s = m:section(NamedSection, "__babeldoverview__")
function s.render(self, sid)
local tpl = require "luci.template"
tpl.render_string([[
<%
local utl = require "luci.util"
local v6_port = 33123
-- FIXME: check if call is correct
local du... | 3,219 | guyezi/LUCI |
local lan = require (ZX_LAN .. ".Skill")
local M = {
[1] = {ID = 1,SkillID = 1000,Level = 1,Name = nil,Sing = 0,CD = 1,Distance = 5,PATK = 10,PTH = 5,Icon = "Skills/Darius/normal.png",},
[2] = {ID = 2,SkillID = 1001,Level = 1,Name = nil,Sing = 0,CD = 1,Distance = 5,PATK = 5,PTH = 6,Icon = "Skills/Darius/normal.png",},
... | 1,321 | findstr/SomeGame |
return {
id = "S028",
events = {
{
alpha = 0.454,
style = {
text = "指挥官请点击<color=#ff7d36>出击</color>",
mode = 2,
posY = -42,
dir = 1,
posX = 243
},
ui = {
path = "OverlayCamera/Overlay/UIMain/toTop/frame/rightPanel/eventPanel/combatBtn",
pathIndex = -1,
triggerType = {
... | 1,493 | FlandreCirno/AzurLaneWikiUtilitiesManual |
local ReactFiberErrorDialog = require "ReactFiberErrorDialog"
local showErrorDialog = ReactFiberErrorDialog.showErrorDialog
local function logCapturedError(capturedError)
local logError = showErrorDialog(capturedError)
-- Allow injected showErrorDialog() to prevent default console.error logging.
-- This e... | 794 | ccheever/react-lua |
local table_copy = table.Copy
local table_insert = table.insert
local math_min = math.min
local math_max = math.max
local math_sqrt = math.sqrt
local string_gmatch = string.gmatch
local string_match = string.match
local string_split = string.Split
local string_trim = string.Trim
local string_find = string.find
local ... | 13,295 | edunad/qube |
rogue_bageraset = Creature:new {
objectName = "@mob/creature_names:rogue_bageraset",
socialGroup = "self",
faction = "",
level = 13,
chanceHit = 0.29,
damageMin = 130,
damageMax = 140,
baseXp = 609,
baseHAM = 1200,
baseHAMmax = 1400,
armor = 0,
resists = {110,105,0,0,0,0,0,-1,-1},
meatType = "meat_herbivor... | 968 | V-Fib/FlurryClone |
WEAPONS_DATA = {
{
name = "Fist",
damage = 15.0,
},
{
name = "Pistol01",
damage = 40.0,
},
{
name = "Pistol02",
damage = 22.0,
},
{
name = "Pistol03",
damage = 21.0,
},
{
name = "Pistol04",
damage = 23.0,... | 1,259 | Hazard4U/onset_collision_prophunt |
return {
id = "scatterblaster",
name = "Scatterblaster",
equipmentType = "weapon",
behaviorType = "gun",
rendererType = "oneHandedWeapon",
spriteSheet = "weapon",
spriteCoords = Vector2.new(7,7),
tier = 99,
stats = {
baseDamage = 100,
},
metadata = {
fireR... | 570 | dennislwm/outyards |
--[[--------------------------------------------------------------------
PhanxChat
Reduces chat frame clutter and enhances chat frame functionality.
Copyright (c) 2006-2018 Phanx <addons@phanx.net>. All rights reserved.
https://www.wowinterface.com/downloads/info6323-PhanxChat.html
https://www.curseforge.com/wow/a... | 2,019 | mrbandler/wow-ui |
local footBreakdown, ordered_offsets, heldTimes = unpack(...)
local player = GAMESTATE:GetMasterPlayerNumber()
local footStats = SL[ToEnumShortString(player)]["ParsedSteps"]
-- the metatable for an item in the wheel
local wheel = setmetatable({disable_wrapping = true}, sick_wheel_mt)
local tns_string = "TapNot... | 13,847 | jordando/Simply-Love-Tweaks |
----------------------------------------------------------------------------------------------------
--
-- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
-- its licensors.
--
-- For complete copyright and license terms please see the LICENSE at the root of this
-- distribution (the "Li... | 1,550 | jeikabu/lumberyard |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
--doesn't work because per current design AFKS cant hear micspam
--[[
timer.Create("AFK_Unmicspam",1,0,function()
if math.random(1,20)==1 then
if IsValid(LocalPlayer()) and LocalPlayer():IsAFK() and LocalP... | 1,012 | Evaisie/contrib |
--[[
Tests whether BLEU works properly
]]
require('..')
local prediction_path = '../datasets/Captioning/piano/test/predictions.txt'
local gold_path = '../datasets/Captioning/piano/test/captions.txt'
local bleu_results = dmn.eval_functions.bleu(prediction_path, gold_path)
for cur_result in bleu_results do
dmn.logger... | 343 | davidgolub/SimpleQA |
AddCSLuaFile()
ENT.Base = "bw_printer"
ENT.NiceName = "Paladium Money Printer"
ENT.MaxHealth = 750
ENT.Model = "models/props_c17/consolebox05a.mdl"
ENT.Material = "models/debug/debugwhite"
ENT.Color = Color(0, 161, 255, 255)
ENT.Power = 2
ENT.LevelStats = {
[0] = {7200, 8200, 565000},
[1] = {14400, 15400, ... | 609 | MerryMaw/maw_basewars_2017 |
ReactElement = require "ReactElement"
invariant = require "invariant"
local multipleChildren = ReactElement.createElement("div", {a=2, b=3}, "a", "b", "c")
local oneChild = ReactElement.createElement("div", {a=2, b=3}, "a")
local noChildren = ReactElement.createElement("div", {a=2, b=3})
| 290 | ccheever/react-lua |
--[[
########################
# #
# Walter White #
# #
# #
# 2018 #
# #
# #
########################
--]]
DrawMarkerShow = false
DrawBlipShow = false
ServicePublique = true
FlicEnVille = t... | 3,578 | Sydres/LosAramonos_RadarFix |
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
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
H.cmd [[
augroup packer_user_config
autocmd!... | 5,873 | olgam4/dotfiles |
local AtlasLoot = _G.AtlasLoot
local BonusIDInfo = {}
AtlasLoot.BonusIDInfo = BonusIDInfo
local type = type
local type_table = "table"
ATLASLOOT_ITEM_BONUSIDS = {
-- Raid
["LFR"] = 451,
["SoOWarforged"] = 448,
["HeroicRaid"] = 566,
["MythicRaid"] = 567,
["LegionLFR"] = 3379,
["LegionHeroicRaid"] = 1805,
["Leg... | 13,569 | swgloomy/Wow-plugin |
//________________________________
//
// NS2 CustomEntitesMod
// Made by JimWest 2012
//
//________________________________
// LogicListener.lua
// Entity for mappers to create teleporters
Script.Load("lua/ExtraEntitiesMod/LogicMixin.lua")
Script.Load("lua/Mixins/SignalListenerMixin.lua")
class 'LogicListener' ... | 830 | AlexHayton/NS2Combat |
local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return
end
local lspkind_status_ok, lspkind = pcall(require, "lspkind")
if not lspkind_status_ok then
return
end
local snip_status_ok, luasnip = pcall(require, "luasnip")
if not snip_status_ok then
return
end
-- html snippets in javascr... | 3,614 | sspatari/.dotfiles |
--[[
A multi line
comment call out box
]]--
-- This is a local variable
local total = 0
-- Here is a function
function Init()
-- This is a call out example
-- Here is a loop
for i = 1, total do
-- Here is a condition in a for loop
if (Tile(pos.x, pos.y).SpriteId > -1) then
... | 513 | jessefreeman/ghost-writer |
require('kinbiko.web')
| 23 | kinbiko/dotfiles |
return require('upstream_connection')
| 38 | abarrak/APIcast |
--ワンタイム・パスコード
--One-Time Passcode
--Script by nekrozar
function c101002061.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101002061+EFFECT_COUNT_CODE_OATH)
e1:SetT... | 1,131 | TheOnePharaoh/ygopro-pre-script |
--[[--
time 时间处理
@module time
]]
local time = {}
---
-- 获取秒数
time.time = function (floor)
if floor then
return os.time()
end
local millisecond = zq.DateUtils:getMilliseconds()
return millisecond/1000
end
return time
| 248 | tianxiawuzhei/cocos-quick-lua |
--[[
Copyright 2019 Iiau ©
This module is licensed under the
Apache License 2.0
A permissive license whose main conditions require preservation of copyright and license notices.
Contributors provide an express grant of patent rights. Licensed works, modifications,
and larger works may be distributed under d... | 5,041 | Nyapaw/Roblox |
object_tangible_deed_guild_deed_tatooine_guild_05_deed = object_tangible_deed_guild_deed_shared_tatooine_guild_05_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_guild_deed_tatooine_guild_05_deed, "object/tangible/deed/guild_deed/tatooine_guild_05_deed.iff")
| 273 | V-Fib/FlurryClone |
require 'collision'
require 'input'
require 'lines'
require 'texts'
local ball = require 'ball'
local pad_0 = require 'pad_0'
local pad_1 = require 'pad_1'
function set_bg_color(r, g, b)
bg_color = {r, g, b}
end
function love.load()
bg_color = {0, 0, 0.1}
ball.init_ball()
text_title = love.graphics.setNewFont('f... | 979 | JeanRehr/Pong |
local anims_list = {
--index = src, replacable
['watchdogs'] = {'custom/watchdogs.ifp', true, price = 10, name = "Watch Dogs Animasyon Fiziği", engine = 1, disabled = 0},
['gta4'] = {'custom/gta4.ifp', true, price = 5, name = "GTA IV Animasyon Fiziği", engine = 1, disabled = 0},
['gta5'] = {'custom/gta5.ifp', true,... | 25,005 | bekiroj/melancia-resources |
-- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Client.Rendering", function (namespace)
-- <summary>
-- Represents different google view effects
-- </summary>
namespace.enum("GoggleEffects", function ()
return {
Normal = 0,
NightVision = 1,
ThermalVision =... | 556 | DezZolation/trains |
--
-- Created by IntelliJ IDEA.
-- User: zoudun
-- Date: 28/12/15
-- Time: 00:40
-- To change this template use File | Settings | File Templates.
--
-- table node:
descendants = 'descendants' -- table
keys = 'keys' -- table
parent = 'parent' -- table
is_leaf = 'isLeaf' -- bool
num_keys = 'numKeys' -- int
next = 'next'... | 13,855 | jirizoudun/lurun |
--shameless copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu7 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu6 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu5 which was a copy-pasta of SkyLight's micro_item_salainen_kookospahkina_puu4 which was a copy... | 2,508 | AndyResu/3p8 |
-- See https://github.com/JustAPerson/lbi/pull/1
local success = nil
-- Some of these tests only occur with values in variables
local trueVal = true
local falseVal = false
local nilVal = nil
if trueVal then success = true end
if not trueVal then success = false end
assert(success, "Testing `true` value failed!")
... | 1,748 | hbjnmkledgjmubt/lbi |
-- editTextex.lua
require("ui/editText");
require("util/toolKit");
require("common/nativeEvent");
-- 扩充布局方式
EditText.s_EX_LAYOUT_LINEARLAYOUT_FULL_WIDTH = 1; -- 宽满屏
EditText.s_EX_LAYOUT_RELATIVELAYOUT_NOT_FULL_WIDTH = 2; -- 宽半屏
-- 扩充MODE
kEditBoxInputModeMultLine = 7;
if System.getPlatform() == kPlatformI... | 11,226 | huangtao/cloud-test |
-- AndroLua plot version of this Flot example:
-- http://people.iola.dk/olau/flot/examples/multiple-axes.html
-- (Except we don't have multiple axes - yet)
local financial = require 'android'.new()
local Plot = require 'android.plot'
local plotdata = require 'example.plotdata'
function financial.create (me)
loca... | 1,675 | stevedonovan/AndroLua |
--This file is used for functions related to items, for example, creating, saving, loading, giving, taking, etc
BU3.Items = {}
BU3.ItemsIndex = 0 --This is the starting index of items, each new item increases this by 1
BU3.Items.Items = {} --A table of all the items
local ITEM = {}
ITEMMetaAccessor = {__index = ITEM}... | 13,380 | In-memory-of-CODE-BLUE/Blues-Unboxing-3 |
-- require'nvim-treesitter.configs'.setup {
-- ensure_installed = "maintained",
-- highlight = {
-- enable = true
-- }
-- }
require'nvim-treesitter.configs'.setup {
-- ensure_installed = "maintained",
ensure_installed = {
"javascript",
"clojure",
"html",
"css",
... | 698 | jmeline/nvim-config |
local misc = require("__flib__.misc")
local gui = require("__flib__.gui-beta")
local trains = require("__flib__.train")
local time_filter = require("scripts/filter-time")
local summary_gui = require("gui/summary")
-- Make a button for this item and quantity
local function sprite_button_type_name_amount(type, name, amo... | 10,675 | robot256/rocket-log |
--「A」細胞組み換え装置
function c91231901.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c91231901.target)
e1:SetOperation(c91231901.activate)... | 2,485 | zerovoros/ygopro-pre-script |
package("opensubdiv")
set_homepage("https://graphics.pixar.com/opensubdiv/docs/intro.html")
set_description("OpenSubdiv is a set of open source libraries that implement high performance subdivision surface (subdiv) evaluation on massively parallel CPU and GPU architectures.")
set_license("Apache-2.0")
... | 3,729 | TNtube/xmake-repo |
&^#.enc2V 12*PVUH,_\UxZ__H 26*{MP[ 26*^ 19*L3 24* 6*_F}TPQOMJ 0* 24*XMT 0*G^V 6*J 22*KX\H 24* 26*M 11*IP 18* 24*N 26*CR 16*bJ 30* 31* 16*YTW[QJ[]_LO 17*V 23* 4*H 30*VVC 15*\QN{ 15*\LKJ_KCVM 0*C4 31* 16* 21* 27*XU^ 11*Q 24*X][ 23*FE\7 7*_TU@K 20* 7* 29*/[^[[N0W\ 23* 11* 11*MKvTXQw\ 1*XMNn 8*%VVM 29* 24*[ 23*VPZ@OO 15* 2... | 3,700 | KevinHuo/QNShortVideo-ByteDance |
mutant_bark_mite_soldier = Creature:new {
objectName = "@mob/creature_names:mutant_bark_mite_soldier",
socialGroup = "mite",
faction = "",
level = 24,
chanceHit = 0.33,
damageMin = 230,
damageMax = 240,
baseXp = 2543,
baseHAM = 5900,
baseHAMmax = 7200,
armor = 0,
resists = {130,130,-1,120,120,-1,-1,-1,-1},
... | 958 | V-Fib/FlurryClone |
local Mari02UI = class("Mari02UI")
local PlayerUI = class("PlayerUI")
local liveQuads = {}
for i = 1, 9 do
liveQuads[i] = love.graphics.newQuad(0, (i-1)*8, 16, 8, 16, 72)
end
Mari02UI.height = 0
local pMeterQuad = {
love.graphics.newQuad(0, 0, 16, 8, 32, 8),
love.graphics.newQuad(16, 0, 16, 8, 32, 8),
}... | 3,936 | Technochips/mari0-2 |
if file.Exists('sv_resourcecontrol.json', 'DATA') then
local workshop = util.JSONToTable(file.Read('sv_resourcecontrol.json'))
for i,v in pairs(workshop) do
resource.AddWorkshop( v )
end
end
hook.Add('TTS:AuthServer', 'TTS.ResourceControl', function()
local srvId = TTS.Config.Server.id_name
Resource... | 2,609 | totor13x/shaft-cc-gmod-docker |
local RBT = LibStub("AceAddon-3.0"):GetAddon("ReturnBuffTracker")
local L = LibStub("AceLocale-3.0"):GetLocale("ReturnBuffTracker")
local format = format
local GetLootMetho... | 2,550 | LoneWanderer-GH/ReturnBuffTracker |
local core = require("apisix.core")
local jwt = require("resty.jwt")
local logger = core.log
local http = require('resty.http')
local cjson = require('cjson')
local plugin_name = "identity-server4"
local discovery_info = {
init = false,
data = {}
}
local schema = {
type = "object",
properties = {
... | 8,192 | water1st/apisix |
My = My or {}
local t = My.Translator.translate
local minSpawnDistance = 7500
local maxSpawnDistance = 15000
local numSpawnTries = 12
local ratingVeryBad = -999
local ratingBad = -99
local ratingNotGood = -9
local ratingGood = 9
local ratingVeryGood = 99
local ratingDistance = -2 -- malus per 1000u distance
local fa... | 6,541 | czenker/lively-epsilon-missions |
--------------------------------
-- @module MenuItemToggle
-- @extend MenuItem
-- @parent_module cc
---@class cc.MenuItemToggle:cc.MenuItem
local MenuItemToggle = {}
cc.MenuItemToggle = MenuItemToggle
--------------------------------
--- Sets the array that contains the subitems.
---@param items array_table
---@re... | 1,886 | Xrysnow/lstgx_Doc |
AddCSLuaFile()
module("voxel", package.seeall)
Models = Models or {}
-- Used for generating meshes
local vertices = {
Vector(-0.5, -0.5, -0.5),
Vector(0.5, -0.5, -0.5),
Vector(0.5, 0.5, -0.5),
Vector(-0.5, 0.5, -0.5),
Vector(-0.5, -0.5, 0.5),
Vector(0.5, -0.5, 0.5),
Vector(0.5, 0.5, 0.5),
Vector(-0.5, 0.5, 0... | 7,200 | TankNut/Voxel |
return {
description = 'Different coordinate spaces for nodes in a Model.',
values = {
{
name = 'local',
description = 'The coordinate space relative to the node\'s parent.'
},
{
name = 'global',
description = 'The coordinate space relative to the root node of the Model.'
}
... | 361 | jmiskovic/aquadeck |
local M = {}
local function distinctable(func, col, dist)
local content = dist and 'DISTINCT ' .. col or col
return ('%s(%s)'):format(func, content)
end
function M.max(col, dist) return distinctable('MAX', col, dist) end
function M.min(col, dist) return distinctable('MIN', col, dist) end
function M.avg(col, d... | 517 | xch91/lnex |
local M = {}
function M.colorize(highlights)
for key, value in pairs(highlights) do
vim.highlight.create(key, value, false)
end
end
function M.link(links)
for key, value in pairs(links) do
vim.highlight.link(key, value, false)
end
end
return M
| 263 | cesarsl/neo-hybrid.nvim |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.