commit
stringlengths
40
40
old_file
stringlengths
6
92
new_file
stringlengths
6
92
old_contents
stringlengths
0
2.22k
new_contents
stringlengths
68
2.86k
subject
stringlengths
19
253
message
stringlengths
20
711
lang
stringclasses
1 value
license
stringclasses
11 values
repos
stringlengths
10
33.5k
93da9f842e95d65aec88202a1adc0215b81bf888
xmake.lua
xmake.lua
-- lcui.css set_project("lcui.css") -- xmake minver set_xmakever("2.1.6") -- the debug mode if is_mode("debug") then -- enable the debug symbols set_symbols("debug") -- disable optimization set_optimize("none") end -- the release mode if is_mode("release") then -- enable fastest optimizat...
-- lcui.css set_project("lcui.css") -- xmake minver set_xmakever("2.1.6") -- the debug mode if is_mode("debug") then -- enable the debug symbols set_symbols("debug") -- disable optimization set_optimize("none") end -- the release mode if is_mode("release") then -- enable fastest optimizat...
Add LCUI link if os is windows
Add LCUI link if os is windows
Lua
mit
lc-ui/lcui.css,lc-ui/lcui.css,lc-ui/lcui.css
582342bd254e3f80ccc8db8c60945df1dd007542
examples/custom-module/verbose.lua
examples/custom-module/verbose.lua
local apicast = require('apicast') local _M = { _VERSION = '0.0' } local mt = { __index = apicast } function _M.log() ngx.log(ngx.WARN, 'upstream response time: ', ngx.var.upstream_response_time, ' ', 'upstream connect time: ', ngx.var.upstream_connect_time) end return setmetatable(_M, mt)
local apicast = require('apicast') local _M = { _VERSION = '0.0' } local mt = { __index = apicast } function _M.new() return setmetatable(_M, { __index = apicast.new() }) end function _M.log() ngx.log(ngx.WARN, 'upstream response time: ', ngx.var.upstream_response_time, ' ', 'upstream connect time: ', ng...
Fix the custom module example
Fix the custom module example
Lua
mit
3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/apicast
445ce57a05b6e07a5062991775d4e3c7e699f4b7
nesms.lua
nesms.lua
msg = ""; function write_file (filename, text) output = io.open(filename, "w"); io.output(output); io.write(text); io.close(output); end; function read_file (filename) input = io.open(filename, "r"); io.input(input); input_content = io.read(); io.close(input); return input_content...
Add listener for sms messages on FCEUX
Add listener for sms messages on FCEUX
Lua
mit
sagnew/NESMS,sagnew/NESMS
6441e75b7b3b71b21d0def84b05c51c8d12f58fd
src/util.lua
src/util.lua
local util = {} function util.deepcompare(t1,t2,ignore_mt) local ty1 = type(t1) local ty2 = type(t2) if ty1 ~= ty2 then return false end -- non-table types can be directly compared if ty1 ~= 'table' and ty2 ~= 'table' then return t1 == t2 end -- as well as tables which have the metamethod __eq local mt1 =...
local util = {} function util.deepcompare(t1,t2,ignore_mt) local ty1 = type(t1) local ty2 = type(t2) if ty1 ~= ty2 then return false end -- non-table types can be directly compared if ty1 ~= 'table' and ty2 ~= 'table' then return t1 == t2 end local mt1 = getmetatable(t1) local mt2 = getmetatable(t2) -- ...
Use identity for comparison when possible
Use identity for comparison when possible There's no need to recursively compare tables when we know that they are the same identity-wise. It saves us some work, but what's more it also makes it usable for tables containing LuaJIT cdata. Deep comparing such tables will always fail, since cdata is not comparable.
Lua
mit
mpeterv/luassert,tst2005/lua-luassert,ZyX-I/luassert,o-lim/luassert
0ae21b609722742e45b998dc8834b05e9da0070a
src/program/example_replay/example_replay.lua
src/program/example_replay/example_replay.lua
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local pcap = require("apps.pcap.pcap") local raw = require("apps.socket.raw") function run (parameters) if not (#parameters == 2) then print("Usage: example_replay <pcap-file> <interface>") main....
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local pcap = require("apps.pcap.pcap") local raw = require("apps.socket.raw") function run (parameters) if not (#parameters == 2) then print("Usage: example_replay <pcap-file> <interface>") main....
Remove unintentional addition of claim_name to example_relay
Remove unintentional addition of claim_name to example_relay I accidently left a claim_name from when I was debugging, this commit removes that. Oops!
Lua
apache-2.0
Igalia/snabb,eugeneia/snabb,eugeneia/snabb,eugeneia/snabb,Igalia/snabbswitch,alexandergall/snabbswitch,Igalia/snabbswitch,snabbco/snabb,Igalia/snabbswitch,eugeneia/snabb,snabbco/snabb,dpino/snabb,alexandergall/snabbswitch,heryii/snabb,alexandergall/snabbswitch,dpino/snabbswitch,snabbco/snabb,snabbco/snabb,alexandergall...
f18b34e83ab6a9355685f796ae36e5ac2ab10cb7
test_scripts/API/Expand_PutFile/commonPutFile.lua
test_scripts/API/Expand_PutFile/commonPutFile.lua
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/actions") --[[ Gene...
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/actions") local util...
Replace external crc32 utility by internal one
Replace external crc32 utility by internal one
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
e656434cca7bec722f191cd5b3105c0094ac28e1
src/lua/run_engine.lua
src/lua/run_engine.lua
-- Copyright (C) 2016 Luke San Antonio -- All rights reserved. local rc = require("redcrane") local server_mode, sandbox = ... if server_mode == "dedicated" then rc:log_i("Starting dedicated server") elseif server_mode == "connect" then rc:log_i("Connecting") elseif server_mode == "local" then rc:log_i("Start...
-- Copyright (C) 2016 Luke San Antonio -- All rights reserved. local rc = require("redcrane") local server_mode, sandbox = ... if server_mode == "dedicated" then rc:log_i("Starting dedicated server") elseif server_mode == "connect" then rc:log_i("Connecting") elseif server_mode == "local" then rc:log_i("Start...
Handle errors when loading the client entry file
Handle errors when loading the client entry file
Lua
bsd-3-clause
RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine,RedCraneStudio/redcrane-engine
5e510c1148c4d06f635872cacd6c14679bc14058
proto.lua
proto.lua
--[[ This section will most likely be written in C and simply exposed to the scripts ]]-- function inheritsFrom( baseClass ) -- http://lua-users.org/wiki/InheritanceTutorial local new_class = {} local class_mt = { __index = new_class } function new_class:new() local newinst = {} set...
Add lua outline of a job
Add lua outline of a job
Lua
mit
rphillips/resque-c,rphillips/resque-c
97ac0c55cda45aacedf89af0e5985183536827f3
data/modules/runonce_check.lua
data/modules/runonce_check.lua
--[[ Copyright 2018 The Nakama Authors 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 in writing, s...
--[[ Copyright 2018 The Nakama Authors 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 in writing, s...
Update runtime run once example.
Update runtime run once example.
Lua
apache-2.0
heroiclabs/nakama,heroiclabs/nakama,heroiclabs/nakama,heroiclabs/nakama,heroiclabs/nakama,heroiclabs/nakama
39c07fb88c34dfdacdf4500686770e9853f1e7af
src/cosy/heroku/cli.lua
src/cosy/heroku/cli.lua
local Lfs = require "lfs" local Lustache = require "lustache" local Colors = require 'ansicolors' local Arguments = require "argparse" local Serpent = require "serpent" local parser = Arguments () { name = "cosy-heroku", description = "Generate configuration", } parser:option "--where" { descr...
local Lfs = require "lfs" local Lustache = require "lustache" local Colors = require 'ansicolors' local Arguments = require "argparse" local Serpent = require "serpent" local parser = Arguments () { name = "cosy-heroku", description = "Generate configuration", } parser:option "--where" { descr...
Set server log to console in heroku.
Set server log to console in heroku.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
98353d6fad8c7b25c79d041aedb6911e1d485fb4
src/ngx-oauth-proxy.lua
src/ngx-oauth-proxy.lua
--------- -- Proxy script for OAuth 2.0. local config = require 'ngx-oauth.config' local Cookies = require 'ngx-oauth.Cookies' local ethr = require 'ngx-oauth.either' local nginx = require 'ngx-oauth.nginx' local oauth = require 'ngx-oauth.oauth2' local either = ethr.either local function write_auth_header (...
Add proxy script for nginx
Add proxy script for nginx
Lua
mit
jirutka/ngx-oauth,jirutka/ngx-oauth
31bc8604a412db9941c94affabeab680e0d3e4b1
build/scripts/tools/assimp.lua
build/scripts/tools/assimp.lua
TOOL.Name = "Assimp" TOOL.Directory = "../plugins/Assimp" TOOL.Kind = "Plugin" TOOL.TargetDirectory = "../SDK/lib" TOOL.Includes = { "../include", "../plugins/Assimp" } TOOL.Files = { "../plugins/Assimp/**.hpp", "../plugins/Assimp/**.inl", "../plugins/Assimp/**.cpp" } TOOL.Libraries = { "NazaraCore", "Naz...
TOOL.Name = "Assimp" TOOL.Directory = "../plugins/Assimp" TOOL.Kind = "Plugin" TOOL.TargetDirectory = "../SDK/lib" TOOL.Includes = { "../extlibs/include", "../include", "../plugins/Assimp" } TOOL.Files = { "../plugins/Assimp/**.hpp", "../plugins/Assimp/**.inl", "../plugins/Assimp/**.cpp" } TOOL.Libraries =...
Fix compilation error because of missing includes
Build/Assimp: Fix compilation error because of missing includes Former-commit-id: b13f32ba6a53da69c8243425ca19766c96b97d26 [formerly 66000790be4f8ebe750ebe0d241f764b668278a1] Former-commit-id: 1da2a2b75eb42f118a1b843463fe715bd5fbabb0
Lua
mit
DigitalPulseSoftware/NazaraEngine
d938919a00d1ad196491c6194c4b85a20c6155e8
src/program/lwaftr/tests/propbased/prop_nocrash.lua
src/program/lwaftr/tests/propbased/prop_nocrash.lua
#!/usr/bin/env luajit module(..., package.seeall) local genyang = require("program.lwaftr.tests.propbased.genyang") local common = require("program.lwaftr.tests.propbased.common") local run_pid = {} local current_cmd function property() current_cmd = genyang.generate_get(run_pid[1]) local results = (genyang.ru...
#!/usr/bin/env luajit module(..., package.seeall) local genyang = require("program.lwaftr.tests.propbased.genyang") local common = require("program.lwaftr.tests.propbased.common") local run_pid = {} local current_cmd function property() current_cmd = genyang.generate_get_or_set(run_pid[1]) local results = (gen...
Use new set command generation for nocrash test
Use new set command generation for nocrash test And bump test duration
Lua
apache-2.0
alexandergall/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,dpino/snabb,dpino/snabb,dpino/snabbswitch,alexandergall/snabbswitch,heryii/snabb,alexandergall/snabbswitch,heryii/snabb,snabbco/snabb,Igalia/snabbswitch,heryii/snabb,heryii/snabb,alexandergall/snabbswitch,SnabbCo/snabbswitch,SnabbCo/snabbswitch,eugeneia/s...
2deb4336827f652b2e1afc22a1783d9c9e909229
vrp/cfg/cloakrooms.lua
vrp/cfg/cloakrooms.lua
-- this file configure the cloakrooms on the map local cfg = {} -- cloakroom types (_config, map of name => customization) cfg.cloakroom_types = { ["police"] = { _config = { permission = "police.cloakroom" }, ["Uniform"] = { [3] = {32,0}, [4] = {25,2}, [6] = {24,0}, [8] = {58,0}, ...
-- this file configure the cloakrooms on the map local cfg = {} -- cloakroom types (_config, map of name => customization) cfg.cloakroom_types = { ["police"] = { _config = { permission = "police.cloakroom" }, ["Uniform"] = { [3] = {30,0}, [4] = {25,2}, [6] = {24,0}, [8] = {58,0}, ...
Fix police default cloak issues
Fix police default cloak issues
Lua
mit
ImagicTheCat/vRP,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ENDrain/vRP-plusplus,ImagicTheCat/vRP
0ed3a8e9a7ce14bfbe596d6aeeedade4da48d57c
client.lua
client.lua
-- client to connect to telnet host = 'localhost' port = 4000 timeout = 0.001 local socket = require 'socket' function client_connect(port) client = assert(socket.connect(host, port)) client:settimeout(timeout) print("tcp no delay", client:setoption('tcp-nodelay', true)) end -- Get data from Evennia function data...
-- client to connect to telnet host = 'localhost' port = 4000 timeout = 0.001 local socket = require 'socket' function client_connect(port) client = assert(socket.connect(host, port)) client:settimeout(timeout) print("tcp no delay", client:setoption('tcp-nodelay', true)) end -- Get data from Evennia function data...
Add a sleep time for my powerful iMac
Add a sleep time for my powerful iMac
Lua
mit
karthikncode/text-world-player,karthikncode/text-world-player,ljm342/text-world-player,ljm342/text-world-player
ec1a8990d0f0478f4a14defdc1ebf8b89c1516cd
hammerspoon/modules/redshift.lua
hammerspoon/modules/redshift.lua
-- Redshift menubar local Redshift = { menubar = hs.menubar.new(), active = false, temperature = 2700, start = "20:00", stop = "08:00", fade = "2h", inverted = false } function Redshift:on() self.active = true self.menubar:setIcon("./assets/moon.pdf") hs.redshift.sta...
-- Redshift menubar local Redshift = { menubar = hs.menubar.new(), active = false, temperature = 2700, start = "20:00", stop = "08:00", fade = "2h", inverted = false } function Redshift:on() self.active = true self.menubar:setIcon("./assets/moon.pdf") hs.redshift.sta...
Rephrase hotkey message on Redshift
hs: Rephrase hotkey message on Redshift
Lua
mit
sebastianmarkow/dotfiles
b8ea780767b7e97ef0a09bf6b62b750c24e4dd1b
lua/expression_lists.lua
lua/expression_lists.lua
a, b = 5, 6, 7 -- extra results ignored c, d, e, f = 5, 6, 7 -- extra vars get undefined assert(a == 5 and b == 6) assert(c == 5 and d == 6 and e == 7 and f == nil)
a, b = 5, 6, 7 -- extra results ignored c, d, e, f = 5, 6, 7 -- extra vars become nil assert(a == 5 and b == 6) assert(c == 5 and d == 6 and e == 7 and f == nil)
Fix Lua comment, we want nil, not undefined
Fix Lua comment, we want nil, not undefined
Lua
mit
rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal...
97c2a8c6fc6003bafd316173eb89466a27c9f403
lua/radish/audio/init.lua
lua/radish/audio/init.lua
local ffi = require 'ffi' local audio = {} audio.loaders = {} function audio.load(path) for i, loader in ipairs(audio.loaders) do local attempt, message = loader(path) if attempt ~= nil then return attempt else print(tostring(message)) end end return nil end local default_loaders = { require 'rad...
local ffi = require 'ffi' local audio = {} audio.loaders = {} function audio.load(path) local failures for i, loader in ipairs(audio.loaders) do local attempt, message = loader(path) if attempt ~= nil then return attempt else failures = failures or {} failures[#failures+1] = message end end ret...
Return failures from audio.load instead of printing them
Return failures from audio.load instead of printing them
Lua
mit
taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish,taxler/radish
343c0fd6eaae79945caabcc7d7a0d86018595ee0
neovim/.config/nvim/ftplugin/htmldjango.lua
neovim/.config/nvim/ftplugin/htmldjango.lua
-- Load emmet HTML quickwrite plugin. vim.cmd('packadd emmet-vim') -- Add twig pattern files to path to be able to configure below. Enables `gf` -- on include to jump to that file. MSK specific. vim.opt.path:append('/Users/delucac/Sites/msk-design-system/src/patterns/') -- Set pattern for vim to recognize twig includ...
-- Load emmet HTML quickwrite plugin. vim.cmd('packadd emmet-vim') -- Set pattern for vim to recognize twig includes. vim.opt.include = "^\\s*{%\\s*include|^\\s*{%\\s*embed|^\\s*{%\\s*extends" -- Use twig commenting instead of HTML. vim.opt.commentstring="{# %s #}" local ft = require('Comment.ft') ft.set('htmldjango'...
Fix twig commenting for treesitter
Fix twig commenting for treesitter
Lua
mit
bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles
f1bd55518b0277d12dd6514c5779e139e8d0dff0
interface/dependencies/arp.lua
interface/dependencies/arp.lua
local arp = require "proto.arp" local arpThread = require "threads.arp" local dependency = {} function dependency.env(env) function env.arp(ip, fallback, timeout) return { "arp", ip, fallback, timeout or 5, arpThread.counter } end end local function macString(addr) if type(addr) == "number" then local mac = r...
local arp = require "proto.arp" local dependency = {} function dependency.env(env) function env.arp(ip, fallback, timeout) return { "arp", ip, fallback, timeout or 5 } end end local function macString(addr) if type(addr) == "number" then local mac = require("ffi").new("union mac_address") mac:set(addr) re...
Remove unnecessary reference to ARP thread.
Remove unnecessary reference to ARP thread.
Lua
mit
scholzd/MoonGen,emmericp/MoonGen,dschoeffm/MoonGen,dschoeffm/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,scholzd/MoonGen,gallenmu/MoonGen,emmericp/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,gallenmu/MoonGen,dschoeffm/MoonGen
adadeaa50d89e0110485ae78f12caaea6f00fe4e
project_1_lua/guests.lua
project_1_lua/guests.lua
-- Array of guests list and its length guests = { } guestsLen = 0 -- Create a new guest, add it to list and update the size number. -- PARAM -- name : string complete guest name -- cpf : string valid personal ID (t: cadastro de pessoa física) formatted as XXX.XXX.XXX-XX -- RETURN -- true : boolean if it worked -...
Add create and read functions
Add create and read functions
Lua
unlicense
Mazuh/BugginhoDeveloper-Mini-Projects
7a2ac2ddcc16df901fad3b9239822bad5471f62b
samples/gtkclipboard.lua
samples/gtkclipboard.lua
#! /usr/bin/env lua -- Gtk clipboard sample, adapted from Vala clipboard sample at -- http://live.gnome.org/Vala/GTKSample#Clipboard local lgi = require 'lgi' local Gtk = lgi.Gtk local Gdk = lgi.Gdk local app = Gtk.Application { application_id = 'org.lgi.samples.gtkclipboard' } function app:on_activate() local e...
Add simple port of Gtk clipboard Vala sample
Add simple port of Gtk clipboard Vala sample
Lua
mit
zevv/lgi,pavouk/lgi,psychon/lgi
4a2d82dd829f00ee6a4cbb255cdc44e1d69d1d11
himan-scripts/precipitation-phase.lua
himan-scripts/precipitation-phase.lua
-- -- Probability of precipitation phase P(W) given 2 meter temperature (C) and relative humidity (%). -- -- Algorithm is a statistical fitting between conventional observations and radar data. -- -- Jarmo Koistinen FMI, Gregorz Ciach -- -- https://wiki.fmi.fi/pages/viewpage.action?pageId=21139101&preview=/21139101/213...
Add script to produce precipitation phase ie. 'Koistisen kaava'
Add script to produce precipitation phase ie. 'Koistisen kaava'
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
8c137a78b23a7f49453e0223eac1f539d772aa67
data/scene/osirisrex/scheduled_scripts.lua
data/scene/osirisrex/scheduled_scripts.lua
return { { Time = "2016 SEP 08 23:10:13", ReversibleLuaScript = { Forward = "openspace.printInfo('forward test 1');", Backward = "openspace.printInfo('backward test 1');", } }, { Time = "2016 SEP 09 00:08:13", ReversibleLuaScript = { Forward = "openspace.printInfo('forward test 2');", Backward...
function enable(name, enabled) return "openspace.setPropertyValue('" .. name .. ".renderable.enabled', " .. (enabled and "true" or "false") .. ");"; end function scheduleEnabled(time, name, enabled) return { Time = time, ReversibleLuaScript = { Forward = enable(name, enabled), Backward = enable(name, not...
Add scheduled scripts for enabling different Bennu trails
Add scheduled scripts for enabling different Bennu trails
Lua
mit
OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace
8b467018753ff70cf3bf3973cbb46f5bf34c40e1
examples/policies/token_introspection_configuration.lua
examples/policies/token_introspection_configuration.lua
local policy_chain = require('apicast.policy_chain').default() local token_policy = require('apicast.policy.token_introspection').new({ introspection_url = "http://localhost:8080/auth/realms/3scale/protocol/openid-connect/token/introspect", client_id = "YOUR_CLIENT_ID", client_secret = "YOUR_CL...
Add an example configuration file for token introspection.
Add an example configuration file for token introspection.
Lua
mit
3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/docker-gateway,3scale/apicast,3scale/apicast
66f1e59e769c4d12f0de4f8a6b43bb32d91368ef
examples/auth_pingpong.lua
examples/auth_pingpong.lua
package.path = '../src/?.lua;src/?.lua;' .. package.path pcall(require, 'luarocks.require') local nats = require 'nats' local params = { host = '127.0.0.1', port = 4222, } local client = nats.connect(params) client:enable_trace() client:set_auth('user', 'password') client:connect() client:ping()
Add an example for authorization required server
Add an example for authorization required server
Lua
mit
DawnAngel/lua-nats
96ff095a6eea48d0fb8adcbc4733f2f90b0ec09b
math.lua
math.lua
function gen_addend_pairs(x) local ps = {} for i=1,x/2 do local p = {i, x-i} table.insert(ps, p) end return ps end --t = gen_addend_pairs(10) --table.foreachi(t , function(i) print(t[i][1],t[i][2]) end)
local MIN_DELTA = 1 local MAX_DELTA = 1 function gen_addend_pairs(x) local ps = {} for i=1,x/2 do local p = {i, x-i} table.insert(ps, p) end return ps end function gen_non_addend_pairs(x) local nps = {} local ps = gen_addend_pairs(x) table.foreach(ps, function(i) print(ps[i][1], ps[i][2], "H...
Add function for generating invalid but seemingly close addend pairs for given number
Add function for generating invalid but seemingly close addend pairs for given number
Lua
mit
David1Socha/number-nibbler
f328596ffd6a0b62faa0778e0f3cda0608a51937
nvim/lua/user/plugins/projectionist.lua
nvim/lua/user/plugins/projectionist.lua
vim.g.projectionist_heuristics = { artisan = { ['*'] = { start = 'sail up', console = 'sail tinker', }, ['app/Models/*.php'] = { type = 'model', }, ['app/Http/Controllers/*.php'] = { type = 'controller', }, ['routes/*.php'] = { type = 'route', }, ['dat...
vim.g.projectionist_heuristics = { artisan = { ['*'] = { start = 'sail up', console = 'sail tinker', make = 'npm run dev', }, ['app/Models/*.php'] = { type = 'model', }, ['app/Http/Controllers/*.php'] = { type = 'controller', }, ['routes/*.php'] = { type...
Add default make command for Laravel projects
Add default make command for Laravel projects
Lua
mit
jessarcher/dotfiles,jessarcher/dotfiles,jessarcher/dotfiles
df3660a80a903148d9f4506aa1ea679971d088af
premake5.lua
premake5.lua
assert(os.getenv("SOURCE_SDK"), "SOURCE_SDK environmental variable not set") local SOURCE_SDK = os.getenv("SOURCE_SDK") .. "/mp/src" solution "gm_stringtable" language "C++" location "project" targetdir "bin" flags { "StaticRuntime" } includedirs { "include", path.join(SOURCE_SDK, "common"), path.join(SO...
dofile("../../common.lua") RequireDefaultlibs() SOLUTION "gm_stringtable" targetdir "bins" INCLUDES "source_sdk" INCLUDES "gmod_sdk" defines {"NDEBUG"} WINDOWS() LINUX() PROJECT() SOURCE_SDK_LINKS() configuration "windows" configuration "linux"
Fix the build for the build agent
Fix the build for the build agent
Lua
apache-2.0
glua/gm_stringtable,LennyPenny/gm_stringtable,LennyPenny/gm_stringtable,meepdarknessmeep/gm_stringtable,glua/gm_stringtable,meepdarknessmeep/gm_stringtable,meepdarknessmeep/gm_stringtable
b83e77b6a64a48adf81012bc3d266eb6f4a9b88d
stdlib/game.lua
stdlib/game.lua
--- Game module -- @module game Game = {} --- Messages all players currently connected to the game -- @param msg message to send to players -- @param condition (optional) optional condition to be true for the player to be messaged -- @return the number of players who received the message function Game.print_all(msg, ...
--- Game module -- @module game Game = {} --- Messages all players currently connected to the game -- @param msg message to send to players -- @param condition (optional) optional condition to be true for the player to be messaged -- @return the number of players who received the message function Game.print_all(msg, ...
Fix reversed boolean logic with Game.print_all
Fix reversed boolean logic with Game.print_all
Lua
isc
Afforess/Factorio-Stdlib
2f85f90147b03c0b008cbaa46cc424df4fd94d84
lua/engine/gl.lua
lua/engine/gl.lua
local ffi = require 'ffi' ffi.cdef [[ enum { GL_DEPTH_BUFFER_BIT = 0x00000100, GL_STENCIL_BUFFER_BIT = 0x00000400, GL_COLOR_BUFFER_BIT = 0x00004000 }; typedef float GLclampf; typedef int GLint; typedef int GLsizei; typedef unsigned int GLbitfield; ...
Add some OpenGL Lua binding
Add some OpenGL Lua binding
Lua
mit
lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot
7c206b17bd2baab2e18336d777e023e5ed448992
src/cosy/platform.lua
src/cosy/platform.lua
-- Select the platform using the environment. if _G.js then return require "cosy.platform.js" else return require "cosy.platform.standalone" end -- > local platform = require "cosy.platform" -- >> local logger = platform.logger -- ... -- DEBUG logger is available using ... -- ... -- -...
-- Select the platform using the environment. local version = tonumber (_VERSION:match "Lua%s*(%d%.%d)") if version < 5.1 or (version == 5.1 and type (_G.jit) ~= "table") then error "Cosy requires Luajit >= 2 or Lua >= 5.2 to run." end if _G.js then return require "cosy.platform.js" else return require "cosy.p...
Add check on Lua version to avoid silly failures.
Add check on Lua version to avoid silly failures.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
7344f466bcb6e2c929f37d8d04240dc72aecf568
test/input.lua
test/input.lua
local uv = require 'luv' local T = require(jit and 'terminfo-luajit' or 'terminfo-norm') local fcntl = require 'posix.fcntl' local _bit = bit32 or require 'bit' local stdin = uv.new_tty(0, true) uv.tty_set_mode(stdin, 1) io.write(T.keypad_xmit()) io.write(T.smcup()) io.write '\27[?1000h' io.write '\27[?1002h' io.writ...
Add some test code I missed
Add some test code I missed
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
f622e608644e4d661b996b50a3ffaaef435bfcde
lunaci/tasks/build.lua
lunaci/tasks/build.lua
module("lunaci.tasks.build", package.seeall) math.randomseed(os.time()) -- Dummy random placeholder task implementation. local build_package = function(package, target, manifest) local config = require "lunaci.config" err_msg = ([[ Building package %s... Error building: Something wrong happend. This is just ...
module("lunaci.tasks.build", package.seeall) -- Basic implementation. Needs better output handling. local build_package = function(package, target, deploy_dir, manifest) local config = require "lunaci.config" local utils = require "lunaci.utils" local ok, code, out, err = utils.dir_exec(deploy_dir, "bin/...
Implement Build task - first draft
Implement Build task - first draft
Lua
mit
smasty/LunaCI,smasty/LunaCI
6c7e4ea14e59af150993d8e43fc1318fee760420
src/extensions/cp/apple/finalcutpro/app.lua
src/extensions/cp/apple/finalcutpro/app.lua
--- === cp.apple.finalcutpro.app === --- --- The [cp.app](cp.app.md) for Final Cut Pro. Will automatically determine --- if only the trial version of FCPX is installed and use that instead. local require = require local application = require "hs.application" local app = requ...
--- === cp.apple.finalcutpro.app === --- --- The [cp.app](cp.app.md) for Final Cut Pro. Will automatically determine --- if only the trial version of FCPX is installed and use that instead. local require = require local application = require "hs.application" local app ...
Use the Final Cut Pro Trial Bundle ID if the trial is running on startup
Use the Final Cut Pro Trial Bundle ID if the trial is running on startup - Closes #3004
Lua
mit
CommandPost/CommandPost,CommandPost/CommandPost,CommandPost/CommandPost
32bc13d8665635931f659ce7f34008ce97c2c08a
OS/DiskOS/Runtime/Globals/03_DiskOSAPI.lua
OS/DiskOS/Runtime/Globals/03_DiskOSAPI.lua
--DiskOS API Loader local Globals = (...) or {} Globals.SpriteGroup = SpriteGroup Globals.isInRect = isInRect Globals.whereInGrid = whereInGrid Globals.input = TextUtils.textInput return Globals
--DiskOS API Loader local Globals = (...) or {} Globals.SpriteGroup = SpriteGroup Globals.isInRect = isInRect Globals.whereInGrid = whereInGrid Globals.input = function(historyTable,preinput) local pauseDisabled = Globals._DISABLE_PAUSE --Backup the original value Globals._DISABLE_PAUSE = true --Make sure pau...
Disable pause menu when using the input function
Disable pause menu when using the input function
Lua
mit
RamiLego4Game/LIKO-12
92ca92ba1b10285c8ae6218cd2599f7d28f84c19
src/cosy/file/init.lua
src/cosy/file/init.lua
return function (loader) local Value = loader.load "cosy.value" local File = {} function File.encode (filname, data) local file, err = io.open (filname, "w") if not file then return nil, err end file:write (Value.expression (data)) file:close () return true end function File....
return function (loader) local Value = loader.load "cosy.value" local File = {} function File.encode (filname, data) local file, err = io.open (filname, "w") if not file then return nil, err end file:write (Value.expression (data) .. "\n") file:close () return true end functi...
Add an end-of-line after writing a file.
Add an end-of-line after writing a file.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
27173e0220ce30ac1065195ef3cbc8d27c16d704
src/instanceutils/src/Shared/RxInstanceUtils.spec.lua
src/instanceutils/src/Shared/RxInstanceUtils.spec.lua
--- -- @module RxInstanceUtils.spec.lua local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script) local RxInstanceUtils = require("RxInstanceUtils") return function() describe("RxInstanceUtils.observeChildrenBrio", function() local part = Instance.new(...
Add unit tests to cover combineLatest
test: Add unit tests to cover combineLatest
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
939aff47ed6620b72bae490886a9950afe8de71f
src/calc.lua
src/calc.lua
#!/usr/bin/env lua -- over-ride or define stubs for functions strfind = string.find strsub = string.sub function GetAddOnMetadata( ) return "@VERSION@" end SlashCmdList = {} -- import the addon file package.path = "/usr/local/bin/?.lua;'" .. package.path require "c" -- remove the WowSpecific commands WowSpecific ...
#!/usr/bin/env lua -- over-ride or define stubs for functions strfind = string.find strsub = string.sub function GetAddOnMetadata( ) return "@VERSION@" end SlashCmdList = {} -- import the addon file package.path = "/usr/local/bin/?.lua;'" .. package.path require "c" -- remove the WowSpecific commands WowSpecific ...
Change the CLI version to show (d|r)> as part of the prompt, not the stack output.
Change the CLI version to show (d|r)> as part of the prompt, not the stack output.
Lua
mit
opussf/Calc,opussf/Calc
b4699623da29d9177ec736821d3a2d7623290fde
src/conf.lua
src/conf.lua
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.1" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 768 t.screen.height = 528 t.console = false t.modules.physics = false...
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.2" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 768 t.screen.height = 528 t.console = false t.modules.physics = false...
Bump release version to v0.0.2
Bump release version to v0.0.2
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua
7a23cbedc5e7c6d4b6e6cd6226425cda497de342
src/util.lua
src/util.lua
local util = {} function util.deepcompare(t1,t2,ignore_mt) local ty1 = type(t1) local ty2 = type(t2) if ty1 ~= ty2 then return false end -- non-table types can be directly compared if ty1 ~= 'table' and ty2 ~= 'table' then return t1 == t2 end -- as well as tables which have the metamethod __eq local mt = ...
local util = {} function util.deepcompare(t1,t2,ignore_mt) local ty1 = type(t1) local ty2 = type(t2) if ty1 ~= ty2 then return false end -- non-table types can be directly compared if ty1 ~= 'table' and ty2 ~= 'table' then return t1 == t2 end -- as well as tables which have the metamethod __eq local mt1 =...
Correct check for whether __eq is applicable
Correct check for whether __eq is applicable For that to happen, both objects metatable need to be same, one table having a metatable with __eq is not enough.
Lua
mit
o-lim/luassert,mpeterv/luassert,tst2005/lua-luassert,ZyX-I/luassert
8e1c6eafe0cf0cb7cdff1ada058c1f4e77ddda73
example/gatedNegationExample.lua
example/gatedNegationExample.lua
local nn = require "nn" local nngraph = require "nngraph" -- set gated network hyperparameters local opt = {} opt.embedSize = 10 opt.gateSize = 15 opt.hiddenSize = 5 -- define gated network graph ---- declare inputs print("Constructing input layers") local word_vector = nn.Identity()() local gate_vector = nn.Identity...
Add torch gated negation network example.
Add torch gated negation network example.
Lua
mit
douwekiela/nncg-negation
4cec79a14bd7ba495d8e41efade8345e4ba37bfe
agents/monitoring/default/util/constants.lua
agents/monitoring/default/util/constants.lua
local os = require('os') local path = require('path') local exports = {} -- All intervals and timeouts are in milliseconds exports.CONNECT_TIMEOUT = 6000 exports.SOCKET_TIMEOUT = 10000 exports.HEARTBEAT_INTERVAL_JITTER = 7000 exports.DATACENTER_MAX_DELAY = 5 * 60 * 1000 -- max connection delay exports.DATACENTER_MA...
local os = require('os') local path = require('path') local exports = {} -- All intervals and timeouts are in milliseconds exports.CONNECT_TIMEOUT = 6000 exports.SOCKET_TIMEOUT = 10000 exports.HEARTBEAT_INTERVAL_JITTER = 7000 exports.DATACENTER_MAX_DELAY = 5 * 60 * 1000 -- max connection delay exports.DATACENTER_MA...
Change the default custom plugins path to /usr/lib/rackspace-monitoring-agent/plugins.
Change the default custom plugins path to /usr/lib/rackspace-monitoring-agent/plugins.
Lua
apache-2.0
AlphaStaxLLC/rackspace-monitoring-agent,christopherjwang/rackspace-monitoring-agent,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,cp16net/virgo-base,kaustavha/rackspace-monitoring-agent,cp16net/virgo-base,christopherjwang/rackspace-monitoring-agent,virgo-agent-toolkit/rackspace-monitoring-agent,cp16net/virgo-...
a1473167a4f0d7628a0a6127c9029ad5187bcc43
config/nvim/lua/maps.lua
config/nvim/lua/maps.lua
local cmd = vim.cmd local map = vim.api.nvim_set_keymap -- map the leader key map('n', '<Space>', '', {}) vim.g.mapleader = ' ' options = { noremap = true } map('n', '<leader><esc>', ':nohlsearch<cr>', options) map('n', '<leader>n', ':bnext<cr>', options) map('n', '<leader>p', ':bprev<cr>', options) -- Not an edito...
local cmd = vim.cmd local map = vim.api.nvim_set_keymap -- map the leader key map('n', '<Space>', '', {}) vim.g.mapleader = ' ' options = { noremap = true } map('n', '<leader><esc>', ':nohlsearch<cr>', options) map('n', '<leader>n', ':bnext<cr>', options) map('n', '<leader>p', ':bprev<cr>', options) -- Not an edito...
Add helper function to ignore dirs in fzy
nvim: Add helper function to ignore dirs in fzy
Lua
unlicense
icyphox/dotfiles
2795fc8c63cdfd5d41c11cb8f9c35d491ee898dc
nvim/lua/user/plugins/vim-test.lua
nvim/lua/user/plugins/vim-test.lua
local keymap = require('lib.utils').keymap keymap('n', '<Leader>tn', ':TestNearest<CR>', { silent = false }) keymap('n', '<Leader>tf', ':TestFile<CR>', { silent = false }) keymap('n', '<Leader>ts', ':TestSuite<CR>', { silent = false }) keymap('n', '<Leader>tl', ':TestLast<CR>', { silent = false }) keymap('n', '<Leader...
local keymap = require('lib.utils').keymap keymap('n', '<Leader>tn', ':TestNearest<CR>', { silent = false }) keymap('n', '<Leader>tf', ':TestFile<CR>', { silent = false }) keymap('n', '<Leader>ts', ':TestSuite<CR>', { silent = false }) keymap('n', '<Leader>tl', ':TestLast<CR>', { silent = false }) keymap('n', '<Leader...
Hide errors when running tests and floaterm isn't already open
Hide errors when running tests and floaterm isn't already open
Lua
mit
jessarcher/dotfiles,jessarcher/dotfiles,jessarcher/dotfiles
e6c776e1e58f4e0e2780c66e0c6d4378f99eb99c
Modules/Time/DebounceTimer.lua
Modules/Time/DebounceTimer.lua
--- DebounceTimer -- @classmod DebounceTimer local DebounceTimer = {} DebounceTimer.ClassName = "DebounceTimer" DebounceTimer.__index = DebounceTimer function DebounceTimer.new(length) local self = setmetatable({}, DebounceTimer) self._length = length or error("No length") return self end function DebounceTimer...
--- DebounceTimer -- @classmod DebounceTimer local DebounceTimer = {} DebounceTimer.ClassName = "DebounceTimer" DebounceTimer.__index = DebounceTimer function DebounceTimer.new(length) local self = setmetatable({}, DebounceTimer) self._length = length or error("No length") return self end function DebounceTimer...
Fix :IsDone() on debounce timer
Fix :IsDone() on debounce timer
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
8b9e039b26d71cf1fefbc95979d30c4184b00da2
weekly-topics.lua
weekly-topics.lua
local topics = {} function topics.run() print('weekly topic identified') local topics = { ['August 26, 2018'] = "**The Weird Things Allosexuals Do**" .. newline .. "What things do allosexuals do that just confound you to no end?", ['September 2, 2018'] = "**Labels before there were labels**" .. newli...
local topics = {} function topics.run() print('weekly topic identified') local topics = { ['August 26, 2018'] = "**The Weird Things Allosexuals Do**" .. newline .. "What things do allosexuals do that just confound you to no end?", ['September 02, 2018'] = "**Labels before there were labels**" .. newl...
Fix error in date format
Fix error in date format
Lua
agpl-3.0
Skeletonxf/reddit-sexuality-definition-bot
5343d5859e90210b73e3009f386d1f5c77d6f22d
examples/test-fs-coro.lua
examples/test-fs-coro.lua
local uv = require('uv'); local co = coroutine.create(function (filename) uv.fs_open(filename, 'r', "0644", resume) local fd = coroutine.yield() p("on_open", {fd=fd}) uv.fs_read(fd, 0, 4096, resume) local chunk, length = coroutine.yield() p("on_read", {chunk=chunk, length=length}) uv.fs_close(fd,...
local uv = require('uv'); local co co = coroutine.create(function (filename) print("opening...") uv.fs_open(filename, 'r', "0644", resume) p("yielding", co, coroutine.status(co)) local fd = coroutine.yield() p("on_open", {fd=fd}) print("reading...") uv.fs_read(fd, 0, 4096, resume) p("yielding", co, c...
Add more debugging to the coro example
Add more debugging to the coro example
Lua
apache-2.0
bsn069/luvit,rjeli/luvit,sousoux/luvit,connectFree/lev,connectFree/lev,sousoux/luvit,zhaozg/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,boundary/luvit,luvit/luvit,DBarney/luvit,GabrielNicolasAvellaneda/luvit-upstream,kaustavha/luvit,boundary/luvit,bsn069/luvit,boundary/luvit,DBarney/luvit,r...
08d2c18d4374092197def0bb500d09bfd14b0255
src/game/StarterPlayer/StarterPlayerScripts/CameraScript.lua
src/game/StarterPlayer/StarterPlayerScripts/CameraScript.lua
-- ClassName: LocalScript local OFFSET = Vector3.new(-45, 45, 45) local FIELD_OF_VIEW = 25 local player = game.Players.LocalPlayer local camera = workspace.CurrentCamera local run = game:GetService("RunService") camera.FieldOfView = FIELD_OF_VIEW local function lookAt(pos) local cameraPos = pos + OFFSET camera....
-- ClassName: LocalScript local OFFSET = Vector3.new(-45, 45, 45) local FIELD_OF_VIEW = 25 local player = game.Players.LocalPlayer local camera = workspace.CurrentCamera local run = game:GetService("RunService") camera.FieldOfView = FIELD_OF_VIEW local function lookAt(pos) local cameraPos = pos + OFFSET camera....
Fix the camera slightly bobbing along to the character
Fix the camera slightly bobbing along to the character The character's PrimaryPart (its head) is animated, along with the rest of the body, making the camera bob up and down slightly when the "breathing" animation is playing. It's hardly noticable, but definitly needs to be fixed. We're locking the camera onto the Hu...
Lua
mit
VoxelDavid/echo-ridge
b5ae9465bd46fcf094cdad12cfc6e3ef85eae441
lua/js.lua
lua/js.lua
-- Utilities to load Lua packages -- ============================== js.global:eval [[ global.load = function (url) { var xhr = new XMLHttpRequest (); xhr.open ("GET", url, false); xhr.send (null); if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) { return xhr.responseText; ...
-- Utilities to load Lua packages -- ============================== js.global:eval [[ window.load = function (url) { var xhr = new XMLHttpRequest (); xhr.open ("GET", url, false); xhr.send (null); if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) { return xhr.responseText; ...
Replace 'global' by 'window' in JS code.
Replace 'global' by 'window' in JS code.
Lua
mit
CosyVerif/webclient,CosyVerif/webclient
232fef3f829f3870fc6484d909104a07f0cbd76d
test/tests/_e.lua
test/tests/_e.lua
-- Test :e test.keys(':e files/foo.xml') test.key('enter') test.assertEq(buffer.filename, 'files/foo.xml') -- test completion test.keys(':e files/1_1') test.key('tab') test.assertEq(buffer:get_text(), ':e files/1_10') -- next tab shows completions test.key('tab') local t = buffer:get_text() test.assert(t:find('1_10...
-- Test :e test.keys(':e files/foo.xml') test.key('enter') test.assertEq(buffer.filename, 'files/foo.xml') -- test completion test.keys(':e files/1_1') test.key('tab') test.assertEq(buffer:get_text(), ':e files/1_10') -- next tab shows completions test.key('tab') local t = buffer:get_text() test.assert(t:find('1_10...
Fix the :e test to take account of the escaping of ".".
Fix the :e test to take account of the escaping of ".".
Lua
mit
jugglerchris/textadept-vi,erig0/textadept-vi,jugglerchris/textadept-vi
1fb124f0ac8baa35a51057d7a37fb7580fff2bf5
kilo.lua
kilo.lua
function on_key(k) if ( string.byte(k) == 1 ) then sol() elseif ( string.byte(k) == 5 ) then eol() else insert(k) end end -- -- Called at load-time -- insert( "Steve Kemp added Lua!" )
function on_key(k) -- -- Expand values less than "a" to be Ctrl-X. -- if ( string.byte(k) < string.byte('a') ) then k = "^" .. ( string.char( string.byte(k) + string.byte('A')-1 )) end -- -- Handle input -- if ( k == "^A" ) then -- Ctrl-A -> Start of line sol() elseif ...
Expand characters to ^N as appropriate
Expand characters to ^N as appropriate
Lua
bsd-2-clause
skx/kilua,skx/kilua,skx/kilua,skx/kilua
ebf2b80d327b6ccf71dd67bb5a6481851af82558
modulefiles/python/3.4.1/pax/4.5.0.lua
modulefiles/python/3.4.1/pax/4.5.0.lua
help( [[ This module loads Python 3.4.1 with a set of packages needed for the Xenon1T PAX 4.5.0 ]]) local version = "3.4.1" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/virtualenv-3.4/pax-4.5.0" pushenv("VIRTUAL_ENV", base) prepend_path("PATH", pathJoin(base, "bin")) load('atlas/3.10.1', 'lapack', 'hd...
help( [[ This module loads Python 3.4.1 with a set of packages needed for the Xenon1T PAX 4.5.0 ]]) local version = "3.4.1" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/virtualenv-3.4/pax-4.5.0" pushenv("VIRTUAL_ENV", base) prepend_path("PATH", pathJoin(base, "bin")) load('atlas/3.10.1', 'lapack', 'hd...
Use right version of ROOT
Use right version of ROOT
Lua
apache-2.0
OSGConnect/modulefiles,OSGConnect/modulefiles,OSGConnect/modulefiles
933260daca43ff82bc2815f1a8363e95f0b021ad
lib/pkg/glib.lua
lib/pkg/glib.lua
return { source = { type = 'dist', location = 'http://ftp.gnome.org/pub/GNOME/sources/glib/2.40/glib-2.40.2.tar.xz', sha256sum = 'e8ff8af2950897e805408480c454c415d1eade4e670ec5fb507f5e5853726c7a' }, patches = { { 'glib-2.40.0-external-gdbus-codegen', 1 } }, buil...
return { source = { type = 'dist', location = 'http://ftp.gnome.org/pub/GNOME/sources/glib/2.48/glib-2.48.2.tar.xz', sha256sum = 'f25e751589cb1a58826eac24fbd4186cda4518af772806b666a3f91f66e6d3f4' }, build = { type = 'GNU', options = { '--disable-mem-...
Bump GLib version to 2.48.2
Bump GLib version to 2.48.2
Lua
mit
bazurbat/jagen
96e609fa6d2489014975e99821ec5ce0d7b86b4c
overlay/sdk/hi-linux/rules.lua
overlay/sdk/hi-linux/rules.lua
-- HiSilicon Linux SDK package { 'make', 'host', source = 'make-3.81.tar.bz2' } package { 'hi-kernel' } package { 'hi-sdk', 'target', { 'tools' }, { 'prepare', { 'hi-kernel', 'unpack' } }, { 'hiboot' }, { 'linux' }, { 'rootfs' }, { 'common' }, { 'msp' ...
-- HiSilicon Linux SDK package { 'make', 'host', source = 'make-3.81.tar.bz2' } package { 'hi-kernel' } package { 'hi-sdk', 'target', { 'tools' }, { 'prepare', { 'hi-kernel', 'unpack' } }, { 'hiboot' }, { 'linux' }, -- { 'rootfs' }, { 'common' }, { 'msp' ...
Disable rootfs install in hi-sdk
Disable rootfs install in hi-sdk
Lua
mit
bazurbat/jagen
25e74a4edc4d16f05d9e41b78e62e9d60d1a38eb
hammerspoon/control-escape.lua
hammerspoon/control-escape.lua
-- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = f...
-- Credit for this implementation goes to @arbelt and @jasoncodes 🙇⚡️😻 -- -- https://gist.github.com/arbelt/b91e1f38a0880afb316dd5b5732759f1 -- https://github.com/jasoncodes/dotfiles/blob/ac9f3ac/hammerspoon/control_escape.lua send_escape = false last_mods = {} control_key_handler = function() send_escape = f...
Use custom keystroke fn to trigger esc faster after ctrl tap
Use custom keystroke fn to trigger esc faster after ctrl tap
Lua
mit
jasonrudolph/keyboard,jasonrudolph/keyboard
7ecd54b813aadfd9ce7dadcd238772c22d823a8a
kilo.lua
kilo.lua
function on_key(k) -- -- Expand values less than "a" to be Ctrl-X. -- if ( string.byte(k) < string.byte('a') ) then k = "^" .. ( string.char( string.byte(k) + string.byte('A')-1 )) end -- -- Handle input -- if ( k == "^A" ) then -- Ctrl-A -> Start of line sol() elseif ...
-- -- Keymap of bound keys -- local keymap = {} -- -- Default bindings -- keymap['^A'] = sol keymap['^E'] = eol keymap['^D'] = function() insert( os.date() ) end -- -- Expand values less than "a" to be Ctrl-X. -- -- TODO: Expand PAGE_UP, ARROW_UP, etc. -- function expand_key(k) if ( string.byte(k) < string.byt...
Use a keymap for keybindings.
Use a keymap for keybindings. This is cleaner and neater.
Lua
bsd-2-clause
skx/kilua,skx/kilua,skx/kilua,skx/kilua
4854c89d24e49c5a911279e87fb3879e896d3cea
hammerspoon/init.lua
hammerspoon/init.lua
-- install cli if not hs.ipc.cliStatus() then hs.ipc.cliInstall() end -- leader hs.settings.set('leader', {'ctrl', 'alt'}) hs.settings.set('leadercmd', {'ctrl', 'alt', 'cmd'}) hs.settings.set('leadershift', {'shift', 'ctrl', 'alt'}) -- hostname local hostname = hs.host.localizedName() -- host specific if ...
-- install cli if not hs.ipc.cliStatus() then hs.ipc.cliInstall() end -- leader hs.settings.set('leader', {'ctrl', 'alt'}) hs.settings.set('leadercmd', {'ctrl', 'alt', 'cmd'}) hs.settings.set('leadershift', {'shift', 'ctrl', 'alt'}) -- hostname local hostname = hs.host.localizedName() -- host specific if ...
Disable redshift since it's been added to OSX
hs: Disable redshift since it's been added to OSX
Lua
mit
sebastianmarkow/dotfiles
36c750d3e473154adacee8c2ee33d1bd1f883c3c
examples/ssl/coclinet.lua
examples/ssl/coclinet.lua
local uv = require "lluv" local ut = require "lluv.utils" local ssl = require "lluv.ssl" local socket = require "lluv.ssl.luasocket" local config = require "./config" local ctx = assert(ssl.context(config)) local function ping() ut.corun(function() local cli = socket.ssl(ctx:client()) print("Connect "...
local uv = require "lluv" local ut = require "lluv.utils" local ssl = require "lluv.ssl" local socket = require "lluv.ssl.luasocket" local config = require "./config" local ctx = assert(ssl.context(config)) ut.corun(function() while true do local cli = socket.ssl(ctx:client()) local ok, err = cli...
Update ssl example [ci skip]
Update ssl example [ci skip]
Lua
mit
moteus/lua-lluv,moteus/lua-lluv,kidaa/lua-lluv,moteus/lua-lluv,kidaa/lua-lluv
e4c025c9ed27f597397efcc1c6003b97511177fe
t/i320.lua
t/i320.lua
nyagos.alias.i320 = function(args) assert( nyagos.rawexec( { [0]="cmd",[1]="/c",[2]="dir" } ) ) end nyagos.alias.i320b = function(args) local str = assert( nyagos.raweval( { [0]="cmd",[1]="/c",[2]="dir" } ) ) print("eval=",str) end
Add test for issue 320
Add test for issue 320
Lua
bsd-3-clause
tsuyoshicho/nyagos,zetamatta/nyagos,nocd5/nyagos
aec516c79bb7467feadcf61e68e87e95de4ccede
net/httpclient_listener.lua
net/httpclient_listener.lua
local connlisteners_register = require "net.connlisteners".register; local requests = {}; -- Open requests local buffers = {}; -- Buffers of partial lines local httpclient = { default_port = 80, default_mode = "*a" }; function httpclient.listener(conn, data) local request = requests[conn]; if not request then ...
local connlisteners_register = require "net.connlisteners".register; local requests = {}; -- Open requests local buffers = {}; -- Buffers of partial lines local httpclient = { default_port = 80, default_mode = "*a" }; function httpclient.listener(conn, data) local request = requests[conn]; if not request then ...
Remove request from conn->request table when conn closed
net.http: Remove request from conn->request table when conn closed
Lua
mit
sarumjanuch/prosody,sarumjanuch/prosody
551cc29a8d42b507a331fe1513ddc43428267b93
modules/choose.lua
modules/choose.lua
local ltrim = function(r, s) if s == nil then s, r = r, "%s+" end return (string.gsub(s, "^" .. r, "")) end local reply = { '┗(^0^)┓))(( ┏(^0^)┛', '( ´_ゝ`)フーン', } math.randomseed(os.time()) return { ["^:(%S+) PRIVMSG (%S+) :!choose (.+)$"] = function(self, src, dest, msg) local hax = {} local arr = utils...
local ltrim = function(r, s) if s == nil then s, r = r, "%s+" end return (string.gsub(s, "^" .. r, "")) end local reply = { '┗(^0^)┓))(( ┏(^0^)┛', '( ´_ゝ`)フーン', } math.randomseed(os.time() % 1e5) return { ["^:(%S+) PRIVMSG (%S+) :!choose (.+)$"] = function(self, src, dest, msg) local hax = {} local arr =...
Use a lower randomseed to work around potential platform limitations set by lua.
Use a lower randomseed to work around potential platform limitations set by lua.
Lua
mit
torhve/ivar2,torhve/ivar2,haste/ivar2,torhve/ivar2
16ab85029ee1b2bdd293054a564ac703b7ab30ad
lib/tictaclib.lua
lib/tictaclib.lua
local T = {} local function shallow_copy(tbl) local new_tbl = {} for k, v in pairs(tbl) do new_tbl[k] = v end return new_tbl end local env = { print=print, -- disable on prod tostring=tostring, unpack=unpack, next=next, assert=assert, tonumber=tonumber, pairs=pairs, pcall=pcall, t...
local T = {} local function shallow_copy(tbl) local new_tbl = {} for k, v in pairs(tbl) do new_tbl[k] = v end return new_tbl end local env = { print=print, -- disable on prod tostring=tostring, unpack=unpack, next=next, assert=assert, tonumber=tonumber, pairs=pairs, pcall=pcall, t...
Remove coroutine from player env
Remove coroutine from player env
Lua
apache-2.0
Motiejus/tictactoelib,Motiejus/tictactoelib
4df1c3340d44e27a35af825473b1c4e091f8db09
upcache/common.lua
upcache/common.lua
local module = {} local mp = require 'MessagePack' local log = ngx.log local ERR = ngx.ERR local INFO = ngx.INFO local json = require 'cjson.safe' module.console = {} function module.console.info(...) return log(INFO, ...) end function module.console.error(...) return log(ERR, ...) end function module.console.e...
local module = {} local mp = require 'MessagePack' local log = ngx.log local ERR = ngx.ERR local INFO = ngx.INFO local json = require 'cjson.safe' module.console = {} function module.console.info(...) return log(INFO, ...) end function module.console.error(...) return log(ERR, ...) end function module.console.e...
Fix error in getting restrictions
Fix error in getting restrictions
Lua
mit
kapouer/upcache,kapouer/cache-protocols
e8285a7e11f36e7806783b274f4233f9d4c65ff4
xc.lua
xc.lua
local xc = require 'xc/xc' local _M = require 'apicast' function _M.access() local request = ngx.var.request local service = ngx.ctx.service local credentials = service:extract_credentials(request) local usage = service:extract_usage(request) local auth_status = xc.authrep(service.id, credentials.user_key, ...
Convert XC to apicast module
Convert XC to apicast module
Lua
apache-2.0
3scale/apicast-xc
260469038e204a9bc04dcca68710d0e2749c18f7
solutions/beecrowd/1010/1010.lua
solutions/beecrowd/1010/1010.lua
local s = 0 while true do local line = io.read() if line == nil then break end for b, c in string.gmatch(line, "%d+ (%d+) ([0-9.]+)") do s = s + tonumber(b) * (tonumber(c) + 0.0) end end print(string.format('VALOR A PAGAR: R$ %.2f', s))
Solve Simple Calculate in lua
Solve Simple Calculate in lua
Lua
mit
deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr...
ab3d7018e1b58f6642a03e4e676a3d5dadae5868
Modules/Shared/Physics/Explosions/GetPercentExposedUtils.lua
Modules/Shared/Physics/Explosions/GetPercentExposedUtils.lua
--- Identify parts that are potentially exposed to an explosion using a random vector raycasting -- @module GetPercentExposed local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Workspace = game:GetService("Workspace") local RandomVector3Utils = require("RandomVector3Utils")...
--- Identify parts that are potentially exposed to an explosion using a random vector raycasting -- @module GetPercentExposed local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Workspace = game:GetService("Workspace") local RandomVector3Utils = require("RandomVector3Utils")...
Allow raycaster to be injected
Allow raycaster to be injected
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
0cadda4c138f0768f2ca3332c4a7ed0937ef40c5
Modules/Input/HeldRateKey.lua
Modules/Input/HeldRateKey.lua
local RunService = game:GetService("RunService") local HeldRateInput = {} HeldRateInput.__index = HeldRateInput HeldRateInput.ClassName = "HeldRateInput" HeldRateInput.Rate = 0.25 HeldRateInput.Acceleration = 1.1 --- Like a Heldkey, but with an increasing rate -- @author Quenty function HeldRateInput.new(RepeatFunct...
Add new held rate key class
Add new held rate key class
Lua
mit
Quenty/NevermoreEngine,Quenty/NevermoreEngine,Quenty/NevermoreEngine
a88faf05752574cee2bdb554956de08c1f6679f3
lte/weakenedLich.lua
lte/weakenedLich.lua
-- Turns a weakened lich back to a normal one module("lte.weakenedLich", package.seeall) function addEffect(theEffect, weakendLich) end function callEffect(theEffect, weakendLich) weakendLich:increaseAttrib("hitpoints",-10000) local strongLich = world:createMonster(205,weakendLich.pos,-20) w...
Add lte for lich death
Add lte for lich death
Lua
agpl-3.0
Baylamon/Illarion-Content,LaFamiglia/Illarion-Content,Illarion-eV/Illarion-Content,KayMD/Illarion-Content,vilarion/Illarion-Content
e03cd70e608ea7e535f1a3af49a2a1d48e7b431a
Dependencies/Capstone/premake5.lua
Dependencies/Capstone/premake5.lua
project("Capstone") defines({ "CAPSTONE_X86_ATT_DISABLE_NO", "CAPSTONE_DIET_NO", "CAPSTONE_X86_REDUCE_NO", "CAPSTONE_HAS_ARM", "CAPSTONE_HAS_ARM64", "CAPSTONE_HAS_MIPS", "CAPSTONE_HAS_POWERPC", "CAPSTONE_HAS_SPARC", "CAPSTONE_HAS_SYSZ", "CAPSTONE_HAS_X86", "CAPSTONE_HAS_XCORE", "CAPSTONE_USE_SYS_DYN_MEM", "WIN32", ...
project("Capstone") defines({ "CAPSTONE_HAS_X86", "CAPSTONE_USE_SYS_DYN_MEM", "WIN32" }) kind("StaticLib") language("C") removedefines({ "_CRT_SECURE_NO_WARNINGS" }) if buildpath ~= nil then targetdir(buildpath()) end includedirs({ "Capstone/include" }) files({ "Capstone/arch...
Use just x86 architecture for Capstone
Use just x86 architecture for Capstone
Lua
mit
WopsS/RenHook
629fd0eb1d97f902c09b8652dfb1030c4baa698e
src/cosy/i18n/en.lua
src/cosy/i18n/en.lua
return { available_dependency = "%{component} is available using '%{dependency}'", missing_dependency = "%{component} is not available", available_locale = "i18n locale '%{locale}' has been loaded", available_compression = "compression '%{compression}' has been loaded", bcrypt_rounds = { ...
return { ["platform:available-dependency"] = "%{component} is available using '%{dependency}'", ["platform:missing-dependency"] = "%{component} is not available", ["platform:available-locale"] = "i18n locale '%{locale}' has been loaded", ["platform:available-compression"] = "compression '%{compr...
Add namespace to i18n messages.
Add namespace to i18n messages.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
4a62ac16d4b1660bfd8e97cc4a1303693b03d1e5
test/dom/Document-title.lua
test/dom/Document-title.lua
local parse = require("gumbo").parse local assert = assert local _ENV = nil assert(parse("<title> test x y </title>").title == "test x y") assert(parse("<title>Hello world!</title>").title == "Hello world!") assert(parse("<title> foo \t\rb\n\far\r\n</title>").title == "foo b ar") assert(parse("<title></title>")...
local parse = require("gumbo").parse local assert = assert local _ENV = nil assert(parse("<title> test x y </title>").title == "test x y") assert(parse("<title>Hello world!</title>").title == "Hello world!") assert(parse("<title> foo \t\rb\n\far\r\n</title>").title == "foo b ar") assert(parse("<title></title>")...
Add more test coverage for Document.setters:title()
Add more test coverage for Document.setters:title()
Lua
apache-2.0
craigbarnes/lua-gumbo,craigbarnes/lua-gumbo,craigbarnes/lua-gumbo
35619987db675acc254259f8915fb2d441aa32a8
vrp/cfg/audio.lua
vrp/cfg/audio.lua
local cfg = {} -- VoIP -- VoIP websocket server cfg.voip_server = "ws://localhost:40120" -- VoIP Opus params cfg.voip_bitrate = 24000 -- bits/s -- frame_size (ms) -- 20,40,60; higher frame_size can result in lower quality, but less WebRTC overhead (~125 bytes per packet) -- 20: best quality, ~6ko/s overhead -- 40:...
local cfg = {} -- VoIP -- VoIP websocket server cfg.voip_server = "ws://localhost:40120" -- VoIP Opus params cfg.voip_bitrate = 24000 -- bits/s -- frame_size (ms) -- 20,40,60; higher frame_size can result in lower quality, but less WebRTC overhead (~125 bytes per packet) -- 20: best quality, ~6ko/s overhead -- 40:...
Revert "Enable vRP world VoIP by default."
Revert "Enable vRP world VoIP by default." This reverts commit dbec797cbd0d9c2728e9f214bdc9f33ec825c0c7.
Lua
mit
ImagicTheCat/vRP,ImagicTheCat/vRP
5805ba8c5c8b6a120ba3deef4f0c4b606cc87988
src/conf.lua
src/conf.lua
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.50" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 912 t.screen.height = 528 t.screen.fullscreen = false t.console ...
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.51" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 912 t.screen.height = 528 t.screen.fullscreen = false t.console ...
Bump release version to v0.0.51
Bump release version to v0.0.51
Lua
mit
hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua
6d71abb0725c7752a1e7655ae9c02f0ede3af4b2
test/tests/_e.lua
test/tests/_e.lua
-- Test :e test.keys(':e files/foo.xml') test.key('enter') test.assertFileEq(buffer.filename, 'files/foo.xml') -- test completion test.keys(':e files/1_1') test.key('tab') local buffer = ui.command_entry test.assertEq(buffer:get_text(), 'e files/1_10') -- next tab shows completions test.key('tab') local t = buffer:g...
-- Test :e test.keys(':e files/foo.xml') test.key('enter') test.assertFileEq(buffer.filename, 'files/foo.xml') -- test completion test.keys(':e files/1_1') test.key('tab') local buffer = ui.command_entry test.assertEq(buffer:get_text(), 'e files/1_10') -- next tab shows completions test.key('tab') local t = buffer:g...
Add a test for completing files in current directory.
Add a test for completing files in current directory.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi
bbc0727fcc0f079cd86da84460abc04c47b9ec0a
lib/resty/auto-ssl/init_worker.lua
lib/resty/auto-ssl/init_worker.lua
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc" return function() -- Startup sockproc. This background process allows for non-blocking shell -- commands with resty.shell. -- -- We do this in the init_worker phase, so that it will always be started -- with the same permissions as the ngin...
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc" return function(auto_ssl_instance) -- Startup sockproc. This background process allows for non-blocking shell -- commands with resty.shell. -- -- We do this in the init_worker phase, so that it will always be started -- with the same permis...
Allow adapters to have a setup callback for the init_by_worker_phase.
Allow adapters to have a setup callback for the init_by_worker_phase.
Lua
mit
UseFedora/lua-resty-auto-ssl,UseFedora/lua-resty-auto-ssl,GUI/lua-resty-auto-ssl
67f16855887dff3d89a04fc65fea3513420f74cf
himan-scripts/snwc-copy-smartmet.lua
himan-scripts/snwc-copy-smartmet.lua
-- -- SmartMet NWC parameters -- -- Copy certain set of parameters from Smartmet data so that they -- look like created from NWC (same analysis time etc) -- local MISS = missing local editor_prod = producer(181, "SMARTMET") editor_prod:SetCentre(86) editor_prod:SetProcess(181) local editor_origintime = raw_time(rad...
Copy certain parameters from smartmet data
STU-14421: Copy certain parameters from smartmet data
Lua
mit
fmidev/himan,fmidev/himan,fmidev/himan
6d4a09022be6b565c17fb128ed3382dc1b0dffc1
build/scripts/modules/physics.lua
build/scripts/modules/physics.lua
MODULE.Name = "Physics" MODULE.Libraries = { "NazaraCore", "newton" }
MODULE.Name = "Physics" MODULE.Libraries = { "NazaraCore", "Newton" }
Add new libraries for Windows
Physics: Add new libraries for Windows Former-commit-id: 93deb21045e66e786819066593dad466e7ce9742
Lua
mit
DigitalPulseSoftware/NazaraEngine
f4f692f1c84871a6f25df8714f929f1840bf4c95
example/human_play.lua
example/human_play.lua
-- An example script which allows playing via normal keyboard controls. -- Use the arrow keys to move, Z is A, X is B and S and A are save and load -- state respectively. The current measured FPS will be shown in the title bar. -- Note this requires the GUI to be enabled. See the example hqnes.cfg. emu.setframerate(60...
-- An example script which allows playing via normal keyboard controls. -- Use the arrow keys to move, Enter = Start, Backspace = Select, -- Z is A, X is B and S and A are save and load state respectively. -- The current measured FPS will be shown in the title bar. -- Note this requires the GUI to be enabled. See the e...
Add start and select keybinds
Add start and select keybinds
Lua
mit
Bindernews/HeadlessQuickNes,Bindernews/HeadlessQuickNes,Bindernews/HeadlessQuickNes
8303382fc475026945ecad388f0f2d7586c66b69
layout-halfletter.lua
layout-halfletter.lua
local book = SILE.require("classes/book"); book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "22.5mm", right = "100%-15mm", top = "20mm", bottom = "top(footnotes)" }, runningHead = {left = "left(content)", right = "right(content)", top = "top(c...
local book = SILE.require("classes/book"); book:loadPackage("masters") book:defineMaster({ id = "right", firstContentFrame = "content", frames = { content = {left = "22.5mm", right = "100%-15mm", top = "20mm", bottom = "top(footnotes)" }, runningHead = {left = "left(content)", right = "right(content)", top = "top(c...
Discard space between heading and content frames
Discard space between heading and content frames
Lua
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
1e3e085bef0a8e38e57879d3109de0e2d4c51486
src/api-umbrella/utils/run_command.lua
src/api-umbrella/utils/run_command.lua
-- Run a command line program and return its exit code and output. return function(command) -- Since Lua 5.1 doesn't support getting the exit code and output -- simultaneously, this approach is a bit hacky. We redirect stderr to stdout -- (so our output includes everything), and then append the status code to -...
-- Run a command line program and return its exit code and output. return function(command) -- Since Lua 5.1 doesn't support getting the exit code and output -- simultaneously, this approach is a bit hacky. We redirect stderr to stdout -- (so our output includes everything), and then append the status code to -...
Improve error handling for weird command failures.
Improve error handling for weird command failures. If the shell command exits unexpectedly, this handles that error case better.
Lua
mit
apinf/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,apinf/api-umbrella,apinf/api-umbrella
81e2c3817acaea392af21c8b868c9c431106438c
build/scripts/modules/vulkan.lua
build/scripts/modules/vulkan.lua
MODULE.Name = "Vulkan" MODULE.Defines = { "VK_NO_PROTOTYPES" } MODULE.Libraries = { "NazaraCore", "NazaraUtility" } MODULE.OsDefines.Windows = { "VK_USE_PLATFORM_WIN32_KHR" } MODULE.OsFiles.Windows = { "../src/Nazara/Vulkan/Win32/**.hpp", "../src/Nazara/Vulkan/Win32/**.cpp" }
MODULE.Name = "Vulkan" MODULE.Defines = { "VK_NO_PROTOTYPES" } MODULE.Libraries = { "NazaraCore", "NazaraUtility" } MODULE.OsDefines.Linux = { "VK_USE_PLATFORM_MIR_KHR", "VK_USE_PLATFORM_XCB_KHR", "VK_USE_PLATFORM_XLIB_KHR", "VK_USE_PLATFORM_WAYLAND_KHR" } MODULE.OsDefines.BSD = MODULE.OsDefines.Linux MODULE...
Add support for Linux, BSD and Solaris
Build: Add support for Linux, BSD and Solaris Former-commit-id: 2f7f1e74fd101d688977ceb5129027cb1fa4a67b
Lua
mit
DigitalPulseSoftware/NazaraEngine
495f5080d7712e69a0fd61373f5a0f60df546dbf
examples/telemetry_channel_metrics.lua
examples/telemetry_channel_metrics.lua
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. --[[ Monitor telemetry traffic by channel *Example Heka Configuration* .. code-block:: ini [ByChannelHour] ...
Add byChannel filter to examples
Add byChannel filter to examples
Lua
mpl-2.0
kparlante/data-pipeline,kparlante/data-pipeline,kparlante/data-pipeline,kparlante/data-pipeline
1a51e458e83f1370fc9791cdb2eadf8de2538a43
hammerspoon/init.lua
hammerspoon/init.lua
-- https://zzamboni.org/post/my-hammerspoon-configuration-with-commentary/ hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.use_syncinstall = true Install=spoon.SpoonInstall Install:andUse("URLDispatcher", { config = { url_patterns = { { "https?://3.basecamp.com", "org.mozilla.firefox" }, {...
-- https://zzamboni.org/post/my-hammerspoon-configuration-with-commentary/ hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.use_syncinstall = true Install=spoon.SpoonInstall Install:andUse("URLDispatcher", { config = { url_patterns = { -- { "https?://3.basecamp.com", "org.mozilla.firefox" }, ...
Disable site-specific browsers for now
Disable site-specific browsers for now I’m still figuring out my best strategy here
Lua
mit
timriley/dotfiles,timriley/dotfiles
73b17ec68a157ceb5b5cf69b9c9acab7fec655bc
item/id_92_oillamp.lua
item/id_92_oillamp.lua
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
Clean up code. Not change in functionality
Clean up code. Not change in functionality
Lua
agpl-3.0
KayMD/Illarion-Content,Baylamon/Illarion-Content,Illarion-eV/Illarion-Content,vilarion/Illarion-Content
11611db9d2858e1a1db175422dcf759d5823181e
src/bench/loadws.lua
src/bench/loadws.lua
local Platform = require "cosy.platform" local Copas = require "copas.ev" Copas:make_default () local websocket = require "websocket" local nb_threads = 1 local nb_iterations = 100 --local running = 0 local opened = {} local closed = 0 local sent = 0 local received = 0 for thread = 1, nb...
Add simple benchmark for load testing.
Add simple benchmark for load testing.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
a9a19ba5aef882d8d464fa3b14f8c5730a54c018
controller/utils.lua
controller/utils.lua
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end -- translate a raw value through a lookup table of { {rawval, translation} } -- interpolating between closest values function translate(rawval, lookup_ta...
-- some utility methods for the space probe function log(message) print(os.date() .. " " .. tostring(message)) end function round(n) return math.floor(n+0.5) end function finite(x) local inf = 1/0 return x and (x == x) and (x ~= inf ) and (x ~= -inf) end -- translate a raw value through a lookup table of { {ra...
Fix bug where translate(-1, table) gave -inf result (now gives 0)
Fix bug where translate(-1, table) gave -inf result (now gives 0)
Lua
mit
makehackvoid/MHV-Space-Probe
a678591f790701dfacf9a526bee24f1d6f7f0760
test/tests/fold3.lua
test/tests/fold3.lua
test.open('mid.lua') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq local assertAt = test.assertAt assertAt(0,0) -- Now try folding test.keys('zc') assertAt(0,0) -- Try moving over folded function test.key('j') assertAt(4,0) -- should have skipped the body test.key('k') assertAt(0...
test.open('mid.lua') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq local assertAt = test.assertAt assertAt(0,0) -- Now try folding test.keys('zc') assertAt(0,0) -- Try moving over folded function test.key('j') assertAt(4,0) -- should have skipped the body test.key('k') assertAt(0...
Test that lines become unfolded for searches.
Test that lines become unfolded for searches.
Lua
mit
jugglerchris/textadept-vi,jugglerchris/textadept-vi,erig0/textadept-vi
3d702662c04b11dcc11fab72aaac5eb852af3ca9
Hammerspoon/setup.lua
Hammerspoon/setup.lua
local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... print("-- Augmenting require paths") package.path=configdir.."/?.lua"..";"..configdir.."/?/init.lua"..";"..package.path..";"..modpath.."/?.lua"..";"..modpath.."/?/init.lua" package.cpath=configdir.."/?.so"..";"..pack...
local modpath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... print("-- Augmenting require paths") package.path=configdir.."/?.lua"..";"..configdir.."/?/init.lua"..";"..configdir.."/Spoons/?.spoon/init.lua"..";"..package.path..";"..modpath.."/?.lua"..";"..modpath.."/?/init.lua"...
Add Spoon directory to Lua package.path
Add Spoon directory to Lua package.path
Lua
mit
CommandPost/CommandPost-App,CommandPost/CommandPost-App,cmsj/hammerspoon,cmsj/hammerspoon,asmagill/hammerspoon,knu/hammerspoon,zzamboni/hammerspoon,Habbie/hammerspoon,bradparks/hammerspoon,zzamboni/hammerspoon,bradparks/hammerspoon,cmsj/hammerspoon,zzamboni/hammerspoon,Hammerspoon/hammerspoon,knu/hammerspoon,knu/hammer...
7da8e8bb333a78c665be5f79fd3ce606642b580d
extensions/pathwatcher/init.lua
extensions/pathwatcher/init.lua
--- === hs.pathwatcher === --- --- Watch paths recursively for changes --- --- This simple example watches your Hammerspoon directory for changes, and when it sees a change, reloads your configs: --- --- hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", hs.reload):start() --- --- This module is based primar...
--- === hs.pathwatcher === --- --- Watch paths recursively for changes --- --- This simple example watches your Hammerspoon directory for changes, and when it sees a change, reloads your configs: --- --- local myWatcher = hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", hs.reload):start() --- --- This modu...
Fix a subtle GC bug in the module docs
Fix a subtle GC bug in the module docs
Lua
mit
knu/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,bradparks/hammerspoon,latenitefilms/hammerspoon,asmagill/hammerspoon,Habbie/hammerspoon,cmsj/hammerspoon,zzamboni/hammerspoon,knu/hammerspoon,latenitefilms/hammerspoon,lowne/hammerspoon,kkamdooong/hammerspoon,asmagill/hammerspoon,CommandPost/CommandPost-App,Comman...
396762fab323eeda8173cf5629c8d811d985b4cb
HOME/nvim/.config/nvim/after/ftplugin/py.lua
HOME/nvim/.config/nvim/after/ftplugin/py.lua
vim.bo.shiftwidth = 2 vim.bo.tabstop = 2 vim.bo.softtabstop = 2 vim.bo.textwidth = 120 vim.bo.expandtab = true
-- Python Defaults vim.bo.shiftwidth = 4 vim.bo.tabstop = 4 vim.bo.softtabstop = 4 vim.bo.textwidth = 80 vim.bo.expandtab = true
Set Default Options for Python Files
Nvim: Set Default Options for Python Files
Lua
mit
spottybones/dotfiles,spottybones/dotfiles
3facf348e0e79aca16bb8dc5df1ae0215471b3f9
coprocess/lua/tyk/core.lua
coprocess/lua/tyk/core.lua
print("Loading core") local cjson = require "cjson" function dispatch(raw_object) object = cjson.decode(raw_object) -- Environment reference to hook. hook_name = object['hook_name'] hook_f = _G[hook_name] -- Call the hook and return a serialized version of the modified object. if hook_f then new_obj...
print("Loading core") local cjson = require "cjson" function dispatch(raw_object) object = cjson.decode(raw_object) -- Environment reference to hook. hook_name = object['hook_name'] hook_f = _G[hook_name] is_custom_key_auth = false -- Set a flag if this is a custom key auth hook. if object['hook_type'...
Extend the Lua dispatcher to support custom auth hooks.
Extend the Lua dispatcher to support custom auth hooks.
Lua
mpl-2.0
nebolsin/tyk,nebolsin/tyk,lonelycode/tyk,lonelycode/tyk,mvdan/tyk,mvdan/tyk,lonelycode/tyk,mvdan/tyk,mvdan/tyk,mvdan/tyk,mvdan/tyk,nebolsin/tyk,nebolsin/tyk,mvdan/tyk,nebolsin/tyk,mvdan/tyk,nebolsin/tyk,nebolsin/tyk,nebolsin/tyk
0a4491930ebbdade6ae8e82260d0039f086efb84
spec/policy/http_proxy/http_proxy_spec.lua
spec/policy/http_proxy/http_proxy_spec.lua
local proxy_policy = require('apicast.policy.http_proxy') local resty_url = require 'resty.url' describe('HTTP proxy policy', function() local all_proxy_val = "http://all.com" local http_proxy_val = "http://plain.com" local https_proxy_val = "http://secure.com" local http_uri = {scheme="http"} local https_...
Add proxy policy unit test
Policy: Add proxy policy unit test Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@gmail.com>
Lua
mit
3scale/docker-gateway,3scale/docker-gateway
f25082ad5fefdfc1e5f53bbefd026cd62c29136b
mods/snow/aliases.lua
mods/snow/aliases.lua
minetest.register_alias("default:pine_needles", "snow:needles") minetest.register_alias("default:pine_needles", "snow:leaves")
minetest.register_alias("default:pine_needles", "snow:needles") minetest.register_alias("default:pine_needles", "snow:leaves") minetest.register_alias("default:pine_sapling", "snow:sapling_pine")
Implement alias between snow and default pine sapling
[snow] Implement alias between snow and default pine sapling - Maybe solve #425
Lua
unlicense
sys4-fr/server-minetestforfun,Gael-de-Sailly/minetest-minetestforfun-server,Coethium/server-minetestforfun,Coethium/server-minetestforfun,crabman77/minetest-minetestforfun-server,sys4-fr/server-minetestforfun,LeMagnesium/minetest-minetestforfun-server,Gael-de-Sailly/minetest-minetestforfun-server,MinetestForFun/minetes...
ebf64c605c034d892275be70771f96be3b62ae28
src/cosy/loader/lua.lua
src/cosy/loader/lua.lua
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "...
if #setmetatable ({}, { __len = function () return 1 end }) ~= 1 then error "Cosy requires Lua >= 5.2 or Luajit with 5.2 compatibility to run." end return function (t) t = t or {} local loader = {} local modules = setmetatable ({}, { __mode = "kv" }) loader.hotswap = t.hotswap or require "...
Fix require in the loader.
Fix require in the loader.
Lua
mit
CosyVerif/library,CosyVerif/library,CosyVerif/library
81e10700c3e8439330458e0157057229f002147e
src/conf.lua
src/conf.lua
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.33" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 912 t.screen.height = 528 t.screen.fullscreen = false t.console ...
function love.conf(t) t.title = "Journey to the Center of Hawkthorne v0.0.34" t.author = "Kyle Conroy" t.version = "0.8.0" t.identity = "hawkthorne" t.screen.width = 912 t.screen.height = 528 t.screen.fullscreen = false t.console ...
Bump release version to v0.0.34
Bump release version to v0.0.34
Lua
mit
hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua
a683a4764d2ce1bbf96cd4c414633528d04bfa46
libs/term-fake.lua
libs/term-fake.lua
local prev = ... local cursorPos = {0, 0} local fg = 1 local bg = 32768 local blink = true local termNat; termNat = { isColor = function() return false end; isColour = function() return false end; getCursorPos = function() return unpack(cursorPos) end; setCursorPos = function(x, y) cursorPos = {x, y} end; getBack...
local prev = ... local cursorX, cursorY = 0, 0 local fg = 1 local bg = 32768 local blink = true local termNat; termNat = { isColor = function() return true end; isColour = function() return true end; getCursorPos = function() return cursorX, cursorY end; setCursorPos = function(x, y) cursorX, cursorY = x, y end; ...
Make the fake term implementation a bit better
Make the fake term implementation a bit better
Lua
mit
CoderPuppy/cc-emu,CoderPuppy/cc-emu,CoderPuppy/cc-emu
2c7cef9dcf93ffdaf70814bb7a7be8dd0fe1a534
wow/35-Widget-Layout.lua
wow/35-Widget-Layout.lua
require "wow/Frame"; require "rainback/AnchoredBound"; require "rainback/wow-conversion"; local Widget = WoW.Widget; Widget:AddConstructor(function(widget) widget:OnDelegateSet(function(category, delegate) if category ~= "layout" then return; end; widget:AttachLayout(delegate);...
Support natural width for widgets
Support natural width for widgets
Lua
mit
Thonik/rainback
137c51e5672ddafed4326b18fdf40fcbb7cb6502
test_scripts/API/IsReady/UI_IsReady/ATF_UI_IsReady_available_false_SplitRPC_IsNotExist.lua
test_scripts/API/IsReady/UI_IsReady/ATF_UI_IsReady_available_false_SplitRPC_IsNotExist.lua
--------------------------------------------------------------------------------------------- -- CRQ: APPLINK-25085: [GENIVI] UI interface: SDL behavior in case HMI does not respond to -- IsReady_request or respond with "available" = false -- -- Requirement(s): APPLINK-25100 [UI Interface] UI.IsRea...
Add script to verify case resultCode is not exist
Add script to verify case resultCode is not exist
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
7a77e76626efb9c57c981e47487fe8297cc15759
neovim/.config/nvim/lua/utilities.lua
neovim/.config/nvim/lua/utilities.lua
local M = {} M.map = function(key) -- get the extra options local opts = {noremap = true} for i, v in pairs(key) do if type(i) == 'string' then opts[i] = v end end -- basic support for buffer-scoped keybindings local buffer = opts.buffer opts.buffer = nil if buffer then vim.api.nvim_buf_set_k...
local M = {} M.map = function(key) -- get the extra options local opts = {noremap = true} for i, v in pairs(key) do if type(i) == 'string' then opts[i] = v end end -- basic support for buffer-scoped keybindings local buffer = opts.buffer opts.buffer = nil if buffer then vim.api.nvim_buf_set_k...
Add augroup lua utility function
Add augroup lua utility function
Lua
mit
bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles,bronzehedwick/dotfiles