repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
ujjwalkarn/torch7
Tensor.lua
57
16339
-- additional methods for Storage local Storage = {} -- additional methods for Tensor local Tensor = {} -- types local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'} -- Lua 5.2 compatibility local log10 = math.log10 or function(x) return math.log(x, 10) end -- tostring() functions for Tensor an...
bsd-3-clause
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseBounceOut.lua
9
1262
-------------------------------- -- @module EaseBounceOut -- @extend EaseBounce -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseBounceOut action. If creation failed, return nil. ...
apache-2.0
xdemolish/darkstar
scripts/zones/Windurst_Waters/npcs/Fuepepe.lua
19
3656
----------------------------------- -- Area: Windurst Waters -- NPC: Fuepepe -- Starts and Finishes Quest: Teacher's Pet -- Involved in Quest: Making the grade, Class Reunion -- @zone = 238 -- @pos = 161 -2 161 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;...
gpl-3.0
nichwall/cuberite
lib/tolua++/src/bin/lua/define.lua
43
1317
-- tolua: define class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: define.lua,v 1.2 1999/07/28 22:21:08 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide ...
apache-2.0
Jennal/CocosBuilder
lua-binding/CCB/Loader.lua
2
5922
local CCBLoader = {} local function fillCallbacks(proxy, owner, names, nodes, events) if not owner then return end --Callbacks for i = 1, #names do local callbackName = names[i] local callbackNode = tolua.cast(nodes[i],"cc.Node") proxy:setCallback(callbackNode, function(sender, ev...
mit
czfshine/UpAndAway
code/lib/bitmask.lua
2
1088
--[[ -- Very basic bit mask implementation, intended to be used with physics -- collision masks. --]] local Pred = wickerrequire "lib.predicates" --[[ -- Returns the bits set by a number, counting from 0. --]] local function get_bits(n) assert( n >= 0 ) local ret = {} for i = 0, math.huge do if n...
gpl-2.0
xdemolish/darkstar
scripts/zones/Spire_of_Mea/npcs/_0l0.lua
1
1461
----------------------------------- -- Area: Spire of Mea -- NPC: Web of Recollection ----------------------------------- package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/global...
gpl-3.0
lighter-cd/premake4-mobile
src/tools/gcc.lua
2
5292
-- -- gcc.lua -- Provides GCC-specific configuration strings. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- premake.gcc = { } -- -- Set default tools -- premake.gcc.cc = "gcc" premake.gcc.cxx = "g++" premake.gcc.ar = "ar" -- -- Translation of Premake flags into GCC flags -- ...
mit
xdemolish/darkstar
scripts/zones/Labyrinth_of_Onzozo/npcs/qm2.lua
11
1497
----------------------------------- -- Area: Labyrinth of Onzozo -- NPC: ??? (qm2) -- Involved in Quest: Yomi Okuri -- @pos -176 10 -60 213 ----------------------------------- package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); re...
gpl-3.0
xdemolish/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/Limion_RK.lua
8
2996
----------------------------------- -- Area: The Sanctuary of Zi'Tah -- NPC: Limion, R.K. -- Border Conquest Guards -- @pos -252.454 -1.958 624.366 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
xdemolish/darkstar
scripts/zones/Yuhtunga_Jungle/TextIDs.lua
3
1310
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6382; -- Obtained: <item>. GIL_OBTAINED = 6383; -- Obtained <number> gil. KEYITEM_OBTAINED = 6385; -- Obtained...
gpl-3.0
hacker44-h44/mmmmmm
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
mrbangi/mrbangi
plugins/webshot.lua
919
1473
local helpers = require "OAuth.helpers" local base = 'https://screenshotmachine.com/' local url = base .. 'processor.php' local function get_webshot_url(param) local response_body = {} local request_constructor = { url = url, method = "GET", sink = ltn12.sink.table(response_body), header...
gpl-2.0
xdemolish/darkstar
scripts/zones/Port_Windurst/npcs/Uli_Pehkowa.lua
36
1578
----------------------------------- -- Area: Port Windurst -- NPC: Uli Pehkowa -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst/Te...
gpl-3.0
mohammad24/unixx
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
kaadmy/pixture
mods/hunger/init.lua
1
8788
-- -- Hunger mod -- For nodetest -- Tweaked by Kaadmy, for Pixture -- hunger = {} -- Per-player userdata hunger.userdata = {} local particlespawners = {} local player_step = {} local player_health_step = {} local player_bar = {} local hunger_file = minetest.get_worldpath() .. "/hunger.dat" local saving = false --...
lgpl-2.1
czfshine/UpAndAway
code/prefabs/sheepherd.lua
2
1705
BindGlobal() local assets = { --Asset("ANIM", "anim/arrow_indicator.zip"), } local prefabs = { "sheep", } local function CanSpawn(inst) return inst.components.herd and not inst.components.herd:IsFull() end local function OnSpawned(inst, newent) if inst.components.herd then inst.components.h...
gpl-2.0
nazrhyn/epgp-tep
LibDebug-1.0.lua
5
4933
-- A library to use for Debug information that provides a central way -- to enable/disable debugging on a special debug frame. local MAJOR_VERSION = "LibDebug-1.0" local MINOR_VERSION = tonumber(("$Revision: 1023 $"):match("%d+")) or 0 local lib, oldMinor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) if not lib ...
bsd-3-clause
samael65535/quick-ng
cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua
7
1162
-------------------------------- -- @module TransitionTurnOffTiles -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- -- @function [parent=#TransitionTurnOffTiles] easeActionWithAction -- @param self -- @param #cc.ActionInterval action -- @return ActionInterval#A...
mit
xdemolish/darkstar
scripts/zones/Sauromugue_Champaign/npcs/Stone_Monument.lua
32
1305
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos 77.544 -2.746 -184.803 120 ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; ---------------------------------...
gpl-3.0
mohammad24/unixx
plugins/rae.lua
616
1312
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
jarvissso3/jokerblue
plugins/plugins.lua
28
6273
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
xdemolish/darkstar
scripts/zones/La_Theine_Plateau/npcs/Cermet_Headstone.lua
17
2678
----------------------------------- -- Area: La Theine Plateau -- NPC: Cermet Headstone -- Involved in Mission: ZM5 Headstone Pilgrimage (Water Fragment) -- @pos -170 39 -504 102 ----------------------------------- package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil; --------------------------------...
gpl-3.0
yylangchen/Sample_Lua
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Component.lua
10
1379
-------------------------------- -- @module Component -- @extend Ref -- @parent_module cc -------------------------------- -- -- @function [parent=#Component] setEnabled -- @param self -- @param #bool b -------------------------------- -- -- @function [parent=#Component] setName -- @param self -- @param ...
mit
xdemolish/darkstar
scripts/zones/Castle_Oztroja/npcs/_47w.lua
17
1264
----------------------------------- -- Area: Castle Oztroja -- NPC: _47w (Handle) -- Notes: Opens door _473 from behind -- @pos -41.377 -17.084 17.036 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/z...
gpl-3.0
chris5560/openwrt-luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua
72
1073
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, defaultroute, metric, ttl, mtu ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), translate("Leave empty to use the current W...
apache-2.0
mohammad24/unixx
plugins/moderation.lua
336
9979
do local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then local username = v.username data[tostring(m...
gpl-2.0
cmotc/awesome
lib/awful/keygrabber.lua
1
3017
--------------------------------------------------------------------------- --- Keygrabber Stack -- -- @author dodo -- @copyright 2012 dodo -- @module awful.keygrabber --------------------------------------------------------------------------- local ipairs = ipairs local table = table local capi = { keygrabber = k...
gpl-2.0
xdemolish/darkstar
scripts/zones/Spire_of_Vahzl/Zone.lua
17
1579
----------------------------------- -- -- Zone: Spire_of_Vahzl (23) -- ----------------------------------- package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Spire_of_Vahzl/TextIDs"); require("scripts/g...
gpl-3.0
xdemolish/darkstar
scripts/zones/Apollyon/mobs/Apollyon_Scavenger.lua
17
1403
----------------------------------- -- Area: Apollyon NW -- NPC: Kaiser Behemoth ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Apollyon/TextIDs"); ----------------------------------- -- onMobSpawn Act...
gpl-3.0
cmotc/awesome
lib/gears/geometry.lua
1
8315
--------------------------------------------------------------------------- -- -- Helper functions used to compute geometries. -- -- When this module refer to a geometry table, this assume a table with at least -- an *x*, *y*, *width* and *height* keys and numeric values. -- -- @author Julien Danjou &lt;julien@danjou.i...
gpl-2.0
czfshine/UpAndAway
code/prefabs/golden_rose.lua
2
1100
BindGlobal() local assets = { Asset("ANIM", "anim/golden_rose.zip"), } local prefabs= { "golden_petals", } local function onpickedfn(inst) inst:Remove() end local function fn(Sim) local inst = CreateEntity() inst.entity:AddTransform() inst.entity:AddAnimState() inst.entity:AddSoundEmitte...
gpl-2.0
yylangchen/Sample_Lua
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayerColor.lua
10
1484
-------------------------------- -- @module LayerColor -- @extend Layer,BlendProtocol -- @parent_module cc -------------------------------- -- change width and height in Points<br> -- since v0.8 -- @function [parent=#LayerColor] changeWidthAndHeight -- @param self -- @param #float w -- @param #float h ----...
mit
samael65535/quick-ng
cocos/scripting/lua-bindings/auto/api/RichElementText.lua
13
1722
-------------------------------- -- @module RichElementText -- @extend RichElement -- @parent_module ccui -------------------------------- -- brief Initialize a RichElementText with various arguments.<br> -- param tag A integer tag value.<br> -- param color A color in Color3B.<br> -- param opacity A opacity in GLubyt...
mit
xdemolish/darkstar
scripts/zones/FeiYin/npcs/Dry_Fountain.lua
17
1453
----------------------------------- -- Area: FeiYin -- NPC: Dry Fountain -- Involved In Quest: Peace for the Spirit -- @pos -17 -16 71 204 ----------------------------------- package.loaded["scripts/zones/FeiYin/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requir...
gpl-3.0
moheb2076/dimond2
plugins/plugins.lua
1
6563
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-3.0
xdemolish/darkstar
scripts/zones/Buburimu_Peninsula/Zone.lua
2
2158
----------------------------------- -- -- Zone: Buburimu_Peninsula (118) -- ----------------------------------- package.loaded[ "scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Buburimu_Peninsula/TextIDs"); require("scripts/globals/icanheararainbow"...
gpl-3.0
xdemolish/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Saliyahf.lua
34
1033
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Saliyahf -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---------...
gpl-3.0
Javaxio/BadRotations
Libs/LibRangeCheck-2.0/LibStub-1.0/tests/test2.lua
100
1112
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() for major, library in LibStub:IterateLibraries() do -- check that MyLib doesn't exist yet, by iterating through all the libraries assert(major ~= "MyLib") end assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ...
gpl-3.0
xdemolish/darkstar
scripts/globals/effects/fan_dance.lua
17
1199
----------------------------------- -- -- EFFECT_FAN_DANCE -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) ...
gpl-3.0
xdemolish/darkstar
scripts/zones/Temenos/mobs/Enhanced_Beetle.lua
5
1048
----------------------------------- -- Area: Temenos W T -- NPC: Enhanced_Beetle ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------...
gpl-3.0
xdemolish/darkstar
scripts/zones/Cloister_of_Storms/bcnms/trial-size_trial_by_lightning.lua
13
2437
----------------------------------- -- Area: Cloister of Storms -- BCNM: Trial by Lightning ----------------------------------- package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("script...
gpl-3.0
xdemolish/darkstar
scripts/globals/items/cup_of_chocomilk.lua
35
1163
----------------------------------------- -- ID: 4498 -- Item: cup_of_chocomilk -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic Regen While Healing 3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
ForgedAddons/HunterAnnouncer
libs/AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua
2
6351
--[[----------------------------------------------------------------------------- Keybinding Widget Set Keybindings in the Config UI. -------------------------------------------------------------------------------]] local Type, Version = "Keybinding", 22 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not Ace...
apache-2.0
xdemolish/darkstar
scripts/globals/spells/ionohelix.lua
22
1721
-------------------------------------- -- Spell: Ionohelix -- Deals lightning damage that gradually reduces -- a target's HP. Damage dealt is greatly affected by the weather. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/glob...
gpl-3.0
xdemolish/darkstar
scripts/zones/Windurst_Waters/npcs/Akkeke.lua
36
1418
----------------------------------- -- Area: Windurst Waters -- NPC: Akkeke -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 135 -6 165 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- r...
gpl-3.0
raoulb/Enigma
doc/reference/soundset.lua
6
6668
-- -- This file demonstrates how to add a sound set to Enigma. -- -- Sound effects are triggered by so-called "sound events". These sound -- events usually have a name (like "dooropen") and an associated location -- (the coordinates of the door) which affects the way a sound effect is -- played. -- -- The sound event i...
gpl-2.0
bigbes/snippets
lua/init.lua
1
2330
local log = require('log') local errno = require('errno') local checkt_xc = require('migrate.utils.checktype').checkt_xc local basic_error = error local fmtstring = string.format -- Usage: error([level, ] format_string [, ...]) local error = function(...) local args = {...} local level = 1 if type(args...
bsd-3-clause
yylangchen/Sample_Lua
frameworks/cocos2d-x/tests/lua-tests/src/KeypadTest/KeypadTest.lua
13
1640
local function KeypadMainLayer() local layer = cc.Layer:create() local function onEnter() print("come in") local s = cc.Director:getInstance():getWinSize() local label = cc.Label:createWithTTF("Keypad Test", s_thonburiPath, 28) layer:addChild(label, 0) label:setAncho...
mit
HybridDog/minetest-skyblock
skyblock_levels/register_node.lua
1
1794
--[[ Skyblock for Minetest Copyright (c) 2015 cornernote, Brett O'Donnell <cornernote@gmail.com> Source Code: https://github.com/cornernote/minetest-skyblock License: GPLv3 ]]-- -- quest node minetest.override_item('skyblock:quest', { groups = {crumbly=2,cracky=2}, on_construct = function(pos) local player_nam...
gpl-3.0
czfshine/UpAndAway
code/prefabs/chest_sky.lua
2
2252
BindGlobal() local CFG = TheMod:GetConfig() require "prefabutil" local assets= { Asset("ANIM", "anim/chest_sky.zip"), Asset("ANIM", "anim/ui_chester_shadow_3x4.zip"), } local function onopen(inst) inst.AnimState:PlayAnimation("open") inst.SoundEmitter:PlaySound("dontstarve/wilson/chest_open")...
gpl-2.0
Andreas-Kreuz/ak-lua-skripte-fuer-eep
lua/LUA/ak/data/TrainDetection.lua
1
10722
if AkDebugLoad then print("[#Start] Loading ak.data.TrainDetection ...") end local TrainRegistry = require("ak.train.TrainRegistry") local RuntimeRegistry = require("ak.util.RuntimeRegistry") local TrackDetection = require("ak.data.TrackDetection") local RollingStockRegistry = require("ak.train.RollingStockRegistry") ...
mit
xdemolish/darkstar
scripts/globals/items/loach_gruel.lua
35
1674
----------------------------------------- -- ID: 5670 -- Item: loach_soup -- Food Effect: 4Hour,Group Food, All Races ----------------------------------------- -- Dexterity 2 -- Agility 2 -- Accuracy % 7 -- Accuracy Cap 30 -- HP % 7 -- HP Cap 30 -- Evasion 4 -- (Did Not Add Group Food Effect) -------------...
gpl-3.0
kshenoy/dotfiles
nvim/lua/packages.lua
1
3718
-- Lua interface to vim-plug by https://dev.to/vonheikemen/neovim-using-vim-plug-in-lua-3oom local plug = require('plug') local fn = vim.fn plug.begin(vim.fn.stdpath('data')..'/plugged') -- Some TPope plugins that really should be bundled vim *vim plug('tpope/vim-abolish') plug('tpope/vim-endwise') plug('tpope/vim-...
mit
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/Liquid.lua
8
3106
-------------------------------- -- @module Liquid -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of the effect.<br> -- param amplitudeRate The value of amplitude rate will be set. -- @function [parent=#Liquid] setAmplitudeRate -- @param self -- @param #...
apache-2.0
nichwall/cuberite
Server/Plugins/APIDump/Hooks/OnServerPing.lua
42
2367
return { HOOK_SERVER_PING = { CalledWhen = "Client pings the server from the server list.", DefaultFnName = "OnServerPing", -- also used as pagename Desc = [[ A plugin may implement an OnServerPing() function and register it as a Hook to process pings from clients in the server server list. It can change...
apache-2.0
xdemolish/darkstar
scripts/zones/Gusgen_Mines/npcs/_5gd.lua
34
1341
----------------------------------- -- Area: Gusgen Mines -- NPC: _5gd (Lever F) -- @pos 44 -20.56 143.802 196 ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Gusgen_Mines/TextIDs"); -----------------...
gpl-3.0
felixonmars/app
extensions/wikia/InfoboxBuilder/includes/lua/InfoboxBuilderView.lua
4
8875
local InfoboxBuilderView = {} -- Define dependencies local HF = mw.InfoboxBuilderHF -- Define a table to store global variables InfoboxBuilderView.vars = {} --[[ Private methods ]]-- --[[ ---- Function that renders a Line block ---- @param table field A table with all field's arguments ---- @return object ...
gpl-2.0
xdemolish/darkstar
scripts/zones/Tahrongi_Canyon/npcs/Dimensional_Portal.lua
17
1413
----------------------------------- -- Area: Tahrongi_Canyon -- NPC: Dimensional_Portal -- @pos 260.000 35.150 340.000 117 ----------------------------------- package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scrip...
gpl-3.0
CharLemAznable/lua-resty-wechat
lib/resty/wechat/utils/redis.lua
1
2184
local modname = "wechat_redis" local _M = { _VERSION = '0.0.1' } _G[modname] = _M local mt = { __index = _M } local ngx_now = ngx.now local ngx_sleep = ngx.sleep local function defaultReplyValue(originValue, defaultValue) if originValue and originValue ~= null and originValue ~= ngx.null then return originVal...
mit
hfjgjfg/mohammad
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
kshenoy/dotfiles
nvim/lua/keybindings.lua
1
2306
local map = vim.keymap -- Leader and LocalLeader ---------------------------------------------------------------------------------------------- -- The leader is used for global maps and localleader for buffer/filetype specific maps -- These need to be defined before the first map is called so they're defined in init.l...
mit
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/script/cocos2d/DrawPrimitives.lua
98
12024
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = cc.Application:getInstance():getTargetPlatform() lo...
apache-2.0
xdemolish/darkstar
scripts/zones/Beaucedine_Glacier/TextIDs.lua
5
1124
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6553; -- You cannot obtain the item. Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 6554; -- You cannot obtain the #. Try trading again after sorting your inventory. ITEM_OBTAINED = 6555; -- Obtained:...
gpl-3.0
blockplanet/blockplanet
builtin/mainmenu/tab_simple_main.lua
2
6362
--Minetest --Copyright (C) 2013 sapier -- --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.1 of the License, or --(at your option) any later version. -- --This program is ...
gpl-3.0
xdemolish/darkstar
scripts/zones/Windurst_Woods/npcs/Pew_Sahbaraef.lua
38
1038
---------------------------------- -- Area: Windurst Woods -- NPC: Pew Sahbaraef -- Type: Item Deliverer -- @zone: 241 -- @pos 61.899 -2.5 -112.956 -- ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; require("scripts/zones/Windurst_Woods/TextIDs"); --------------...
gpl-3.0
xdemolish/darkstar
scripts/globals/items/pumpkin_pie_+1.lua
35
1372
----------------------------------------- -- ID: 4447 -- Item: pumpkin_pie_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 45 -- Intelligence 4 -- Charisma -1 -- MP Recovered While Healing 1 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
xdemolish/darkstar
scripts/zones/Rabao/npcs/Waylea.lua
38
1048
----------------------------------- -- Area: Rabao -- NPC: Waylea -- Type: Reputation -- @zone: 247 -- @pos 12.384 4.658 -32.392 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ---------------------------------...
gpl-3.0
hsiaoyi/Melo
cocos2d/cocos/scripting/lua-bindings/auto/api/WebView.lua
2
5205
-------------------------------- -- @module WebView -- @extend Widget -- @parent_module ccexp -------------------------------- -- Gets whether this WebView has a back history item.<br> -- return WebView has a back history item. -- @function [parent=#WebView] canGoBack -- @param self -- @return bool#bool ret (return ...
apache-2.0
xdemolish/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Rohn_Ehlbalna.lua
38
1051
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Rohn Ehlbalna -- Type: Standard NPC -- @zone: 94 -- @pos -43.473 -4.5 46.496 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil...
gpl-3.0
xdemolish/darkstar
scripts/globals/spells/absorb-int.lua
2
1263
-------------------------------------- -- Spell: Absorb-INT -- Steals an enemy's intelligence. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast --------...
gpl-3.0
mahdib9/ml
plugins/dic.lua
31
1662
--[[ -- Translate text using Google Translate. -- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello --]] do function translate(source_lang, target_lang, text) local path = "http://translate.google.com/translate_a/single" -- URL query parameters local pa...
gpl-2.0
Andreas-Kreuz/ak-lua-skripte-fuer-eep
lua/LUA/ak/public-transport/RoadStation.lua
1
7253
local Platform = require("ak.public-transport.Platform") local StationQueue = require("ak.public-transport.StationQueue") local StorageUtility = require("ak.storage.StorageUtility") if AkDebugLoad then print("[#Start] Loading ak.public-transport.RoadStation ...") end ---@class RoadStation ---@field type string ---@fi...
mit
xdemolish/darkstar
scripts/zones/Port_Bastok/npcs/Romilda.lua
36
2365
----------------------------------- -- Area: Port Bastok -- NPC: Romilda -- Involved in Quest: Forever to Hold -- Starts & Ends Quest: Till Death Do Us Part ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globa...
gpl-3.0
xdemolish/darkstar
scripts/globals/weaponskills/mercy_stroke.lua
1
1833
----------------------------------- -- Mercy Stroke -- Dagger weapon skill -- Skill level: N/A -- Batardeau/Mandau: Temporarily improves params.critical hit rate. -- Aftermath gives +5% params.critical hit rate. -- Must have Batardeau, Mandau, or Clement Skean equipped. -- Aligned with the Shadow Gorget &...
gpl-3.0
zorggn/LDME
source/log.lua
1
4668
-- Framework logging library -- by zorg @ 2015 license: ISC --[[Code Flow: require -> this --]] --[[Notes: - Basic functions are to log a string into a file - More advanced is the fact that one can choose to selectively log - Even moreso is that one can set what identity the logger will use to find the path it'l...
isc
Neopallium/lua-zmq
examples/poller/epoll.lua
2
3456
-- Copyright (c) 2012 Robert G. Jakabosky <bobby@sharedrealm.com> -- -- 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,...
mit
cmotc/awesome
lib/wibox/container/rotate.lua
1
4235
--------------------------------------------------------------------------- -- A container rotating the conained widget by 90 degrees. -- --@DOC_wibox_container_defaults_rotate_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @classmod wibox.container.rotate --------------------------------------...
gpl-2.0
lukego/snabb
lib/ljsyscall/syscall/netbsd/types.lua
24
22649
-- NetBSD types local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(types) local abi = requi...
apache-2.0
xdemolish/darkstar
scripts/globals/items/dish_of_spaghetti_peperoncino_+1.lua
35
1403
----------------------------------------- -- ID: 5197 -- Item: dish_of_spaghetti_peperoncino_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 30 -- Health Cap 75 -- Vitality 2 -- Store TP 6 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
freem/ultralight
Graphics/ScreenGameplay BPMDisplay.lua
1
3890
--[[ return Def.ActorFrame{ LoadFont("Common normal")..{ Text="BPM"; InitCommand=cmd(shadowlength,1;y,-16;zoom,0.5;strokecolor,color("#00000000")); }; Def.SongBPMDisplay { File=THEME:GetPathF("Common", "normal"); Name="BPMDisplay"; SetCommand=function(self) self:SetFromGameState() end; InitCommand=cmd(sh...
unlicense
xdemolish/darkstar
scripts/zones/Apollyon/mobs/Light_Elemental.lua
119
2423
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); --------------------------...
gpl-3.0
xdemolish/darkstar
scripts/zones/Apollyon/mobs/Fire_Elemental.lua
119
2423
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); --------------------------...
gpl-3.0
xdemolish/darkstar
scripts/zones/Windurst_Waters/npcs/Foi-Mui.lua
36
1418
----------------------------------- -- Area: Windurst Waters -- NPC: Foi-Mui -- Involved in Quest: Making the Grade -- Working 100% -- @zone = 238 -- @pos = 126 -6 162 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
xdemolish/darkstar
scripts/globals/items/serving_of_salmon_meuniere.lua
35
1404
----------------------------------------- -- ID: 4583 -- Item: serving_of_salmon_meuniere -- Food Effect: 180Min, All Races ----------------------------------------- -- Dexterity 2 -- Mind -2 -- Ranged ACC % 7 -- Ranged ACC Cap 10 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
xdemolish/darkstar
scripts/zones/Castle_Oztroja/npcs/qm1.lua
11
1469
----------------------------------- -- Area: Castle Oztroja -- NPC: qm1 (???) -- Involved in Quest: True Strength -- @pos -100 -71 -132 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
xdemolish/darkstar
scripts/zones/Al_Zahbi/npcs/Rughadjeen.lua
38
1030
----------------------------------- -- Area: Al Zahbi -- NPC: Rughadjeen -- Type: Skyserpent General -- @zone: 48 -- @pos -74.150 -7 70.656 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -------------------...
gpl-3.0
czfshine/UpAndAway
tools/modanalyzer/matching.lua
2
4731
local assert = assert local tostring = tostring local string = string local table = table local getmetatable, setmetatable = getmetatable, setmetatable local select = select --- local lpeg = require "lpeg" --- local function anywhere(patt) return lpeg.P{ patt + lpeg.P(1) * lpeg.V(1) } end local patt = (function(...
gpl-2.0
xdemolish/darkstar
scripts/globals/items/plate_of_mushroom_paella.lua
36
1409
----------------------------------------- -- ID: 5970 -- Item: Plate of Mushroom Paella -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- HP 40 -- Strength -1 -- Mind 5 -- Magic Accuracy 5 -- Undead Killer 5 ----------------------------------------- require("scripts/globals/status"); -----...
gpl-3.0
peymankhanas84877/Horror_Avatar_bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
hfjgjfg/mohammad
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
LuaDist2/cqueues
regress/71-empty-cqueue.lua
1
2422
#!/bin/sh _=[[ . "${0%%/*}/regress.sh" exec runlua "$0" "$@" ]] require"regress".export".*" -- -- Issue #71A -- After the addition of alerts, cqueue:loop waited indefinitely -- on an empty queue when the original, more desirable behavior was that it -- should immediately return. -- -- Issue #71B -- cqueue:step did n...
mit
xdemolish/darkstar
scripts/zones/Southern_San_dOria/npcs/Faulpie.lua
8
2569
----------------------------------- -- Area: Southern San d'Oria -- NPC: Faulpie -- Type: Leathercraft Guild Master -- @pos -178.882 -2 9.891 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/crafting"...
gpl-3.0
lighter-cd/premake4-mobile
src/tools/dotnet.lua
40
1857
-- -- dotnet.lua -- Interface for the C# compilers, all of which are flag compatible. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- premake.dotnet = { } premake.dotnet.namestyle = "windows" -- -- Translation of Premake flags into CSC flags -- local flags = { FatalWarning = "/warnase...
mit
lukego/snabb
lib/ljsyscall/examples/epoll.lua
23
3206
-- simple epoll-based socket example. Serves up http responses, but is of course not a proper server -- you can test performance with ab -n 100000 -c 100 http://localhost:8000/ although ab may be the limiting factor local S if arg[1] == "rump" then S = require "syscall.rump.init".init{"net", "net.net", "net.local", ...
apache-2.0
samael65535/quick-ng
quick/framework/json.lua
11
3469
--[[ Copyright (c) 2011-2014 chukong-inc.com 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...
mit
kissthink/OpenRA
mods/ra/maps/soviet-04b/main.lua
15
4003
RunInitialActivities = function() Harvester.FindResources() Helper.Destroy() IdlingUnits() Trigger.AfterDelay(DateTime.Seconds(1), function() BringPatrol1() Trigger.AfterDelay(DateTime.Seconds(5), function() BringPatrol2() end) BuildBase() end) Utils.Do(Map.NamedActors, function(actor) if actor.Own...
gpl-3.0
czfshine/UpAndAway
code/postinits/biome_effects.lua
2
1495
modrequire "lib.climbing" local function start_snow() TheMod:DebugSay("start_snow()") local sm = GetPseudoSeasonManager() if sm then sm:AlwaysWet() sm:StartPrecip() end end local function stop_snow() TheMod:DebugSay("stop_snow()") local sm = GetPseudoSeasonManager() if sm ...
gpl-2.0
samael65535/quick-ng
cocos/scripting/lua-bindings/auto/api/GridBase.lua
9
4540
-------------------------------- -- @module GridBase -- @extend Ref -- @parent_module cc -------------------------------- -- Set the size of the grid. -- @function [parent=#GridBase] setGridSize -- @param self -- @param #size_table gridSize -- @return GridBase#GridBase self (return value: cc.GridBase) -----...
mit
xdemolish/darkstar
scripts/zones/Garlaige_Citadel/Zone.lua
1
3957
----------------------------------- -- -- Zone: Garlaige_Citadel (200) -- ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Garlai...
gpl-3.0