content stringlengths 5 1.05M |
|---|
--- === cp.apple.finalcutpro.strings ===
---
--- The `cp.strings` for I18N lookups related to Final Cut Pro.
--- This has been populated with common lookups for user interface values
--- that appear in Final Cut Pro.
-- NOTE:
-- /usr/bin/grep -r -i -s -F --include=\*.strings 'Undo %@' /System
local require ... |
local Entity = require("Lutron/Entity/Entity")
local ColoredEntity
do
local _class_0
local _parent_0 = Entity
local _base_0 = {
draw = function(self)
return lutro.graphics.setColor(self.r, self.g, self.b, self.a)
end
}
_base_0.__index = _base_0
setmetatable(_base_0, _parent_0.__base)
_class_... |
local meta = {}
local vector3d = {}
-------------------------------------
-- Declare a new vector3d constructor
-------------------------------------
function vector3d.new(x, y, z)
local v = {x = x, y = y, z = z}
setmetatable(v, meta)
return v
end
function vector3d.add(v1, v2)
return vector3d.new(v1.x + v2.x,... |
local PLUGIN = PLUGIN
function PLUGIN:PlayerSwitchFlashlight(client, state)
local character = client:getChar()
if (!character or !character:getInv()) then
return false
end
if (character:getInv():hasItem("flashlight") and client:GetActiveWeapon():GetClass() == "weapon_cop_flashlight") or character:getI... |
--
-- Chartboost Corona SDK
-- Created by: Chris
--
local surl = require("socket.url")
local function split(inputstr, sep)
sep = sep or "%s"
assert(type(inputstr) == "string", "First parameter 'inputstr' must be a string.")
assert(type(sep) == "string", "Second parameter 'sep' must be a string.")
loca... |
local highlighter = {}
local tableInsert = table.insert
local keywords = {
["local"] = true, ["function"] = true, ["for"] = true, ["if"] = true,
["then"] = true, ["in"] = true, ["do"] = true, ["else"] = true,
["elseif"] = true, ["end"] = true, ["break"] = true, ["return"] = true,
["no... |
AddCSLuaFile()
local VehicleName = "2013 BCSO Taras"
---CUSTOM COLORS---
local B = "BLUE"
local R = "RED"
local A = "AMBER"
local W = "WHITE"
local G = "GREEN"
local DR = "D_RED"
local CW = "C_WHITE"
local SW = "S_WHITE"
-------------------
local EMV = {}
EMV.Siren = 23
EMV.Skin = 7
EMV.Color = Color(255,255,255)
E... |
local a = require('plenary.async.async')
local wrap = a.wrap
local void = a.void
local scheduler = require('plenary.async.util').scheduler
local cache = require('gitsigns.cache').cache
local config = require('gitsigns.config').config
local api = vim.api
local current_buf = api.nvim_get_current_buf
local namespace =... |
object_tangible_wearables_cybernetic_cybernetic_crafted_s02_hand_l = object_tangible_wearables_cybernetic_shared_cybernetic_crafted_s02_hand_l:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_cybernetic_crafted_s02_hand_l, "object/tangible/wearables/cybernetic/cybernetic_crafted_s02_hand_l.iff... |
local api_util = require('acid.dbagent.api_util')
local arg_util = require('acid.dbagent.arg_util')
local convertor = require('acid.dbagent.convertor')
local model_util = require('acid.dbagent.model_util')
local mysql_util = require('acid.dbagent.mysql_util')
local sql_util = require('acid.dbagent.sql_util')
local upst... |
local set_compiler = RELOAD('utils.functions').set_compiler
set_compiler('shfmt', { language = 'sh', option = 'formatprg' })
|
local ffi = require("ffi")
local StringBuilder = require("lj2intelxed.stringbuilder")
local enum = {}
setmetatable(enum, {
__call = function(self, ...)
return self:create(...)
end,
})
--[[
Metatable for an enum
The primary benefit of this metatable is that
it provides reverse lookups.
]]
... |
--Action to update the timers for a player
-- @param player obj
function updateRoundTime(player)
if verifyMainMenu(player) then
--Debug.log("Updating Round Time for "..player.name) --DEBUG
local timer = mod_gui.get_frame_flow(player)["Proxy_Wars_main_frame"]["Proxy_Wars_round_timer"]
local currentTime = global.r... |
local fs = require 'bee.filesystem'
local platform = require 'bee.platform'
local sandbox = require 'sandbox'
local luaUriPath = (ROOT / 'src' / '3rd' / 'lua-uri'):string()
local URI = sandbox('uri.lua', luaUriPath, io.open)
local URI_FILE = sandbox('uri/file.lua', luaUriPath, io.open)
local OS = platform.OS == 'Window... |
-- local variable called composer
local composer = require( "composer" )
-- Hide status bar
display.setStatusBar( display.HiddenStatusBar )
-- Seed the random number generator
math.randomseed( os.time() )
-- Go to the menu screen
composer.gotoScene( "menu" )
-- Reserve channel 1 for background music
audio.reserv... |
local vim = vim
local api = vim.api
local uv = vim.loop
local M = {}
M.__index = M
-- Wraps the given function in a debouncer, which will prevent calling the
-- function until after N milliseconds of inactivity
function M:wrap(n, f)
local instance = {}
setmetatable(instance, M)
instance.__state = {
timeout ... |
local addOnName, ns = ...;
local RPTAGS = RPTAGS;
local Module = RPTAGS.queue:GetModule(addOnName);
Module:WaitUntil("MODULE_G",
function(self, event, ...)
local Utils = RPTAGS.utils;
local loc = Utils.locale.loc;
local Config = Utils.config;
local Get = Utils.config.... |
vim.wo.number = true
vim.wo.relativenumber = true
vim.cmd [[ IndentLinesToggle ]]
|
local has_telescope, telescope = pcall(require, 'telescope')
if not has_telescope then
error('This plugin requires nvim-telescope/telescope.nvim')
end
local main = require'telescope._extensions.langtools.main'
return telescope.register_extension {
setup = main.setup,
exports = main.exports
-- exports = {
--... |
-----------------------
-- NO: A game of numbers
-- Created: 23.08.08 by Michael Enger
-- Version: 0.2
-- Website: http://www.facemeandscream.com
-- Licence: ZLIB
-----------------------
-- Handles buttons and such.
-----------------------
Button = {}
Button.__index = Button
function Button.create(text,x,y)
local ... |
--[[
© 2018 Thriving Ventures AB do not share, re-distribute or modify
without permission of its author (gustaf@thrivingventures.com).
]]
local plugin = plugin
plugin.name = "Logs"
plugin.author = "alexgrist"
plugin.version = "1.0"
plugin.description = "Provides logging of chat and administration actions."
plugin.... |
--Author Anakin_Sklavenwalker--
--Modified for AotR use by MaxiM--
require("PGStateMachine")
require("PGSpawnUnits")
--- Function that chooses a random unit from a list of unit using their weights
--
-- @param faction_name name of the faction getting a unit for
-- @param unit_list list of possible units
-- @param csum... |
if(select(4, GetAddOnInfo('Fizzle'))) then return end
-- Globally used
local G = getfenv(0)
local pairs = pairs
local oGlow = oGlow
-- Addon
local GetInventoryItemQuality = GetInventoryItemQuality
local CharacterFrame = CharacterFrame
local items = {
[0] = 'Ammo',
'Head 1',
'Neck',
'Shoulder 2',
... |
--[[--
state_table = -- table for saving a slot's state
slot.get_state_table()
This function returns a table, holding state information of the currently active slot. To change the state information the returned table may be modified.
--]]--
function slot.get_state_table()
return slot.get_state_table_of(s... |
local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
local w = library:CreateWindow("UPDATE-19-Pet-Clicks-Simulator by @17_Qv exploit")
local b = w:CreateFolder("Clicker")
local c = w:CreateFolder("Movement")
getgenv().autotap = false;
b:Toggle("Auto Tap", fu... |
--[[
Author: kritth
Date: 12.01.2015.
Start traversing the caster, creating projectile, and check if caster should stop traversing based on destination or mana
This ability cannot be casted multiple times while it is active
]]
function ball_lightning_traverse( keys )
-- Check if spell has already casted
if keys.c... |
RegisterNetEvent("FRP:CHESTS:StartPlayerPlacement")
RegisterNetEvent("FRP:CHESTS:SyncChest")
RegisterNetEvent("FRP:CHESTS:SyncMultipleChests")
AddEventHandler(
"FRP:CHESTS:StartPlayerPlacement",
function(capacity)
createTempEntity(capacity)
end
)
AddEventHandler(
"FRP:CHESTS:SyncChest",
fu... |
object_tangible_loot_creature_loot_collections_eralam_shard_03 = object_tangible_loot_creature_loot_collections_shared_eralam_shard_03:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_eralam_shard_03, "object/tangible/loot/creature/loot/collections/eralam_shard_03.iff")
|
building_sign.register_schematic("simple_hut.we")
building_sign.register_schematic("fancy_hut.we")
|
--
--*****************************
--*** Industrialization ***
--*****************************
-- Coded by: ATPHHe
--
--*****************************
--
--require "ISBaseObject"
require "Map/CGlobalObjectSystem"
CIndustrializationGlobalObjectSystem = CGlobalObjectSystem:derive("CIndustrializationGlobalObjectSyst... |
--[[--
This module allows you to play sounds and music.
@module horse3d.audio
]]
if horse3d.audio == nil then
horse3d.audio = {}
end
--[[--
(Advanced, you usually won't need this)
Get the names of all the audio devices available.
@return a @{table} with a list of name strings
]]
horse3d.audio.get_aud... |
return "Hello Lua!" |
#!/usr/bin/lua
package.path = "../src/?.lua;" .. package.path
local epnf = require( "epnf" )
local g = epnf.define( function(_ENV)
local _ = WS^0
local str_E = P'"' * C( (P( 1 )-P'"')^0 ) * P'"'
+ E"string literal expected"
START "dsl"
dsl = _ * (V"dir"+V"file")^0 * EOF"directory or file exp... |
--region CEventManager.lua
--Author : jefflwq
--Date : 2015/2/27
--说明 : CEventManager类
--endregion
using "Joop"
import "System.CEvent"
namespace "System"
{
class "CEventManager"
{
m_Events = false, --以eventName为key保存为{},可能对应多个event
CEventManager =
function(se... |
return {
-- Physical network interfaces
network_interfaces = {
wlan = 'wlp0s20f3',
lan = 'enp7s0',
},
-- Forces all widgets to be visible
debug = false,
}
|
#!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
require"regress".export".*"
local cq = cqueues.new()
local ok, why = cq:wrap(function ()
cq:close()
end):loop()
check(not ok, "expected loop to fail")
check(tostring(why):find"cqueue running", "unexpected error (%s)", tostring(why))
say"OK"
|
--JANTZEN WELLS AND JOHN BROPHY
--ICYWINGS
camera = {}
camera.x = 0
camera.y = 0
camera.scaleX = 1
camera.scaleY = 1
camera.rotation = 0
--functions for the camera class that controls what the player sees
function camera:set()
love.graphics.push()
love.graphics.rotate(-self.rotation)
love.graphi... |
--[[---------------------------------------
Disable Bunny Hopping
-----------------------------------------]]
hook.Add( "CreateMove", "DisableBhop", function( input )
if !LocalPlayer():Alive() or !LocalPlayer().NextJump then return end
if LocalPlayer().NextJump < CurTime() then return end
if input:KeyDown( IN_JUMP... |
-- This script defines available tests
-- Functions may take a variable number of string parameters
-- And should throw an error if things go wrong
-- The return values are otherwise unnecessary
-- Tests should be named test_<name>
function TestLuaWorks ()
print("Yes, Lua works")
end
|
local SmartText = {}
function SmartText.new(txt)
local this = {class = 'SmartText', text = txt or ''}
setmetatable(this, {
__index = this;
__tostring = function ()
return this.text
end;
__concat = function (a, b)
if type(a) == 'string' or type(b) == 'string' then
return a == this and this.t... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
object_intangible_beast_bm_dewback = object_intangible_beast_shared_bm_dewback:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_dewback, "object/intangible/beast/bm_dewback.iff")
|
DoReady.DeathKnight.Blood.Raid.Legendarys = {
[1] = 334525,
[2] = 353447,
[3] = 353882,
[4] = 353822,
[5] = 334974,
[6] = 353699,
[7] = 334728,
[8] = 334580,
[9] = 334678,
[10] = 334501,
}
DoReady.DeathKnight.Blood.Raid.Talents = {
[2] = 219809,
[3] = 273946,
[4] = 221699,
[5] = 206967,
[6] = 212552,
[7] = 195679,
[8] ... |
return {'yfke','yfkes'} |
local srcZsetName = KEYS[1];
local destZsetName = KEYS[2];
local taskId = ARGV[1];
local score = ARGV[2];
-- taskid is not in srcZset, return directly
if (redis.call('ZRANK', srcZsetName, taskId) == nil) then
return false;
end;
redis.call('ZADD', destZsetName, score, taskId);
redis.call('ZREM', srcZsetName, tas... |
local trigger = script.parent
local statName=script:GetCustomProperty("StatName")
local statSeuil=script:GetCustomProperty("StatSeuil")
local message=script:GetCustomProperty("Message")
local ROOT=script.parent.parent
ROOT.visibility=Visibility.FORCE_OFF
function OnBeginOverlap(whichTrigger, other)
if other:IsA("Pla... |
local S = technic.getter
technic.register_recipe_type("alloy", {
description = S("Alloying"),
input_size = 2,
})
function technic.register_alloy_recipe(data)
data.time = data.time or 6
technic.register_recipe("alloy", data)
end
local recipes = {
{"mcl_core:sand", "technic:coal_dust", "technic:silicon_wafer 2"},... |
--[[
Copyright © 2018, Sjshovan (Apogee)
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 code must retain the above copyright
notice, this list of conditions and th... |
local m = require'lualdap'
assert(type(m) == 'table')
assert(m == package.loaded.lualdap)
assert(m._COPYRIGHT:match'Kepler Project')
assert(m._DESCRIPTION:match'LDAP client')
assert(m._VERSION:match'^LuaLDAP %d%.%d%.%d')
-- luacheck: globals lualdap
if _VERSION == 'Lua 5.1' then
assert(lualdap == m)
end
if not ... |
relayPin = 3
relayName = "1"
gpio.mode(relayPin, gpio.OUTPUT)
mqttClient:subscribe("/relay/" .. relayName, 0, function(client)
print("Subscribed for relay/1 topic")
end)
mqttClient:on("message", function(conn, topic, data)
if data ~= nil then
if topic == "/relay/" .. relayName then
if dat... |
-- eLua reference manual - nRF module
data_en =
{
-- Title
title = "eLua reference manual - nRF module",
-- Menu name
menu_name = "nrf",
desc = "Radio interface (nRF24L01) operations",
-- Overview
overview = [[This module contains functions for sending and receiving data over the wireless nRF24L01-b... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local lwtk = require("lwtk")
local superClass = lwtk.get.superClass
local function getSuperClass(class)
return superClass[class]
end
return getSuperClass
|
local db = require 'std.database':new()
return db |
-- ====================================================================================================================
-- Local function
-- ====================================================================================================================
function OpenShopMenu()
ESX.UI.Menu.CloseAll()
local elem... |
--- Metatables used to create objects from the data returned by the Twitter API.
--
-- @module luatwit.objects
-- @author darkstalker <https://github.com/darkstalker>
-- @license MIT/X11
local assert, io_open, ipairs, pairs, setmetatable, table_concat, tostring, type =
assert, io.open, ipairs, pairs, setmetatab... |
-------------------------------------------------------------------
-- This script is created by zdroid9770; please do not edit this --
-- script and claim it as your own, as of All rights are claimed --
-- by me. --
-- Copyright (c) zdroid9770 ... |
return {
map = 1,
Hacked_cannon = {mapX = 4, mapY = 5},
ammo = {'normal', 'normal', 'bomb', 'normal', 'normal'},
bugs = {
{x = 1041, y = 212},
{x = 1196, y = 212},
{x = 768, y = 230},
{x = 1438, y = 35},
{x = 1351, y = 70},
{x = 1522, y = 71}
},
blocks = {
{material = 'wood', name = 'rectangle4', x ... |
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local class = requ... |
-- coins.lua coins are created and collide with the player (increases score) ... and they're spinning around
local coins = {} -- table holding parts of 1 coin for animation
for i=1,11 do
coins[i] = love.graphics.newImage("assets/coinAnimation/coin" .. i .. ".png")
end
-- coin sfx
local coinSound = love.audio.newSou... |
return function()
map("n", "gj", ":SplitjoinJoin<cr>")
map("n", "gs", ":SplitjoinSplit<cr>")
end
|
-----------------------------------
-- Area: Southern San d'Oria
-- NPC: The Picture ??? in Vemalpeau's house
-- Involved in Quests: Under Oath
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/que... |
local L = BigWigs:NewBossLocale("Thalnos the Soulrender", "frFR")
if not L then return end
if L then
--L.engage_yell = "My endless agony shall be yours, as well!"
end
local L = BigWigs:NewBossLocale("Brother Korloff", "frFR")
if not L then return end
if L then
--L.engage_yell = "I will break you."
end
local L = Big... |
object_mobile_dressed_sayormi_witch_01 = object_mobile_shared_dressed_sayormi_witch_01:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_sayormi_witch_01, "object/mobile/dressed_sayormi_witch_01.iff")
|
LoveUI.require("LoveUIControl.lua")
LoveUI.require("LoveUIScrollerCell.lua")
LoveUI.require("LoveUIRect.lua")
LoveUI.Scroller=LoveUI.Control:new()
--[[
@param totalLength length of whole scroller
@param valuesLength effective range where values can be chosen.
]]--
function LoveUI.Scroller:init(location, totalLength, ... |
--------------------------------------------------------------------------------
local composer = require "composer"
local File = require "lib.copy_file"
local NavBar = require "app.views.navBar"
local Form = require "app.views.gridForm"
local Message = require "app.views.message"
local Head = require "a... |
local json = require ("dkjson")
local NetworkScalarFunction, parent = torch.class('nnst.NetworkScalarFunction', 'nnst.NetworkSequential')
local function createPerception(container, config)
container:_addPerceptonLayer(
nnst.Linear(1, 1),
config.transferFunctionFactory.create())
end... |
hook.Add("Initialize","GearFoxInit",function()
self = GM or GAMEMODE
if (self.UseMawBlockCHud) then
self:AddBlockCHud("CHudHealth")
self:AddBlockCHud("CHudBattery")
self:AddBlockCHud("CHudDamageIndicator")
self:AddBlockCHud("CHudAmmo")
self:AddBlockCHud("CHudSecondaryAmmo")
end
end)
|
--
-- Created by IntelliJ IDEA.
-- User: renan.silva
-- Date: 02/05/2020
-- Time: 17:59
-- To change this template use File | Settings | File Templates.
--
function GenerateQuads(atlas, tileWidth, tileHeight)
local sheetWidth = atlas:getWidth() / tileWidth
local sheetHeight = atlas:getHeight() / tileHeight
... |
--[[
Map Tools: tool definitions
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = maptools.intllib
maptools.creative = maptools.config["hide_from_creative_inventory"]
minetest.register_tool("maptools:pick_admin", {
descript... |
--- Boilerplate for winding rule scenes.
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, pu... |
--[[
a sample level pack info file to test out stuff
]]
function onWin(info)
end
local pack = {}
pack.onWin = function(info)
end |
local LIB = "Satnav"
local satnav = MERLINS_REZHELPER.Modes[LIB]
local arrow, right, ui;
if not satnav then
satnav = MERLINS_REZHELPER.Modes:Register(LIB)
function satnav:Init()
ui = MERLINS_REZHELPER.UI
arrow = ui:RequestTextureFrames({
{ Texture = "satnav/up.dds", Movable = tru... |
fx_version 'adamant'
game 'gta5'
description 'ESX Voice Controller By. Nitro Development'
version '1.1.0'
ui_page 'ui.html'
files {
'ui.html',
}
client_scripts {
'@es_extended/locale.lua',
'client/main.lua'
}
|
Player = game:GetService("Players").LocalPlayer
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["Right Arm"]
RightLeg = Character["Right Leg"]
... |
Enemy = Base:extend()
function Enemy:constructor(params)
self.x = params.x
self.y = params.y
self.width = params.width or 25
self.height = params.height or 25
self.velocity = params.velocity or 35
self.pattern = 'left'
self.alive = true
self.unsubscribe = Event.subscribe('beamupdate', function(entit... |
-----------------------------------
-- Area: Kazham
-- NPC: Roropp
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind")
local path =
{
16.031977, -8.000000, -106.132980,
16.257568, -8.000000, -105.056381,
16.488544, -8.000000, -103.993233,
16.736769, -8.000000, ... |
modifier_king_duel_lua = class({})
--------------------------------------------------------------------------------
function modifier_king_duel_lua:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_EXTRA_HEALTH_PERCENTAGE, --GetModifierExtraHealthPercentage
-- MODIFIER_PROPERTY_HEALTH_REGEN_PERC... |
Locales['fr'] = {
['whisky'] = 'Whisky',
['rhum'] = 'Rhum',
['cocktail'] = 'Cocktail',
['unicorn'] = 'Menu Unicorn Club',
['mechanic'] = 'Unicorn',
['drive_to_indicated'] = '~y~Conduisez~s~ jusqu\'à l\'end... |
local K, C = unpack(select(2, ...))
if C["Unitframe"].Enable ~= true then
return
end
local Module = K:GetModule("Unitframes")
local oUF = oUF or K.oUF
if not oUF then
K.Print("Could not find a vaild instance of oUF. Stopping Target.lua code!")
return
end
local _G = _G
local select = select
local CreateFrame = _G... |
return{
name = "star",
} |
Summon(3)
character_1:WithWaitTime(1555):UseSkill(1)
character_1:UseSkill(2)
character_1:UseSkill(4) |
local unpack = (_VERSION == "Lua 5.1") and unpack or table.unpack -- luacheck: compat
-- matches a string of type %{age}
local function interpolateValue(string, variables)
return string:gsub("(.?)%%{%s*(.-)%s*}",
function (previous, key)
if previous == "%" then
return
else
return prev... |
dofile(ModPath.. "lua/common.lua")
WeaponPanel.options_menu = "WeaponPanel_menu"
Hooks:Add("LocalizationManagerPostInit", "WeaponPanelLocatizations", function(loc)
LocalizationManager:add_localized_strings({
["WeaponPanel_options_title"] = "Weapon Panel",
["WeaponPanel_options_desc"] = "Weapon Panel Options",
})... |
--[[
################################################################################
#
# Copyright (c) 2014-2018 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 the ... |
--[[ Copyright (c) 2010 Peter "Corsix" Cawley
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, dis... |
local helpers = require "spec.helpers"
local jwt = require "resty.jwt"
local cjson = require "cjson.safe"
local function has_value(tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
describe("universal-jwt plugin (access)", function()
local cli... |
-- npm i -g bash-language-server
require("lspconfig").bashls.setup {
cmd = { DATA_PATH .. "/lsp_servers/bash/node_modules/.bin/bash-language-server", "start" },
on_attach = require("lsp").common_on_attach,
filetypes = { "sh", "zsh" },
}
-- npm i -g bash-language-server
require("lspconfig").bashls.setup {
cmd =... |
-------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local Endpoint = require "elasticsearch.endpoints.Endpoint"
------------------------------------------------------------------------------... |
local tab = { };
tab.Name = "Jetpack";
tab.Desc = "Click to leap in a direction.";
tab.Ingredients = { "fuel", "fuel", "fuel", "metal" };
tab.MouseDown = function( ply, mv, cmd )
if( !ply.NextJetpack ) then
ply.NextJetpack = CurTime();
end
if( CurTime() >= ply.NextJetpack ) then
ply.NextJetpack = CurTime() + ... |
function conky_format( format, number )
return string.format( format, conky_parse( number ) )
end
|
-- Battlezone: Rise of the Black Dogs, Black Dog Mission 24 written by General BlackDragon.
;
local bzCore = require("bz_core");
local mammoth = require("mammoth");
local M = {
-- Bools
UpdateObjectives = false,
StartDone = false, -- Some things don't work in the actual "Start" function.
Nav1Rea... |
local Component = require "class.Component"
local floating = class("smb3.floating", Component)
local FLOATASCENSION = 60
local FLOATTIME = 16/60
local MAXSPEEDFLY = 86.25
local ACCELERATION = 196.875
local FRICTIONFLYSMALL = 56.25
local FRICTIONFLYBIG = 225
local FRICTIONSKIDFLY = 675 -- turnaround speed while flying... |
-- Generic Lua functions.
function table.removeitem(tbl, item)
-- Remove all occurencies of item in the table tbl and return the new table.
local newtbl = {}
for i, v in pairs(tbl) do
if v ~= item then
table.insert(newtbl, v)
end
end
return newtbl
end
function table.isempty(tbl)
-- Check if a table is em... |
local Comm = {}
-- print gmcp message
function Comm.print_channel_message(msg, player, channel)
print(msg)
end
-- Triggers
local comm_triggers = trigger.add_group()
-- Trigger: Teile mit (Empfaenger)
-- Rhoakka teilt Dir mit: test text
-- oder
-- Deine Freundin Rhoakka teilt Dir mit: test text
-- oder
-- Deine ... |
--[[
LuaBit v0.4 http://luaforge.net/projects/bit/
copyright(c) 2006~2007 hanzhao (abrash_han@hotmail.com)
Under the MIT license.
Modified 2013 Stephen McDonald:
- Converted to anonymous functions for embedding in Redis
- Removed functions: check_int, bit_xor2, bit_logic_rshift
- Reformatting: 1 space inde... |
--[[
Copyright 2016 Kenny Shields <mail@kennyshields.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... |
print("Init can")
print("start SPI init")
spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 8, 8, spi.FULLDUPLEX)
--reset
dofile("can_reset.lc")
print("reset")
--setConfigMode()
dofile("can_setMode.lc")(0x80)
print("config mode")
--set speed 500kbs
dofile("can_setRegister.lc")(0x2A, 0x00)
dofile("can_setRegister.l... |
game.Players.HighEpicman22.Chatted:connect(function(msg) if msg == ("cake")then --- replace my name Blockeus with your name exactly the way your name is spelt with caps and everything. EXACTLY
p = Instance.new("Part",Workspace)
p.Position = game.Workspace.Base.Position + Vector3.new(20,2,0)
p.Size = Vector3.new(6,1,6)
... |
local gameInterface = class()
function gameInterface:init(gameRound)
self.m_pGameRound = gameRound
end
--------------------gameRound >> gameRoundLogic--------------------
function gameInterface:onGetTableUsers()
return self.m_pGameRound.m_players
end
-- 获取牌池中的前cardNum张牌,如不够,则有多少张返回多少
function gameInterface:onGe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.