content stringlengths 5 1.05M |
|---|
--[[
################################################################################
#
# Copyright (c) 2014-2019 Ultraschall (http://ultraschall.fm)
#
# 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 th... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 05.0... |
local Library = require "CoronaLibrary"
-- Create library
local lib = Library:new{ name = 'CoronaProvider.native.popup.quickLook', publisherId = 'com.coronalabs' }
-- native.showPopup
function lib.showPopup()
native.showAlert( 'Not Supported', 'The quickLook popup is currently not supported on this platform, please ... |
local Location = {
rootPath = "plugins.cyber_engine_tweaks.mods.cityhack."
}
function Location.ListAll()
local db = sqlite3.open(Location.rootPath.."main.db")
-- db:exec[[
-- CREATE TABLE test (id INTEGER PRIMARY KEY, content);
-- INSERT INTO test VALUES (NULL, 'Hello World');
-- ... |
--[[
KahLua KonferSK - a suicide kings loot distribution addon.
WWW: http://kahluamod.com/ksk
Git: https://github.com/kahluamods/konfersk
IRC: #KahLua on irc.freenode.net
E-mail: me@cruciformer.com
Please refer to the file LICENSE.txt for the Apache License, Version 2.0.
Copyright ... |
local realtime = {}
local json = require('json')
local gpgs = require('plugin.gpgs.v2')
local newButton = require('classes.button').newButton
local _W, _H = display.actualContentWidth, display.actualContentHeight
local _CX, _CY = display.contentCenterX, display.contentCenterY
function realtime:newPlayer(par... |
local dap = require('dap')
dap.adapters.cppdbg = {
id = 'cppdbg',
type = "executable",
command = os.getenv('HOME') .. '/.config/nvim/lua/user/dap/debugger/ms-vscode.cpptools-1.7.1/debugAdapters/bin/OpenDebugAD7',
}
dap.configurations.cpp = {
-- launch exe
{
name = "Launch file",
type = "cppdbg",
requ... |
-- TRT: Copy of request-transformer-advanced plugin
local multipart = require "multipart"
local cjson = require "cjson"
local pl_template = require "pl.template"
local pl_tablex = require "pl.tablex"
local jwt_decoder = require "kong.plugins.jwt.jwt_parser"
local table_insert = table.insert
local req_set_uri_args = ng... |
-- ======================================================================
-- Shuttle Search
-- Advent of Code 2020 Day 13 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- =======================... |
local asserts = require 'testing.asserts'
local PositionTrigger = require 'common.position_trigger'
local set = require 'common.set'
local test_runner = require 'testing.test_runner'
local tests = {}
local HAPPINESS_LAYER = [[
..LL.LL..
.L..L..L.
..L...L..
...L.L...
....L....
]]
local UNHAPPY_POSITION = {50, 50} -- ... |
------------------------------------------------------------------------
-- Animation Functions
------------------------------------------------------------------------
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
--Lua functions
local random, next, unpack, st... |
function GetBindingByKey(k)
end;
function SetBinding(keybind, action)
end;
function IsAltKeyDown()
end;
function IsControlKeyDown()
end;
function IsShiftKeyDown()
end;
|
local cmd ={}
function cmd.add( )
local a = 4772.22465
a=math.modf(a)
print("aaaa!!!!!!!!!!fsdfsdfaaadfdsf?"..a.." ")
end
function cmd.sub( )
end
return cmd |
-- Author: Lpsd (https://github.com/Lpsd/)
-- See the LICENSE file @ root directory
-- *******************************************************************
Event = inherit(Class)
-- *******************************************************************
function Event:constructor(eventName, allowRemoteTrigger)
self.na... |
local language = "korean";
local PLUGIN = PLUGIN;
PLUGIN:AddPluginLanguage("speed", "속도", language);
PLUGIN:AddPluginLanguage("stamina", "지구력", language);
PLUGIN:AddPluginLanguage("speed_desc", "얼마나 빠르게 뛸 수 있는지에 대한 능력치입니다.", language);
PLUGIN:AddPluginLanguage("stamina_desc", "얼마나 오래 뛸 수 있는지에 대한 능력치입니다.", language); |
---------------------------
-- Vendor Upgrade System --
---------------------------
local old_vendor_mods = string.split((minetest.setting_get("fancy_vend_old_vendor_mods") or ""), ",")
local old_vendor_mods_table = {}
for i in pairs(old_vendor_mods) do
old_vendor_mods_table[old_vendor_mods[i]] = true
end
local ba... |
-- Pikmin (NTSC v1.1)
local core = require("games.core")
local game = {
memorymap = {}
}
core.loadGenericControllerMap(0x8039D400, game)
return game |
TOOL.Base = "base_brush"
TOOL.Description = "Kill players on touch."
--------------------------------------------------------------------------------
TOOL.TextureColor = Color(255,0,0,200)
TOOL.TextureText = "Kill"
--------------------------------------------------------------------------------
function TOOL:EntS... |
local ADDON_NAME, Mod = ...
local MAX_ICON_INDEX = 8
local CLASS_MARKS = {
-- Stars
["ROGUE"] = 1,
["WARRIOR"] = 1,
-- Circles
["DRUID"] = 2,
-- Diamonds
["WARLOCK"] = 3,
["DEMONHUNTER"] = 3,
["PALADIN"] = 3,
-- Triangles
["MONK"] = 4,
["HUNTER"] = 4,
-- Moons
["... |
-- Wifi static setup
wifi.setmode(wifi.STATION)
ssid='MB'
password= '******'
station_cfg={}
station_cfg.ssid=ssid
station_cfg.pwd=password
station_cfg.save=true
wifi.sta.config(station_cfg)
wifi.sta.connect()
tmr.alarm(1,2000, 1, function()
if wifi.sta.getip()==nil then
print(" Wait for IP --> "..wifi.sta... |
WiFiLED = {}
node.compile("WiFiLED_ws2812.lua")
dofile("WiFiLED_ws2812.lc")
node.compile("WiFiLED_mqtt.lua")
dofile("WiFiLED_mqtt.lc")
---[[
node.compile("WiFiLED_webServer.lua")
dofile("WiFiLED_webServer.lc");--]]
--dofile("WiFiLED_webServer.lua");
node.compile("WiFiLED_endUserSetup.lua")
dofile("WiFiLED_endUserSetup... |
local ForceCamera = {
onfoot = 1,
invehicles = 4
}
-- types: (0)close (1)near (2)far (3) cinematic?? (4)first person
Citizen.CreateThread(function()
SetFollowPedCamViewMode(ForceCamera.onfoot)
SetFollowVehicleCamViewMode(ForceCamera.invehicles)
while true do
Citizen.Wait(0)
if NetworkIsPlayerActive... |
local __exports = LibStub:NewLibrary("ovale/Scripts", 10000)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local AceConfig = LibStub:GetLibrary("AceConfig-3.0", true)
local AceConfigDialog = LibStub:GetLibrary("AceConfigDialog-3.0", true)
local __Options = LibStub:GetLibrary("ova... |
--[[
Provides Elasticserach endpoint authorization based on rules in Lua and authenticated user
See the `nginx_authorize_by_lua.conf` for the Nginx config.
Synopsis:
$ /usr/local/openresty/nginx/sbin/nginx -p $PWD/nginx/ -c $PWD/nginx_authorize_by_lua.conf
$ curl -i -X HEAD 'http://localhost:8080'
HTTP/1.1 401 Una... |
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local packages = script.Parent.Parent
local Isotope = require(packages:WaitForChild("isotope"))
local math = require(packages:WaitForChild("math"))
local BoardFrame = {}
BoardFrame.__index = BoardFrame
setm... |
include("terms")
prime = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97}
dim = 10 --[[25]]--
deg = {}
stampa = 6
numbmin = 50
numbmax = 10000
number = 1
sum = 0
for i = 1,dim do
if (i < 5) then
max = 3
... |
FACTION.name = "Refugee"
FACTION.description = "A regular human citizen enslaved by the Universal Union."
FACTION.color = Color(150, 125, 100, 255)
FACTION.models = {
"models/willardnetworks/citizens/female_01.mdl",
"models/willardnetworks/citizens/female_02.mdl",
"models/willardnetworks/citizens/female_03.mdl",
"mode... |
---[[---------------------------------------]]---
-- logging - Doom Nvim logging system --
-- Author: NTBBloodbath --
-- License: MIT --
---[[---------------------------------------]]---
function Log_init()
if Doom.logging ~= 0 then
local today = os.dat... |
-- Set vim as local variable for lua diagnostics
local vim = vim
-- Create local variable to shorten keymapping commands
local map = vim.api.nvim_set_keymap
local opts = {noremap = true, silent = true}
-- Mappings
--Remap space as leader key
-- map("n", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocall... |
local c = require('cassiopeia.palette')
local Highlight = require('cassiopeia.utils').Highlight
local Link = require('cassiopeia.utils').Link
-- https://github.com/neoclide/coc.nvim
Link('CocCodeLens' , 'Gray' )
Link('CocErrorHighlight' , 'Gray' )
Link('CocErrorSign' ... |
-- type = github -- DO NOT REMOVE THIS LINE!
local name = "jcli"
local release = "v0.0.38"
local version = "0.0.38"
local org = "jenkins-zh"
local repo = "jenkins-cli"
local base_url = "https://github.com/" .. org .. "/" .. repo
food = {
name = name,
description = "Jenkins CLI allows you manage your Jenkins as... |
describe("Opening/reading tz files", function()
local tzfile = require "luatz.tzfile"
it("should be able to open a version 3 file", function()
-- The tz file for America/Godthab from 2015g
-- One of the smallest tzif3 files I have
tzfile.read_tzfile("spec/Godthab.tz")
end)
end)
|
print(type("Hello world"))
print(type(10.4*3))
print(type(1))
print(type(print))
print(type(true))
print(type(nil))
print(type(type(X)))
print(type(a)) -- nil ('a' is not initialized)
a = 10
print(type(a)) -- number
a = "a is a tring"
print(type(a)) -- string
a = print -- yes, this is valid!
print(type(a... |
local m = {}
math.randomseed( os.time() )
local random = math.random
local fmt = string.format
m.uuid = function( )
return string.gsub(
"aaabbaaa-aaaa-7aaa-baaa-abaaaaaaabaa",
'[ab]',
function( character )
return fmt( '%X', ( character == 'a' ) and random( 0, 0xf ) or random( 8, 0xb ) )
end
... |
local GridSector = require("core.module.view.GridSector");
local function Grid(width, height)
local grid = display.newGroup();
grid.sector_width = 100;
grid.sector_height = 100;
grid.sectors = {};
grid.hints = { row = {}, col = {} };
function grid:init(nonogram)
self.sector_width = width / nonogr... |
-- notify.lua -- Desktop notifications for mpv.
-- Just put this file into your ~/.mpv/lua folder and mpv will find it.
--
-- Copyright (c) 2014 Roland Hieber
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to de... |
require'gitsigns'.setup{
numhl = true
}
|
Locales['fr'] = {
['invoices'] = 'factures',
['invoices_item'] = '$%s',
['received_invoice'] = 'vous avez ~r~reçu~s~ une facture',
['paid_invoice'] = 'vous avez ~g~payé~s~ une facture de ~r~$%s~s~',
['received_payment'] = 'vous avez ~g~reçu~s~ un paiement de ~g~$%s~s~',
['player_not_online'] = 'le joueur n\... |
-- walkabout.lua
-- A slider-based sequencer
-- PolyPerc output - and MIDI
--
-- enc2 = select sequence #
-- enc3 = set step value
-- key2 = decrement step #
-- key3 = increment step #
--
-- key1 = hold for ALT
--
-- alt-enc1 = select setting
-- enc1 = change setting
--
-- sequencer values auto-saved
-- on select or sh... |
object_mobile_smuggler_broker_gotan = object_mobile_shared_smuggler_broker_gotan:new {
}
ObjectTemplates:addTemplate(object_mobile_smuggler_broker_gotan, "object/mobile/smuggler_broker_gotan.iff")
|
-- DieRoll
function setup()
--[[
The quat userdata isn't available until the GL state has been initialised so we can't extend it before setup.
This routine adds all the extensions to it now.
--]]
extendQuat()
viewer.mode = FULLSCREEN
--[[
This section defines a texture for the die. It ... |
function table_concat(t)
result = ""
for k, v in ipairs(t) do
result = result .. v
end
return result
end
print(table_concat({"hello", " ", "world"}))
|
--Start of Global Scope---------------------------------------------------------
local counter = 0
local SCAN_FILE_PATH = "resources/TestScenario.xml"
print("Input File: ", SCAN_FILE_PATH)
--------------------------------------------------------------------------------
-- Check device capabilities
assert(View,"View ... |
require "_Utils"
local common = require "_ConvCommon"
local types = require "_ConvCommonTypes"
local convert = require "_ConvCommonConvert"
return { test = "feature",
collate =
{
start = "features",
},
element =
{ name = "feature",
map_attribs =
{
name = "name",
api = "api",
com... |
--[[
单个信号
--]]
local single_signal = class("single_signal"){
name = "",
all_connect = {},
}
function single_signal:connect(object,conn_func_name)
local i = #self.all_connect + 1
local conn = {
object = object,
fname = conn_func_name,
index = i
}
table.insert(self.all... |
--[[-------------------------------------------------------------------------
Copyright (c) 2008, zork
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... |
local Native = require('lib.native.native')
---@class HeroAttribute
local HeroAttribute = {
Str = Native.ConvertHeroAttribute(1), --HERO_ATTRIBUTE_STR
Int = Native.ConvertHeroAttribute(2), --HERO_ATTRIBUTE_INT
Agi = Native.ConvertHeroAttribute(3), --HERO_ATTRIBUTE_AGI
}
return HeroAttribute
|
local lstage = require 'lstage'
local stage2=lstage.stage(
function(name)
local index = 0
for ix=0, 10000000 do
index = index + 1
end
print(name)
end,4)
local stage1=lstage.stage(
function(name)
local index = 0
for ix=0, 10000000 do
index = index + 1
end
stage2:push('s2')
end,4)
for i=1,1... |
include("terms")
... |
-- is there a parameter (http://flashair/?parameter=324) given?
if arg[1] then
--there is an argument given
else
--no argument given
end
|
object_draft_schematic_space_chassis_shared_blacksun_heavy_vaksai = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/space/chassis/shared_blacksun_heavy_vaksai.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_space_chassis_shared_blacksun_heavy_vaksai, "object/d... |
local function test1()
local function f()
return 1, 2, 3
end
local i, j, k = f()
return i + j + k == 6
end
local function test2()
local function f1()
return 2, 3
end
local function f2(a, b, c)
return a + b + c
end
local i, j = f2(1, f1())
return i == 6 a... |
-- Apartment 3: -609.56690000, 51.28212000, 96.60023000
exports('GetHLApartment3Object', function()
return HLApartment3
end)
HLApartment3 = {
interiorId = 146689,
Ipl = {
Interior = {
ipl = "mpbusiness_int_placement_interior_v_mp_apt_h_01_milo__2",
Load = function() EnableIpl... |
object_tangible_event_perk_life_day_tree_dressed = object_tangible_event_perk_shared_life_day_tree_dressed:new {
}
ObjectTemplates:addTemplate(object_tangible_event_perk_life_day_tree_dressed, "object/tangible/event_perk/life_day_tree_dressed.iff")
|
loaded = { internal=true }
disp = function(v)
return rawprint(dump(v))
end
|
require 'paths'
local M = { }
function M.parse(arg)
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Torch-7 Training script')
cmd:text()
cmd:text('Options:')
------------- General options ---------------------
cmd:option('-cache', 'checkpoint/', 'subdirectory in which to save/log experimen... |
HealthSystem = class(Xile.System)
local Health = Xile.Data.Health
function HealthSystem:init(removeEntity)
self:base().init(self)
removeEntity = removeEntity or function() end
local nodes = self:nodes(Asteroid,Health)
self.update = function(self,time)
local a
... |
function add(a, b)
return a + b;
end
return add(2, 3)
|
object_tangible_collection_meatlump_listening_location_object_04 = object_tangible_collection_shared_meatlump_listening_location_object_04:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_meatlump_listening_location_object_04, "object/tangible/collection/meatlump_listening_location... |
-- Copyright (C) 2011 - 2013 David Reid. See included LICENCE file.
function GTGUI.Element:LabelledCollisionGroupSelectorItem(name)
self.Label = GTGUI.Server.CreateElement(self, "labelled-collision-group-selector-item-label");
self.Cross = GTGUI.Server.CreateElement(self, "labelled-collision-group-selector-ite... |
--require 'torch'
local mytester
local torchtest = torch.TestSuite()
local msize = 100
local precision
-- Lua 5.2 compatibility
local loadstring = loadstring or load
local unpack = unpack or table.unpack
local function maxdiff(x,y)
local d = x-y
if x:type() == 'torch.DoubleTensor' or x:type() == 'torch.FloatTe... |
local skynet = require "skynet"
local libdb = require "libdbproxy"
local libcenter = require "libcenter"
local libagentpool = require "libwsagentpool"
local faci = require "faci.module"
local key_seq = 1
local module = faci.get_module("login")
local dispatch = module.dispatch
local forward = module.forward
local ev... |
local serverstockvalues = {
[1] = { ["name"] = "Pixerium Coin", ["value"] = 0.0, ["identifier"] = "CRYPIX", ["lastchange"] = 0.00, ["amountavailable"] = 0.0 },
[2] = { ["name"] = "Ammunation", ["value"] = 1000.0, ["identifier"] = "STRAMM", ["lastchange"] = 0.00, ["amountavailable"] = 100.0 },
[3] = { ["name"] = "... |
local _, ns = ...
local C = ns.C
C["skins"] = {
details = {
enabled = true,
barHeight = 18,
barSpacing = 1,
barsToDisplayMax = 7,
width = 250,
point = "BOTTOMRIGHT",
}
}
|
local CardWidth = 38
local CardHeight = 61
local function checkCollision(x1,y1,w1,h1, x2,y2,w2,h2)
return x1 < x2+w2 and
x2 < x1+w1 and
y1 < y2+h2 and
y2 < y1+h1
end
local function ReverseTable(t)
local reversedTable = {}
local itemCount = #t
for k, v in ipairs(t) do
reversedTable[itemCount... |
hook.Add("RPGM.RegisterCommands", "RPGM.NearbyCommands", function()
local lang = gmodI18n.getAddon("rpgm")
local yellPrefix = RPGM.Config.PrefixStartChar .. lang:getString("yellPrefix") .. RPGM.Config.PrefixEndChar
local whisperPrefix = RPGM.Config.PrefixStartChar .. lang:getString("whisperPrefix") .. RPG... |
-- Preload Modules
require("cjson")
require("resty.sha224")
require("resty.string")
require("config") -- local config
|
-- https://github.com/tarantool/tarantool/issues/6436 Foreign keys
local server = require('test.luatest_helpers.server')
local t = require('luatest')
local g = t.group('gh-6436-foreign-key-test', {{engine = 'memtx'}, {engine = 'vinyl'}})
g.before_all(function(cg)
cg.server = server:new({alias = 'master'})
cg.s... |
-- https://github.com/dot123
-- 节点工具
-- start --
--------------------------------
-- 按tag查找布局中的结点
-- @function seekNodeByTag
-- @param node parent 要查找布局的结点
-- @param number tag 要查找的tag
-- @return node
-- end --
function seekNodeByTag(parent, tag)
if not parent then
return
end
if tag == parent:g... |
slot0 = class("BackYardThemeTemplateMsgBox", import("....base.BaseSubView"))
slot0.TYPE_TEXT = 1
slot0.TYPE_IMAGE = 2
slot0.getUIName = function (slot0)
return "BackYardThemeTemplateMsgBox"
end
slot0.OnLoaded = function (slot0)
slot0.frame = slot0:findTF("frame/window1")
slot0.content = slot0:findTF("frame/window1... |
local a = vim.api
_G.a = vim.api
tema = a.nvim_create_namespace("temazo")
a.nvim__theme_def(tema, "EndOfBuffer", {background=1234})
a.nvim__theme_def(tema, "Statement", {background=100000, foreground=1234})
function thema_provide(_, ns_id, name)
if name == "Identifier" then
return {foreground=255*256}
end
end... |
Background=Class()
local UPPER_BG_SCALE,LOWER_BG_SCALE=.3,.25
local BACKGROUND_WIDTH=gImages['good_world']:getWidth()*.5
local UPPER_BG_HEIGHT=gImages['good_world']:getHeight()*UPPER_BG_SCALE
local LOWER_BG_HEIGHT=gImages['good_world']:getHeight()*LOWER_BG_SCALE
local BACKGROUND_SCROLL=0
function Background:init()
s... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
local spd, ent
function ENT:Initialize()
self:SetModel("models/Items/AR2_Grenade.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetCollisionGroup(COLLISION_GROUP_NONE)
loc... |
module(..., package.seeall)
local native = require "tundra.native"
function apply(env, options)
-- load the generic C toolset first
tundra.unitgen.load_toolset("generic-cpp", env)
-- Also add assembly support.
tundra.unitgen.load_toolset("generic-asm", env)
local vbcc_root = assert(native.getenv("VBCC"), "... |
TechBuilding = {
npc_trollsandelves_rock_1 = true
} --what is this doing here
if TrollsAndElvesGameMode == nil then
TrollsAndElvesGameMode = {}
TrollsAndElvesGameMode.__index = TrollsAndElvesGameMode
end
function TrollsAndElvesGameMode:new (o)
o = o or {}
setmetatable(o, self)
TROLLSANDELVES_... |
-- Available functions (from XLSFormater Class)
-- SetProgressCalcul1ValueForLua(int val)
-- SetProgressCalcul2ValueForLua(int val)
-- IsAppendOnCurrentExcelFile()
-- Fonction pour manipulation excel
-- first row and first col = 0
-- void OpenExcelApp(bool NewAppIfNot)
-- void OpenXlsFile(string fPath)
-- void ... |
if SERVER then
AddCSLuaFile("dronesrewrite/main.lua")
end
include("dronesrewrite/main.lua") |
local FORMNAME = "epic_savegame_load"
-- playername -> id
local player_selections = {}
minetest.register_on_leaveplayer(function(player)
local playername = player:get_player_name()
player_selections[playername] = nil
end)
epic.form.epic_savegame_load = function(topic, playername)
local savegame = epic.savegame.l... |
local QuestID = 9
local Quest = Quests[QuestID]
Quest.Texts = {
["Accepted"] = "Sammel 50 Pfandflaschen und gebe sie dem Obdachlosen!",
["Finished"] = "Kehre zum Obdachlosen zur\\ueck!"
}
for k,v in ipairs(Quest:getPeds(2)) do
addEventHandler("onElementClicked", v,
function(button, state, thePlayer)
if (butto... |
local base = require 'hj212.client.handler.base'
local handler = base:subclass('hj212.client.handler.rdata_start')
function handler:process(request)
self:log('info', "Enable RData upload!")
self._client:set_rdata_enable(true)
return true
end
return handler
|
--!strict
local store = require(script.Parent.store)
type IStore<State, Dispatch> = store.IStore<State, Dispatch>
type IDispatch<Store> = store.IDispatch<Store>
export type IThunkAction<ReturnType, Store> = (store: Store) -> ReturnType
export type ThunkAction<ReturnType, State = any> = IThunkAction<ReturnType, Thunkf... |
--[[ ============================================================ ]]--
--[[ | FIVEM ESX DELIVERY PLUGIN REMAKE BY AKKARIIN | ]]--
--[[ ============================================================ ]]--
Config = {}
-- Locales
Config.Locale = 'en'
-- Delivery Base Location
Config.Base = {
-- Blip coords
c... |
require('gitsigns').setup {
-- signs config
current_line_blame = true,
current_line_blame_opts = {
virt_text_pos = 'right_align'
}
}
|
term.clear()
term.setCursorPos(1,1)
io.write("Welcome to ruiz's quarry program!")
term.setCursorPos(1,2)
width = 10
tmpWidth = width
term.setCursorPos(1,3)
height = 3
coords = {gps.locate()}
posX = coords[1]
tmpPosX = posX
posY = coords[2]
posZ = coords[3]
tmpPosZ = posZ
facing = 1
valuables = {"minecraft:gold_ore","... |
--[[ Lua code. See documentation: https://api.tabletopsimulator.com/ --]]
-- #include ambulator
local target = 'http://localhost:3000'
local numTries = 0
local waitSeconds = { 5, 10 }
function tryGetScript()
WebRequest.get(target .. '/ambulator', handleResult)
end
function handleResult(data)
if data.is_error =... |
-- Copyright: 2015-2020, Björn Ståhl
-- License: 3-Clause BSD
-- Reference: http://durden.arcan-fe.com
-- Description: Main setup for the Arcan/Durden desktop environment
-- Global used to track input events that should be aligned to clock
-- tick for rate-limit and timing purposes
EVENT_SYNCH = {};
local update_defa... |
if mods["nixie-tubes"]then
table.insert(data.raw.technology["circuit-network"].effects,{type = "unlock-recipe", recipe = "nixie-tube"})
table.insert(data.raw.technology["circuit-network"].effects,{type = "unlock-recipe", recipe = "nixie-tube-alpha"})
table.insert(data.raw.technology["circuit-network"].effects,{type ... |
help(
[[
This module loads PARI 2.7.5
PARI/GP is a widely used computer algebra system designed for fast computations
in number theory (factorizations, algebraic number theory, elliptic curves...),
but also contains a large number of other useful functions to compute with
mathematical entities such as matrices, polyno... |
local GameServerItem = class("GameServerItem")
function GameServerItem:ctor(pData)
self.wKindID =0
self.wNodeID =0
self.wSortID =0
self.wServerID =0
self.wServerKind =0
self.wServerType =0
self.wServerLevel =0
self.wServerPort =0
s... |
local TrailParticle = GameObject:extend()
function TrailParticle:new(zone, x, y, opts)
TrailParticle.super.new(self, zone, x, y, opts)
self.color = opts.color or skill_point_color
self.depth = 75
self.r = opts.r or random(4, 6)
self.timer:tween(opts.d or random(0.3, 0.5), self, {r = 0}, 'linear', function(... |
require "lua/tools"
local filename = tmpdir .. "/lualept.png"
local filename2 = tmpdir .. "/lualept-mask.tif"
local filename3 = tmpdir .. "/lualept-masked.png"
local image1 = images .. '/lualept.jpg'
header("Pix2")
local pix = Pix(image1)
print (pad("pix"), pix)
pix:View()
local ok = pix:Write(filename, 'png')
print ... |
-------------------------------------------------------------------------------
-- Find functions
-------------------------------------------------------------------------------
--- Find library. Finds entities in various shapes.
-- @shared
local find_library, _ = SF.Libraries.Register("find")
-- Register privileges
... |
-- A project defines one build target
project "bzip2"
--kind "WindowedApp"
--kind "ConsoleApp"
--kind "SharedLib"
kind "StaticLib"
language "C++"
files {
"blocksort.c",
"bzcompress.c",
"bzlib.c",
"bzlib.h",
"bzlib_private.h",
"crctable.c",
"decompress.c",
"huffman.c",
"randtable.c",... |
local args = { ... }
if ccemux then
local function help()
print("Usages:")
print("emu close - close this computer")
print("emu open [id] - open another computer")
print("emu data [id] - opens the data folder")
print("emu config - opens the config editor")
print("Run ... |
local L = (...)
return {
new = function(self, whack)
self.whack = whack
return self
end,
keypressed = function(self, key)
if (key == "f11") then
love.window.setFullscreen(not love.window.getFullscreen())
elseif (key == "f2") then
love.graphics.newScreenshot(true):encode(os.time() .. ".png")
end
en... |
--[[
class_name = {}
function class(cname)
return function(base)
if type(base) == 'string' then
base = _G[base]
return function(body)
_G[cname] = define_class(base, body)
class_name[_G[cname] ] = cname
end
elseif class_name[base] then
return function(body)
_G[cname] = define_class(base, bo... |
local questions =
{
[1] = {"In which year did the US get its independence?", {"1776"}},
[2] = {"Who is the current president of the US?", {"Trump", "Donald Trump", "Donald J.Trump", "Donald"}},
[3] = {"What luxury British automobile brand was purchased by by Tata motors in 2008?", {"Jaguar"}},
[4] = {"The companie... |
--[[
# torch-hdf5
Torch support for the HDF5 Hierarchical Data Format.
This format is fast and flexible, and is used by many scientific applications (Matlab, R, Python, etc)
]]
local torch = require 'torch'
hdf5 = {}
local function log(msg)
local info = debug.getinfo(1, "Sl")
print(table.concat{info.short... |
local S = farming.intllib
-- blackberries seed
minetest.register_node("hades_extrafarming:seed_blackberry", {
description = S("Blackberries Seed"),
tiles = {"farming_blackberry_seed.png"},
inventory_image = "farming_blackberry_seed.png",
wield_image = "farming_blackberry_seed.png",
drawtype = "signlike",
groups... |
-- buckets_api/init.lua
-- Load support for Minebase translation.
local S = minetest.get_translator("buckets_api")
minetest.register_craft({
output = "buckets_api:bucket_empty 1",
recipe = {
{"base_ores:steel_ingot", "", "base_ores:steel_ingot"},
{"", "base_ores:steel_ingot", ""},
}
})
buckets = {}
buckets.l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.