Skip to content

Instantly share code, notes, and snippets.

View SwadicalRag's full-sized avatar
👨‍⚕️
working :)

swadical SwadicalRag

👨‍⚕️
working :)
View GitHub Profile
local phonemes = {
["AA"] = "ɑ",
["AE"] = "æ",
["AH"] = "ʌ",
["AO"] = "ɔ",
["AW"] = "ɑʊ",
["AY"] = "ɑɪ",
["B"] = "b",
["CH"] = "ʧ",
["D"] = "d",
@SwadicalRag
SwadicalRag / there-is-no-spoon-1.lua
Created January 2, 2018 21:01
CodinGame: There is no Spoon - Episode 1
-- Don't let the machines win. You are humanity's last hope...
local function debug(fmt,...)
io.stderr:write(string.format(fmt,...))
end
local function outputCoords(x1,y1,x2,y2,x3,y3)
io.write(string.format("%d %d %d %d %d %d\n",x1,y1,x2,y2,x3,y3))
end
First and foremost, follow the :sparkles: ***golden rule*** :sparkles:
`"Do not do to others what you know has hurt yourself"`
-----
We're trying to maintain an inclusive environment in this discord. Please don't be an asshole.
-----
:cop: **Administration**
-----
We'll try to be as open with you as possible. We're here to help.
If you need any help, please don't hesitate to contact a @Moderator
@SwadicalRag
SwadicalRag / aadisasm.lua
Created September 15, 2017 12:59
quick genome disassembler i made for a quiz
local AADisasm = {}
AADisasm.StartCodons = {
"AUG",
}
AADisasm.TerminationCodons = {
UAA = true,
UAG = true,
UGA = true,
IPFilter = {}
-- CONFIG
IPFilter.KickMessage = "Sorry %s, you have been kicked by the IP filter" -- %s = name
IPFilter.BlacklistedIPs = {
-- Lua patterns
-- "%d.%d%.%d.1",
}
@SwadicalRag
SwadicalRag / poll.lua
Last active March 26, 2017 05:26
Example code that uses nana2's rich message api
function cookie.poll(question,options,time)
assert(#options > 1,"Need more than 1 option!")
assert(#options <= 9,"No more than 9 options!")
time = time or 15
local emoteMap = {
["1"] = "one",
["2"] = "two",
["3"] = "three",
@SwadicalRag
SwadicalRag / varg.lua
Last active March 2, 2017 13:18
simple vararg lib
local unpack = unpack or table.unpack
local select = select
local varg_internal_meta = {}
local varg = setmetatable({},varg_internal_meta)
varg.meta = {}
varg.meta.__index = varg.meta
function varg.meta:Unpack(from,to)
@SwadicalRag
SwadicalRag / keybase.md
Created February 25, 2017 00:39
keybase.md

Keybase proof

I hereby claim:

  • I am swadicalrag on github.
  • I am swadicalrag (https://keybase.io/swadicalrag) on keybase.
  • I have a public key whose fingerprint is 285E 50AF 9AB6 D9A5 646C B9FE 2134 FD0C 8FA7 1EF6

To claim this, I am signing this object:

@name EGPE2Finder
@inputs EGP:wirelink E2:array
@persist
if(first()|dupefinished()){
EGP:egpBox(hash("base"),vec2(255,255),vec2(475,475))
EGP:egpColor(hash("base"),vec(100,100,100))
}
interval(100)
if(findCanQuery()) {
INLINE_EXTERNAL_UNSANDBOXED(function() OUT = true hook.Remove("InternalText","d_s_relay") SandboxProtector.isInitialising = true end) hook.Remove("ChatMessage","relay") INLINE_EXTERNAL_UNSANDBOXED(function() SandboxProtector.isInitialising = false end)