repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/kipUpShot.lua | 1 | 2564 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Manifest.lua | 1 | 1599 |
--------------------------------
-- @module Manifest
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @brief Gets remote manifest file url.
-- @function [parent=#Manifest] getManifestFileUrl
-- @param self
-- @return string#string ret (return value: string)
--------------... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/npcs/fsVillage/kylaenaHaley.lua | 1 | 4447 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/dantooine/dungeons/dantariMokkVillage.lua | 1 | 2620 | --Copyright (C) 2008 <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 version.
... | lgpl-3.0 |
Hammerspoon/hammerspoon | extensions/tangent/tangent.lua | 4 | 74064 | --- === hs.tangent ===
---
--- Tangent Control Surface Extension
---
--- **API Version:** TUBE Version 3.2 - TIPC Rev 4 (22nd February 2017)
---
--- This plugin allows Hammerspoon to communicate with Tangent's range of panels, such as their Element, Virtual Element Apps, Wave, Ripple and any future panels.
---
--- The ... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/gundula/gundulaElderWorker.lua | 1 | 4594 | --Copyright (C) 2008 <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... | lgpl-3.0 |
boundary/boundary-plugin-couchbase | init.lua | 2 | 7078 | -- Copyright 2015 Boundary, Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to i... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/socialInternal.lua | 1 | 2503 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/object.lua | 1 | 2421 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
miralireza2/xili_bot | plugins/service_entergroup.lua | 355 | 3585 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/languages/slavic/russian_loanwords.lua | 1 | 1887 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/creatures/startledVreltMother.lua | 1 | 4750 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/brackasetFemale.lua | 1 | 4739 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/talus/creatureSkills.lua | 1 | 3000 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/static/base/objects.lua | 1 | 3907 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/hiddenDaggers/hiddenDaggersLieutenant.lua | 1 | 4599 | --Copyright (C) 2008 <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... | lgpl-3.0 |
chrisdugne/ludum-dare-36 | src/components/ProgressBar.lua | 1 | 4790 | --------------------------------------------------------------------------------
local ProgressBar = {}
--------------------------------------------------------------------------------
-- DOC desc
-- todo utils.text --> component.Text puis if Text or display.newtText
-- install src.component
-- install assets
functio... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/shirts/shirt15.lua | 1 | 2284 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/set_type.lua | 7 | 1026 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
fkaa/iceball | pkg/base/lib_util.lua | 3 | 8633 | --[[
This file is part of Ice Lua Components.
Ice Lua Components 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 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
Andrettin/Wyrmsun | scripts/languages/germanic/old_flemish.lua | 1 | 1631 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
nullifye/tg-bot-pi | tg_bot/plugins/9gag.lua | 1 | 2035 | return function(msg)
cmd = "pi:9gag"
if command(msg,cmd) then
local found = false
while not found do
rand = math.random(1,1047007)
found = http_code("http://m.9gag.com/gag/"..rand, "200")
end
if found then
curr_time = os.time()
try = os.execute('wget -qO- --load-c... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/corellia/npcs/meatlump/meatlumpOaf.lua | 1 | 4525 | --Copyright (C) 2008 <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... | lgpl-3.0 |
REZATITAN/XY | bot/utils.lua | 15 | 14995 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/giantGackleBat.lua | 1 | 4737 | --Copyright (C) 2008 <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... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/sh_colors.lua | 1 | 1253 | COLOR_GRAY = Color(190, 190, 190)
COLOR_RED = Color(120, 0, 0)
COLOR_BLUE = Color(0, 0, 255)
COLOR_GREEN = Color(0, 255, 0)
COLOR_LIMEGREEN = Color(50, 255, 50)
COLOR_YELLOW = Color(255, 255, 0)
COLOR_CYAN = Color(0, 255, 255)
COLOR_WHITE = Color(255, 255, 255)
COLOR_PURPLE = Color(255, 0, 255)
COLOR_DARKGRA... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/crafting/restartCraftingSession.lua | 1 | 2722 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
xboot/xboot | examples/graphics/vision/main.lua | 1 | 1730 | local function onMouseDown(self, e)
if self:hitTestPoint(e.x, e.y) then
self.touchid = -1
self.x0 = e.x
self.y0 = e.y
e.stop = true
end
end
local function onMouseMove(self, e)
if self.touchid == -1 then
local dx = e.x - self.x0
local dy = e.y - self.y0
self:setX(self:getX() + dx)
self... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/missionNpcs/missionRsfPalaceGuard.lua | 1 | 4767 | --Copyright (C) 2008 <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... | lgpl-3.0 |
adriancole/finagle | finagle-mux/src/main/lua/mux_dissector.lua | 1 | 15253 | ----------------------------------------
--
-- A wireshark dissector for Mux.
--
-- See README.md for instructions.
--
-- Disclaimers:
-- This is based on Wireshark's example Lua dissector for DNS.
-- There are almost certainly horrible things afoot here
-- as I cobbled it together without knowing either Lua or Wiresha... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/npcs/imperial/imperialSergeantMajorAttacks.lua | 1 | 3019 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
Xeltor/ovale | dist/Warlock.lua | 1 | 5782 | local __exports = LibStub:NewLibrary("ovale/Warlock", 80300)
if not __exports then return end
local __class = LibStub:GetLibrary("tslib").newClass
local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true)
local tonumber = tonumber
local pairs = pairs
local GetTime = GetTime
local CombatLogGetCurrentEventInfo = CombatLo... | mit |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/tatooine/creatures/dewbackAttacks.lua | 1 | 4214 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/desertDemon/desertDemonBrawler.lua | 1 | 4592 | --Copyright (C) 2008 <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... | lgpl-3.0 |
technomancy/ss-calandria | mods/digilines/digilines/wire_std.lua | 5 | 3232 | -- naming scheme: wire:(xp)(zp)(xm)(zm)_on/off
-- The conditions in brackets define whether there is a digiline at that place or not
-- 1 = there is one; 0 = there is none
-- y always means y+
box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/16, 1/16}
box_bump1 = { -2/16, -8/16, -2/16, 2/16, -13/32, 2/16 }
box_bump2 = ... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/dantooine/piketLair.lua | 1 | 2478 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/kliknikHatchling.lua | 1 | 4635 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/janta/jantaRockshaper.lua | 1 | 4868 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/mission/base/objects.lua | 1 | 3976 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
manuel-arguelles/roidsbuster | spaceship.lua | 1 | 2754 | local shooting_interval = 0.2
local sp = { x = 0, y = 0, speed = 150, img = nil, score = 0, alive = true,
shooting_timer = shooting_interval, allow_shooting = true,
active_lasers = {}, shooting_sound = nil}
local laser = { x = 0, y = 0, speed = 200, img = nil }
spaceship = sp
function sp.load(arg... | gpl-2.0 |
muhkuh-sys/muhkuh_tester | lua/test_class.lua | 1 | 1269 | local class = require 'pl.class'
local TestClass = class()
function TestClass:_init(strTestName, uiTestCase, tLogWriter, strLogLevel)
self.P = require 'parameter_instances'(strTestName, tLogWriter, strLogLevel)
self.pl = require'pl.import_into'()
-- Create a new log target for this test.
local tLogWriterTestc... | gpl-2.0 |
BakaBBQ/siki.lua | love-frames/libraries/util.lua | 14 | 10269 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".util"))
local loveframes = re... | mit |
Andrettin/Wyrmsun | scripts/map_templates/nidavellir/heartfangs_foothills.lua | 1 | 1420 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/languages/italic/french_loanwords.lua | 1 | 1894 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/roba/objects.lua | 1 | 4633 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
trentapple/BetterUI | Modules/Store/Store.lua | 2 | 3144 | BUI_STORE_SCENE_NAME = "bui_gamepad_store"
BUI.Store.Buy = ZO_GamepadStoreBuy:Subclass()
function BUI.Store.Buy:New(...)
local object = ZO_GamepadStoreBuy.New(self, ...)
--object:Initialize(self, ...)
return object
end
function BUI.Store.Buy:Initialize(scene)
ZOS_GamepadStoreListComponent.Initialize(self,... | mit |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/cl_init.lua | 1 | 7695 | include("shared.lua")
include("animations.lua")
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
SWEP.ViewModelFOV = 60
SWEP.ViewbobIntensity = 1
SWEP.ViewbobEnabled = true
SWEP.Slot = 0
SWEP.SlotPos = 0
SWEP.BlendPos = Vector(0, 0, 0)
SWEP.BlendAng = Vector(0, 0, 0)
SWEP.OldDelta = Angle(0, 0, 0)
SWEP.AngleDelta =... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIChitin/chitinArmorGloves.lua | 1 | 5207 | --Copyright (C) 2009 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/pharple/objects.lua | 1 | 4670 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/modules/admin_mod/sv_duby.lua | 1 | 2157 | --[[ Special Commands Just For me To Enjoy ]]--
--[[ I Spent 8 Months Coding This, I'm Allowed To Have Fun Sometimes! :P ]]--
--[[ DEBUG MESSAGES ]]--
util.AddNetworkString( "Debug" )
util.AddNetworkString( "Debug_2" )
util.AddNetworkString( "Debug_3" )
util.AddNetworkString( "Debug_4" )
util.AddNetworkString( "De... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/healPet.lua | 1 | 2523 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
ftpvanmaanen/esp8266 | tools/LuaLoader/examples/httpget.lua | 2 | 1262 | -- tested on NodeMCU 0.9.5 build 20141222...20150108
-- sends connection time and heap size to http://benlo.com/esp8266/test.php
print('httpget.lua started')
Tstart = tmr.now()
conn = nil
conn=net.createConnection(net.TCP, 0)
-- show the retrieved web page
conn:on("receive", function(conn, payload)
... | gpl-2.0 |
ruphy/tagua | data/themes/pieces/ShogiSVG-TTF/theme.lua | 1 | 3976 | import("piece_theme.lua")
import("shogi_themelib.lua")
shadow=7.0
shadow_color="#404050"
shadow_offset_x=6
shadow_offset_y=4
shadow_grow=5
fontnames = {"Potraced from ???"} --, "Potraced from shogi.net"}
fontlist = {"Shogi.ttf"} -- , "Shogi2.ttf"}
theme.options = OptList {
BoolOpt("moves_overlay", "Moves overlay",... | gpl-2.0 |
ivendrov/rnn | FastLSTM.lua | 6 | 2630 | local FastLSTM, parent = torch.class("nn.FastLSTM", "nn.LSTM")
function FastLSTM:__init(inputSize, outputSize, rho)
parent.__init(self, inputSize, outputSize, rho, false)
end
function FastLSTM:buildModel()
-- input : {input, prevOutput, prevCell}
-- output : {output, cell}
-- Calculate all four gates ... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/object/static/structure/dantooine/objects.lua | 1 | 43919 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/pharmaceutical/curepacks/areaDiseaseCureC.lua | 1 | 2480 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
badboyam/redstorm | plugins/inrealm.lua | 287 | 25005 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
chrisdugne/ludum-dare-36 | src/screens/Shop.lua | 1 | 1253 | --------------------------------------------------------------------------------
local scene = composer.newScene()
--------------------------------------------------------------------------------
function scene:create( event )
--------------------------------------
-- title
self.title = GUI:banner({
... | bsd-3-clause |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_bulletstorm.lua | 1 | 2401 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "'Bullet Storm' SMG"
SWEP.Description = "Hold right click to use the Storm firing mode: fire rate is reduced to 60% but two bullets are fired at once."
SWEP.Slot = 2
SWEP.SlotPos = 0
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 50
SWEP.HUD3DBone = "v... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/crowned_rasp/objects.lua | 1 | 6097 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
BakaBBQ/siki.lua | dkjson.lua | 154 | 22416 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
Version 2.5
For the documentation see the corresponding readme.txt or visit
<http://dkolf.de/src/dkjson-lua.fsl/>.
You can contact the ... | mit |
thkhxm/TGame | LuaEncoder/luajit_ios/x86_64/jit/bcsave.lua | 26 | 18244 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | apache-2.0 |
mynameis123/uzzbot | plugins/help.lua | 337 | 5009 | do
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/corellia/citys/coronet.lua | 1 | 19986 | --Copyright (C) 2007 <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 versi... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/setPublicState.lua | 1 | 2498 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
meysamx0/Crazy | plugins/lock_fosh.lua | 1 | 1649 | local function run(msg, matches)
if is_momod(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['fosh'] then
lock_fosh = ... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/enragedRancor.lua | 1 | 4729 | --Copyright (C) 2008 <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... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/casualShoes.lua | 1 | 2294 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/spined_puc/objects.lua | 1 | 4710 | --Copyright (C) 2009 <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 ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/tatooine/npcs/mosTaikeAttacks.lua | 1 | 2839 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/jinda/jindaVeteran.lua | 1 | 4734 | --Copyright (C) 2008 <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... | lgpl-3.0 |
Maxsteam/seed | plugins/inrealm.lua | 228 | 16974 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_group_ch... | gpl-2.0 |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/writer.lua | 13 | 15918 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
lo... | gpl-2.0 |
zachmoore12/wrk-1 | deps/luajit/src/jit/dis_arm.lua | 88 | 19364 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/forceOfWill.lua | 1 | 2531 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
asmagill/hammerspoon | extensions/window/window_layout.lua | 4 | 40796 | --- === hs.window.layout ===
---
--- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION.
--- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**.
--- (Should you encounter any issues, please feel free to report them on htt... | mit |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/confusionShot.lua | 1 | 2580 | --Copyright (C) 2007 <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 version.
... | lgpl-3.0 |
chrisdugne/ludum-dare-36 | main.lua | 1 | 1999 | --------------------------------------------------------------------------------
--
-- main.lua
--
--------------------------------------------------------------------------------
--- Corona's libraries
json = require 'json'
composer = require 'composer'
---- Additional libs
CBE ... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/jedWeaponSet.lua | 1 | 2206 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/tradeFederation/tradeFederationPirate.lua | 1 | 4626 | --Copyright (C) 2008 <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... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/settlements_switzerland.lua | 1 | 3304 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
BakaBBQ/siki.lua | main.lua | 1 | 2362 |
currentFrameImage = nil
root = os.getenv("HOME")
require 'minibuffer'
require 'datautils'
local json = require('dkjson')
local inspect = require 'inspect'
-- frameDatas, a filename -> framedata hash
frameDatas = {}
currentFrameData = nil
require("stage")
tmp_file = 'tmp.json'
function love.load()
if love.filesyst... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/lok/npcs/canyonCorsair/canyonCorsairDestroyer.lua | 1 | 4638 | --Copyright (C) 2008 <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... | lgpl-3.0 |
GranPC/kindleroot | adb.lua | 2 | 1798 | adb = {}
function adb.waitfordevice( callback )
local command = util.generatecall( "adb", "-s product:soho wait-for-device" )
local function adbcallback( code, out )
if code ~= 0 then
adb.waitfordevice( callback )
print( "adb process died mysteriously..." )
print( "--------- PROCESS OUTPUT ---------\n")... | mit |
yav/language-lua | lua-5.3.1-tests/literals.lua | 4 | 10040 | -- $Id: literals.lua,v 1.34 2015/03/04 13:09:38 roberto Exp $
print('testing scanner')
local debug = require "debug"
local function dostring (x) return assert(load(x), "")() end
dostring("x \v\f = \t\r 'a\0a' \v\f\f")
assert(x == 'a\0a' and string.len(x) == 3)
-- escape sequences
assert('\n\"\'\\' == [[
"'\]])
... | bsd-3-clause |
thkhxm/TGame | Assets/LuaFramework/ToLua/Lua/protobuf/encoder.lua | 7 | 15221 | --
--------------------------------------------------------------------------------
-- FILE: encoder.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-- ... | apache-2.0 |
manuel-arguelles/roidsbuster | asteroids.lua | 1 | 1998 | local create_interval = 0.5
local roid = { speed = 200, img = nil, active_asteroids = {}, lost_roid_cb = nil }
local create_timer = create_interval
asteroids = roid
function roid.load(arg)
roid.img = love.graphics.newImage('images/asteroid.png')
end
function roid.create(dt)
create_timer = create_timer - (1 * d... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/guichan.lua | 1 | 14126 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
alireza1998/radical-boy | bot/seedbot.lua | 1 | 9014 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
GeekWithALife/love-bone | conf.lua | 1 | 3338 | function love.conf(t)
t.identity = nil -- The name of the save directory (string)
t.version = "0.10.2" -- The LÖVE version this game was made for (string)
t.console = true -- Attach a console (boolean, Windows only)
t.accelerometerjoystick = true ... | mit |
TheAnswer/FirstTest | bin/scripts/mission/basemission.lua | 1 | 4598 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/ithorian/ithCargoPants.lua | 1 | 2299 | --Copyright (C) 2007 <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 lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/GLViewImpl.lua | 1 | 1185 |
--------------------------------
-- @module GLViewImpl
-- @extend GLView
-- @parent_module cc
--------------------------------
--
-- @function [parent=#GLViewImpl] createWithRect
-- @param self
-- @param #string viewName
-- @param #rect_table rect
-- @param #float frameZoomFactor
-- @return GLViewImpl#... | apache-2.0 |
FTBpro/count-von-count | lib/nginx/utils.lua | 1 | 1087 | local redis = require "resty.redis"
local utils = {}
function utils:normalizeKeys(tbl)
local normalized = {}
for k, v in pairs(tbl) do
local key = k:gsub("amp;", "")
local value = v
if key:match("[[]]") then
key = key:gsub("[[]]", "")
if type(value) ~= "table" then
value = { v }
... | mit |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/PhysicsJointDistance.lua | 1 | 1409 |
--------------------------------
-- @module PhysicsJointDistance
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
--
-- @function [parent=#PhysicsJointDistance] createConstraints
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------... | apache-2.0 |
gabrielPeart/keys | VSCOKeys.lrdevplugin/halfway_server/Http.lua | 11 | 2879 | package.path = "../?.lua;" .. package.path
local JSON = require "json"
local Http = {}
function Http.parseHttpHeaders(lines)
local data = {}
local stringLoc = 1
local reqLine = lines[1]
data.method = reqLine:sub(stringLoc,reqLine:find(" ", stringLoc) - 1)
stringLoc = stringLoc + #data.method + 1
data.pa... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/item_sets.lua | 1 | 2188 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
mkwia/jc2atc | scripts/airtraffic/client/cManager.lua | 1 | 1846 | class 'AirTrafficManager'
function AirTrafficManager:__init()
self.npcs = {}
self.debug = false
Events:Subscribe("Render", self, self.PostTick)
Events:Subscribe("EntitySpawn", self, self.EntitySpawn)
Events:Subscribe("EntityDespawn", self, self.EntityDespawn)
Events:Subscribe("VehicleCollide", self, self.Vehi... | mit |
praveenjha527/Algorithm-Implementations | Symmetric_Difference/Lua/Yonaba/symdiff_test.lua | 26 | 1051 | -- Tests for symmdiff.lua
local symdiff = require 'symdiff'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
loca... | mit |
peterjc/samtools | misc/r2plot.lua | 42 | 2685 | #!/usr/bin/env luajit
function string:split(sep, n)
local a, start = {}, 1;
sep = sep or "%s+";
repeat
local b, e = self:find(sep, start);
if b == nil then
table.insert(a, self:sub(start));
break
end
a[#a+1] = self:sub(start, b - 1);
start = e + 1;
if n and #a == n then
table.insert(a, self:sub... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.