content stringlengths 5 1.05M |
|---|
require 'objects/squareButton'
require 'states/maingame/player'
maingame_UI = {}
local bigFont
local xScale
local pausedButton, continueButton, quitButton, restartButton, failedButton
function maingame_UI:load()
bigFont = love.graphics.newFont("assets/roboto.ttf", 92)
xbar = 0
isEnabledUI = true
failedButto... |
-- dumps the header
local image = require "image"
local os = require "al2o3.os"
local string = require "string"
local table = require "table"
local test, okay = image.load("artifacts/fmtcheck_R8_SRGB_16x16.ktx")
if okay == false then
print("failed to to load the image")
goto continue
end
local w, h, d, s = te... |
-- GlassDebug - Client Script
-- Written 2015 by Tobias Maedel (t.maedel@alfeld.de)
-- Thanks to @TobleMiner
-- Licensed under MIT
local Key
local Receiver = nil
local Prefix = nil
function open (side, key, id, prefix)
if (not rednet.isOpen(side)) then
rednet.open(side)
end
Key = key
Receiver = ... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... |
require('polyglossia') -- just in case...
local add_to_callback = luatexbase.add_to_callback
local remove_from_callback = luatexbase.remove_from_callback
local priority_in_callback = luatexbase.priority_in_callback
local next, type = next, type
local nodes, fonts, node = nodes, fonts, node
local nodecodes ... |
local Path = require("plenary.path")
local jobs = require("worktrees.jobs")
local status = require("worktrees.status")
local M = {}
-- Setup string splitting
function string:split_string(sep)
local fields = {}
local pattern = string.format("([^%s]+)", sep)
local _ = self:gsub(pattern, function(c)
... |
local PANEL = {}
function PANEL:Init()
self.category = "other"
self:TDLib()
:HideVBar()
end
function PANEL:SetCategory(name)
self.category = name
end
local function formatTime(time)
time = time * 60
//local mo = math.floor(time/2592000)
local d = math.floor(time/86400)
local h = math.floor(math.fmod(time, 8... |
a = 10
repeat
print("value of a:", a)
a = a + 1
until( a > 15 )
|
--[[
Name: Astrolabe
Author(s): Esamynn (esamynn at wowinterface.com)
Inspired By: Gatherer by Norganna
MapLibrary by Kristofer Karlsson (krka at kth.se)
Documentation: http://wiki.esamynn.org/Astrolabe
SVN: http://svn.esamynn.org/astrolabe/
Description:
This is a library for the World of Warcraft UI syst... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for DrScoreBadger
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
------------------... |
--[[Author: YOLOSPAGHETTI
Date: February 16, 2016
Draws all unit models, places them in random positions in the aoe, and creates the doppelganger illusions]]
function DoppelgangerEnd( event )
local caster = event.caster
local target = event.target
local ability = event.ability
local radius = ability:GetLevelSpec... |
local Pvector = require('./Pvector')
local Block = {}
Block.__index = Block
function Block.new()
local r = {}
setmetatable(r, Block)
r.height = 50
r.width = 10
r.location = Pvector.new(width + 5, height / 2 - r.height)
return r
end
function Block:draw()
love.graphic... |
classtools = require 'classtools'
local Vector = {}
function Vector:constructor(x, y)
self[0] = x or 0
self[1] = y or 0
if self[0] == 0 and self[1] ~= 0 then
self.direction_index = 1
elseif self[1] == 0 and self[0] ~= 0 then
self.direction_index = 0
end
end
function Vector:direction()
return self[s... |
help(
[[
This module loads unixODBC 2.3.2
The unixODBC Project goals are to develop and promote unixODBC to be the
definitive standard for ODBC on non MS Windows platforms.
]])
whatis("Loads unixODBC libraries")
local version = "2.3.2"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/unixodbc/"..version
... |
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local FORMATTING = methods.internal.FORMATTING
return h.make_builtin({
name = "zprint",
meta = {
url = "https://github.com/kkinnear/zprint",
description = "Beautifully format Clojure and Clojurescript source code a... |
--[[ CooL( Corona Object-Oriented Lua )
https://github.com/dejayc/CooL
Copyright 2011 Dejay Clayton
All use of this file must comply with the Apache License,
Version 2.0, under which this file is licensed:
http://www.apache.org/licenses/LICENSE-2.0 --]]
--[[
---------------------------------... |
-----------------------------------
-- Area: Caedarva Mire
-- NPC: qm9
-- Involved in quest: The Wayward Automation
-- !pos 129 1.396 -631 79
-----------------------------------
local ID = require("scripts/zones/Caedarva_Mire/IDs")
require("scripts/globals/quests")
function onTrade(player, npc, trade)
end
function ... |
-- ============================================================================
--
-- Particle Client
-- Handler functions for particle effects on player
--
-- ============================================================================
-- ===================================================================... |
local ffi = require("ffi")
ffi.cdef[[
void REQUEST_get_header_value( const char *data, const char *requested_value_name, char *dst, const unsigned int dst_len );
int WEBSOCKET_generate_handshake( const char *data, char *dst, const unsigned int dst_len );
int WEBSOCKET_set_content( const char *data, int64_t dat... |
return {
unlock_equip = 10,
unlock_hero = 20,
default_avatar = "Assets/Icon/DefaultAvatar.png",
default_item = "Assets/Icon/DefaultAvatar.png",
} |
-- From sdl :)
keycodes = {
KEY_UNKNOWN = 0,
KEY_A = 4,
KEY_B = 5,
KEY_C = 6,
KEY_D = 7,
KEY_E = 8,
KEY_F = 9,
KEY_G = 10,
KEY_H = 11,
KEY_I = 12,
KEY_J = 13,
KEY_K = 14,
KEY_L = 15,
KEY_M = 16,
KEY_N = 17,
KEY_O = 18,
KEY_P = 19,
KEY_Q = 20,
KEY_R = 21,
KEY_S = 22,
KEY_T = 23,
KEY_U = 24,
KEY_V... |
if SERVER then
util.AddNetworkString("impulseOpsViewInv")
util.AddNetworkString("impulseOpsRemoveInv")
net.Receive("impulseOpsRemoveInv", function(len, ply)
if not ply:IsAdmin() then return end
local targ = net.ReadUInt(8)
local invSize = net.ReadUInt(16)
targ = Entity(targ)
if not IsValid(targ) then re... |
--- LuaDist package specific functions
-- Peter Drahoš, Peter Kapec, LuaDist Project, 2010
--- Package handling functions.
-- This module deals with packages, these are unpacked dists in LuaDist terminology
-- The following functions are provided:
-- unpack - fetch and unpack a dist
-- build - compile a source dist
--... |
local gridSpacing -- Should be a setting
local leadingFor = function(this, vbox, previous)
if not this.frame.state.totals.gridCursor then this.frame.state.totals.gridCursor = 0 end
if not previous then
return SILE.nodefactory.newVglue({height = SILE.length.new()});
end
this.frame.state.totals.gridCursor =... |
pg = pg or {}
pg.enemy_data_statistics_375 = {
[212009] = {
cannon = 11,
reload = 150,
speed_growth = 0,
cannon_growth = 864,
pilot_ai_template_id = 10001,
air = 0,
base = 182,
dodge = 16,
durability_growth = 47260,
antiaircraft = 50,
speed = 24,
reload_growth = 0,
dodge_growth = 200,
luck ... |
math.randomseed(os.time())
local f = assert(io.open("dataset2.txt", "w"))
local n = 200
local maxW = math.random(1, 10^9)
f:write(string.format("%d %d\n", n, maxW))
for i = 1, n do
local vi = math.random(1, 10^9)
local wi = math.random(1, 1000)
f:write(string.format("%d %d\n", vi, wi))
end
f:close()
local f = a... |
--[[
lrc4 - Native Lua/LuaJIT RC4 stream cipher library - https://github.com/CheyiLin/lrc4
The MIT License (MIT)
Copyright (c) 2015-2021 Cheyi Lin <cheyi.lin@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... |
local objChinaGate = createObject(986, 2566.45, 1822, 11, 0, 0, 180)
exports.pool:allocateElement(objChinaGate)
local objChinaGate2 = createObject(986, 2566.45, 1826, 11, 0, 0, 180)
exports.pool:allocateElement(objChinaGate2)
local objChinaFence = createObject( 987, 2544.3037109375, 1845.4, 9.5, 0, 0, 270)
exp... |
local lsok, ls = pcall(require, "luasnip")
if not lsok then
vim.notify("Unable to require luasnip")
return
end
local lsvsok, lsvscode = pcall(require, "luasnip.loaders.from_vscode")
if not lsvsok then
vim.notify("Unable to require luasnip.loaders.from_vscode")
return
end
local lsloadok, lsloader = pca... |
----------------------------------------------------------------------------------------------------
--
-- 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... |
--[[
MIT License
Copyright (c) 2021 Michael Wiesendanger
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, mod... |
local sti = require "lib.sti"
local bump = require "lib.bump"
local bump_debug = require "lib.bump_debug"
function setupMap(m)
map = sti(m,{"bump"})
world = bump.newWorld(32)
map:bump_init(world)
speedx = 0
speedy = 0
inEncounter = false
local layer = map:addCustomLayer("spritesRender", #map.lay... |
local nmap = require "nmap"
local string = require "string"
local shortport = require "shortport"
local vulns = require "vulns"
-- NSE Buffer Overflow vulnerability in IIS
---
-- @usage
-- ./nmap iis-buffer-overflow <target>
--
-- @output
-- PORT STATE SERVICE
-- 80/tcp open http
-- | iis-buffer-overflow:
-- | ... |
return
{
name="Erosion",
description="Erode heightmap.",
options=
{
{name="Power", type="value", value=0.3},
{name="Iterations", type="value", value=1},
{name="Use Mask 0?", type="flag", value=false},
{name="Invert Mask 0?", type="flag", value=false},
{name="Use Mask 1?", type="flag", value=false},
{nam... |
return {
{vkey = 0x1b, frame = {x=4.00, y=6.00, width=40.00, height=40.00}, caption="Esc"};
{vkey = 0x70, frame = {x=84.00, y=6.00, width=40.00, height=40.00}, caption="F1"};
{vkey = 0x71, frame = {x=124.00, y=6.00, width=40.00, height=40.00}, caption="F2"};
{vkey = 0x72, frame = {x=164.00, y=6.00, width=40.00, hei... |
---
--- ColaFramework框架事件管理中心
---
local EventMgr = Class("EventMgr")
local bit = require "bit"
--实例对象
local _instance = nil
-- 获取单例接口
function EventMgr:Instance()
if _instance == nil then
_instance = EventMgr:new()
end
return _instance
end
-- override 初始化各种数据
function EventMgr:initialize()
-... |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'eCamMode'
shared.requi... |
return
{
["id"]=10010,
["name"]="寻路测试",
["groupName"]="Demo测试关卡",
["playStartAnimation"]=true,
["sceneName"]="Demo03.unity",
["sceneFile"]="Assets/Scenes/Demo03.unity",
["desc"]="",
["borns"]={
[1]={
["uid"]="22898b4549bc4acdb8e7222442c3d893",
["transform"]=
{
["id"]=0,
["name"]="",
["pos... |
function data()
return {
info = {
minorVersion = 1,
severityAdd = "NONE",
severityRemove = "NONE",
name = _("City roads with 0 height sidewalks"),
description = _("City roads with 0 height sidewalks"),
tags = { "street", "road"},
visible = true,
authors = {
... |
--[[
--=====================================================================================================--
Script Name: Melee, for SAPP (PC & CE)
Description: Custom Melee game
Copyright (c) 2016-2020, Jericho Crosby <jericho.crosby227@gmail.com>
* Notice: You can use this document subject to the following conditi... |
---------------------------------------------------------------------------------------------------
-- User story: Smoke
-- Use case: RegisterAppInterface
-- Item: Happy path
--
-- Requirement summary:
-- [RegisterAppInterface] SUCCESS: getting SUCCESS:RegisterAppInterface() during reregistration
--
-- Description:
-- ... |
--
-- $(Class) class.
--
-- @filename $(Class).lua
-- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved.
-- @license The MIT License (MIT)
-- @author Yaukey yaukeywang@gmail.com
-- @date 2016-xx-xx
--
local DLog = YwDebug.Log
local DLogWarn = YwDebug.LogWar... |
render = function(delta)
return 0
end |
dna = LibStub("AceAddon-3.0"):NewAddon("dna","AceConsole-3.0","AceEvent-3.0","AceTimer-3.0","AceComm-3.0","AceHook-3.0")
dna.lib_acegui = LibStub("AceGUI-3.0")
--dna.LibSimcraftParser = LibStub("LibSimcraftParser")
dna.D = {} -- General data table to hold stuff
dna.ui = {} ... |
local bump3dpd = require 'bump-3dpd'
local seed = os.time()
print('Seeding RNG with: ' .. seed)
math.randomseed(seed)
io.stdout:setvbuf("no") -- Enable console output.
local isDrawConsole = false
local collisionsThisTick = 0
local world = bump3dpd.newWorld()
local playerHeight = 25
local player = {
name = 'play... |
c = require("component")
Rep = c.repulsor
Io = c.redstone
Rep.recalibrate(0)
Rep.setForce(-1)
Rep.setRadius(4)
Rep.setWhitelist(false)
--Rep.setVector(1, 1, 0)
while true do
r = Io.getInput(1)
if r > 7 then
for _=1, 10 do
Rep.pulse(0,0,0)
end
end
os.sleep(0.3)
end |
-- Author: Lpsd (https://github.com/Lpsd/)
-- See the LICENSE file @ root directory
-- *******************************************************************
FontManager = inherit(Singleton)
-- *******************************************************************
function FontManager:constructor()
self.fonts = {}
... |
local ok, onedarkpro = pcall(require, "onedarkpro")
if not ok then
return
end
-- local name_colorscheme = function ()
-- if O.default.theme == "onedarkpro-light" then
--
-- -- body
-- end
local name_colorscheme = {
["onedarkpro-light"] = "onelight",
["onedarkpro-dark"] = "onedark",
}
onedarkpro.setup ... |
--[[
File Name : Utils.lua
Created By : tubiakou
Creation Date : [2019-01-07 01:28]
Last Modified : [2019-02-11 00:56]
Description : General / miscellaneous utilities for the WoW addon 'AllFriends'
--]]
-- WoW API treats LUA modules a... |
local people = require("people")
local util = require("util")
local fonts = require("fonts")
local timer = require("hump.timer")
local colors = require("colors")
local index = 1
local totalTime = 0
local stencilRect = nil
local indexRect = nil
local textoff = {
x = 0,
y = 0
}
local textpos = {
x = 15,
y... |
file = io.open("ms0:/PSP/GAME/PMN/fonts/font.txt","r")
font_name = file:read()
file:close()
font = Font.load("ms0:/PSP/GAME/PMN/fonts/"..font_name)
font:setPixelSizes(95,110)
file = io.open("ms0:/PSP/GAME/PMN/NAME.TXT", "r")
name = file:read()
file:close()
--Setting Variables
x=100
y=100
t=1
pos=1
Text = {}
Text[1]=... |
Spriteset_Hud = Object:extend("Spriteset_Hud")
function Spriteset_Hud.prototype:constructor()
self._hp = Assets.graphics.hud.hp_bar
self._hpBar = Assets.graphics.hud.hp_bar_fill
self._light = Assets.graphics.hud.light_bar
self._lightBar = Assets.graphics.hud.light_bar_fill
local w, h = self._hpBar:getDimensi... |
local ffi = require "ffi"
local StreamOps = require("StreamOps")
local MemoryBlock = {}
setmetatable(MemoryBlock, {
__call = function(self, ...)
return self:create(...);
end,
})
local MemoryBlock_mt = {
__index = MemoryBlock;
}
function MemoryBlock.init(self, buff, bufflen, offset, byteswritten)
if not buff t... |
local resty_sha256 = require "resty.sha256"
local str = require "resty.string"
local sha256_bytes = function(input)
local sha256 = resty_sha256:new()
sha256:update(input)
return sha256:final()
end
local sha256_hex = function(input)
local r = sha256_bytes(input)
return str.to_hex(r)
end
return {
sha256_bi... |
return PlaceObj("ModDef", {
"title", "Remove SupplyPod Limit",
"id", "ChoGGi_RemoveSupplyPodLimit",
"steam_id", "2037219360",
"pops_any_uuid", "b13bcfad-df78-47f5-8834-c991e2d25a86",
"lua_revision", 1007000, -- Picard
"version", 3,
"version_major", 0,
"version_minor", 3,
"image", "Preview.jpg",
"author", "Cho... |
local ComponentBase = cc.import(".ComponentBase")
local EditBoxComponent = cc.class("cc.EditBox", ComponentBase)
local ccrect = cc.rect
local EditBox = ccui.EditBox or cc.EditBox
local Scale9Sprite = ccui.Scale9Sprite or cc.Scale9Sprite
function EditBoxComponent:ctor(asset, assets)
EditBoxComponent.super.ctor(se... |
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local _M = {}
local _K = require("Application")
--
-- local allAudios = {}
--
function _M:localPos(UI)
if {{atype}}.{{aname}} == nil then
{{#alang}}
{{atype}}.{{aname}} = audio.{{loadType}}( _K.audio... |
--- Tweens color3s by HSV
-- @classmod Color3PropertyTweener
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Spring = require("Spring")
local Color3PropertyTweener = {}
Color3PropertyTweener.ClassName = "Color3PropertyTweener"
Color3PropertyTweener.__index = Color3Proper... |
object_building_kashyyyk_mun_kash_signpost_refined_s01 = object_building_kashyyyk_shared_mun_kash_signpost_refined_s01:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_mun_kash_signpost_refined_s01, "object/building/kashyyyk/mun_kash_signpost_refined_s01.iff")
|
local M = {}
M.MSG_SHOW = hash("show")
M.MSG_BACK = hash("back")
M.MSG_CLEAR_STACK = hash("clear_stack")
M.MSG_INIT = hash("init")
M.MSG_DISABLE = hash("disable")
M.MSG_ENABLE = hash("enable")
M.MSG_FINAL = hash("final")
M.MSG_UNLOAD = hash("unload")
M.MSG_PROXY_LOADED = hash("proxy_loaded")
M.MSG_RELEASE_INPUT= has... |
-- ------------------------------------------------------------------
-- Caffeine Replacement - Keep display awake when caffeine is active.
-- ------------------------------------------------------------------
local caffeine = hs.menubar.new()
function setCaffeineDisplay(state)
if state then
caffeine:setI... |
--
-- astar.lua
-- lua-astar
--
-- Based on John Eriksson's Python A* implementation.
-- http://www.pygame.org/project-AStar-195-.html
--
-- Created by Jay Roberts on 2011-01-08.
-- Copyright 2011 Jay Roberts All rights reserved.
--
-- Licensed under the MIT License
--
-- Permission is hereby granted, free ... |
if not modules then modules = { } end modules ['good-ini'] = {
version = 1.000,
comment = "companion to font-lib.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- depends on ctx
loca... |
faceless_void_time_lock_oaa = class( AbilityBaseClass )
LinkLuaModifier( "modifier_faceless_void_time_lock_oaa", "abilities/oaa_time_lock.lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function faceless_void_time_lock_oaa:GetIntrinsicModifierName()
... |
-- -------------------------------------------------------------------------------------
-- Including Standard Awesome Libraries
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local naughty = require("naughty")
local beautiful = require("beautiful").startscreen.webcam
-- ... |
local format = string.format
local function printf(fmt, ...)
print(format(fmt, ...))
end
local name = "Ciccio"
printf("Ciao %s, come stai ?", name)
local a, b = 3.25, 225
printf("Some numbers, float: %g, integer: %i", a, b)
|
#!/usr/bin/env lua
--------------------------------------------------------------------------------
-- @script OiL Interface Repository Daemon
-- @version 1.2
-- @author Renato Maia <maia@tecgraf.puc-rio.br>
--
print("OiL Interface Repository 1.2 Copyright (C) 2005-2008 Tecgraf, PUC-Rio")
local _G = require "_G"
lo... |
local function send_json(channel, data)
data = game.table_to_json(data)
print("\f$ipc:" .. channel .. "?j" .. data)
end
script.on_init(function()
send_json("mod_list", game.active_mods)
end)
|
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPserver = Tunnel.getInterface("vRP")
Passos = Tunnel.getInterface("vrp_interacao")
vRPmenu_ = {}
Tunnel.bindInterface("vrp_interacao", vRPmenu_)
Proxy.addInterface("vrp_interacao", vRPmenu_)
-- Criado p... |
local button = {}
button.__index = button
button._version = "0.7.0"
local ORIGIN = {x = 0, y = 0}
local lg = love.graphics
-- run at bottom of main update function
-------------------------------------------
-------------Local Functions---------------
-------------------------------------------
local... |
function rm_Heal(player)
local maxHealth = player:GetNumber("max_health")
local diffHealth = maxHealth - player:GetHealth()
if (diffHealth > 0) then
player:SendMessage("Healed " .. (diffHealth * 2) .. " HP")
player:SetHealth(player:GetNumber("max_health"))
end
end
function rm_SetSpawn(player)
for i=1,KAG.GetB... |
local dragging = false;
function onInit()
-- determine if node is static
if window.getDatabaseNode().isStatic() then
setVisible(false);
return
end
-- set the hover cursor
setHoverCursor("hand");
end
function onDragStart(button, x, y, draginfo)
dragging = false;
return onDrag(button, ... |
object_tangible_loot_creature_loot_collections_space_reactor_mark_04_koensayr = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_04_koensayr:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_04_koensayr, "object/tangible/loot/creature/loot/co... |
local BinarizedNeurons,parent = torch.class('BinarizedNeurons', 'nn.Module')
function BinarizedNeurons:__init(stcFlag)
parent.__init(self)
self.stcFlag = stcFlag
self.randmat=torch.Tensor();
self.outputR=torch.Tensor();
end
function BinarizedNeurons:updateOutput(input)
self.randmat:resizeAs(input);
... |
-------------------------------------------------------------------------------
-- Spine Runtimes Software License v2.5
--
-- Copyright (c) 2013-2016, Esoteric Software
-- All rights reserved.
--
-- You are granted a perpetual, non-exclusive, non-sublicensable, and
-- non-transferable license to use, install, ex... |
project "stb_vorbis"
uuid "E0D81662-85EF-4172-B0D8-F8DCFF712607"
language "C"
location ( "../../build/" .. mpt_projectpathname .. "/ext" )
mpt_projectname = "stb_vorbis"
dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
dofile "../../build/premake/premake-defaults.lua"
dofile "../../build/premak... |
local GPIO = require('periphery').GPIO
local gpioswitch = {}
gpioswitch.__index = gpioswitch
setmetatable(gpioswitch, {__call = function(self, ...) return self.new(...) end})
-- xor for boolean type
local function xor(a, b)
return (a and not b) or (not a and b)
end
function gpioswitch.new(configuration)
loca... |
include("shared.lua")
function ENT:Draw()
self.BaseClass.Draw(self)
if self:IsDroneWorkable() and not DRONES_REWRITE.ClientCVars.NoGlows:GetBool() then
local pos = self:GetAttachment(self:LookupAttachment("light")).Pos
local dlight = DynamicLight(self:EntIndex())
if dlight then
dlight.pos = pos
dlight.r... |
--[[
Initializes the game and hands control over to the game loop
]]
local ussuri = require("ussuri")
local lib
local world
local game
function love.load()
lib = ussuri.lib
love.graphics.setDefaultImageFilter("nearest", "nearest")
love.audio.setDistanceModel("inverse")
ussuri:lib_folder_load("game")
ussuri:l... |
-- who: `core.lua`
-- what: Standard library for the Flang language
-- Add our class to the global namespace for lua functions
-- The module name should be capitalized. It also should be
-- unique, otherwise module overwriting will occur.
local Core = {}
Core.__index = Core
Flang.LuaFunction.Core = Core
-- Now start a... |
local helpers = require "spec.helpers"
for _, strategy in helpers.each_strategy() do
-- Note: ttl values in all tests need to be at least 2 because
-- the resolution of the ttl values in the DB is one second.
-- If ttl is 1 in the test, we might be unlucky and have
-- the insertion happen at the end of a seco... |
GamePhase = {}
local lNumMoves = 0
local lSonarCol = 0
local lSonarRow = 0
local lTouchesEnabled = nil
local lLastCol = 0
local lLastRow = 0
local lBoostThread = nil
------------------------------------------------------------------------------------------
function GamePhase.ZoomIn()
if lTouchesEnabled then
View... |
local Com = require "meiru.com.com"
----------------------------------------------
--ComSystem
----------------------------------------------
local GMs = {
['oCHWR4lrP4uuiWqs8XG7v5iHIPGEoCHWR4lrP4uuiWqs8XG7v5iHIPGE'] = true
}
local ComSystem = class("ComSystem", Com)
function ComSystem:ctor()
end
function ComSystem... |
return {'zou','zouden','zout','zoutachtig','zoutafzetting','zoutarm','zoutbak','zoutberg','zoute','zouteloos','zouteloosheid','zouten','zouter','zoutevis','zoutgehalte','zoutheid','zouthoudend','zoutig','zoutje','zoutkeet','zoutkoepel','zoutkorrel','zoutkristal','zoutlepeltje','zoutloos','zoutmeer','zoutmijn','zoutminn... |
-- ===========
-- TABLE UTILS
-- ===========
-- Created by datwaft <github.com/datwaft>
local M = require'bubbly.core.module'.new('utils.table')
-- Makes a deep copy of a table
---@param table table
---@return table
function M.deepcopy(table)
local type = type(table)
local copy
if type == 'table' then
... |
local ObjectManager = require("managers.object.object_manager")
tourAryonConvoHandler = conv_handler:new {}
function tourAryonConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate)
local convoTemplate = LuaConversationTemplate(pConvTemplate)
local curPhase = BestineElection:getCurrentPhase()
if (curPhase == ... |
#!/usr/bin/lua
--[[ Moduleinbindung ]]--
-- Selbstredend... Hoffe ich.... --
----------------------------------------------
status, socket = pcall(require, "socket")
if not status then
print("Bitte Socket Erweiterung installieren.")
print("sudo apt-get install lua-socket")
os.exit... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel(table.Random(PrisonSystem.Config.Cook.Models))
self:SetUseType(SIMPLE_USE)
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
local phys = self:Ge... |
ModLoader.SetupFileHook( "lua/Whip_Server.lua", "lua/WhipRebalance/Whip_Server.lua", "post" )
ModLoader.SetupFileHook( "lua/Whip.lua", "lua/WhipRebalance/Whip.lua", "post" )
|
local MapTabWayshrines = FasterTravel.class(FasterTravel.MapTab)
FasterTravel.MapTabWayshrines = MapTabWayshrines
local Location = FasterTravel.Location
local Wayshrine = FasterTravel.Wayshrine
local Transitus = FasterTravel.Transitus
local Campaign = FasterTravel.Campaign
local Utils = FasterTravel.Utils
local fun... |
-----------------------------------
-- Ability: Sange
-- Daken will always activate but consumes shuriken while active.
-- Obtained: Ninja Level 75 Merits
-- Recast Time: 00:03:00 minutes
-- Duration: 00:01:00 minute
-----------------------------------
require("scripts/globals/status")
---------------------------------... |
TAG_VISIBILITY_DISTANCE = 100
TAG_VISIBILITY_DISTANCE_SQ = TAG_VISIBILITY_DISTANCE*TAG_VISIBILITY_DISTANCE
function initSpraying()
empty_tex = dxCreateTexture(0,0)
tag_root = getElementByID("drawtag:tags")
all_tags = {}
visible_tags = {}
initTagPosData()
initExistingTags()
tag_stream_thread = coroutine.create(s... |
assert(false, "must happen") |
package("unqlite")
set_homepage("https://unqlite.org")
set_description("An Embedded NoSQL, Transactional Database Engine.")
set_urls("https://github.com/symisc/unqlite/archive/v$(version).tar.gz",
"https://github.com/symisc/unqlite.git")
add_versions("1.1.9", "33d5b5e7b2ca223942e77d31112d... |
function EFFECT:Init( data )
self.Position = data:GetOrigin()
local Pos = self.Position
local Norm = Vector(0,0,1)
Pos = Pos + Norm * 2
local emitter = ParticleEmitter( Pos )
--big firecloud
for i=1, 28 do
local particle = emitter:Add( "particles/flamelet"..math.random( 1, 5 ), Po... |
require("hall/redEnvelope/data/redEnvelopeDataInterface");
local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWithName")
local RedEnvelopeRecieverLayer = class(hallLayerBaseWithName,false);
RedEnvelopeRecieverLayer.s_layerName = "redenvelope_reciever";
RedEnvelopeRecieverLayer.s_HSpace = 0;
RedEnvelop... |
local logger = require 'examples.middlewares.logger'
local thunk = require 'examples.middlewares.thunk'
local middlewares = {
thunk,
logger,
}
return middlewares
|
------------------------------------------------------------------------------------------------------------
--/*
-- * Created by David Lannan
-- * User: David Lannan
-- * Date: 5/31/2012
-- * Time: 10:10 PM
-- *
-- */
----------------------------------------------------------------------------------------------------... |
--------------------------------
-- @module Scene
-- @extend Node
-- @parent_module cc
--------------------------------
-- render the scene
-- @function [parent=#Scene] render
-- @param self
-- @param #cc.Renderer renderer
-- @return Scene#Scene self (return value: cc.Scene)
------------------------------... |
--define the class
ACF_defineGunClass("RAC", {
spread = 0.4,
name = "Rotary Autocannon",
desc = "Rotary Autocannons sacrifice weight, bulk and accuracy over classic Autocannons to get the highest rate of fire possible.",
muzzleflash = "mg_muzzleflash_noscale",
rofmod = 0.07,
sound = "weapons/acf_gun/mg_fire3.mp3"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.