Skip to content

Instantly share code, notes, and snippets.

-- FUNEMPLOYED
xml=[[<C><P /><Z><S><S L="800" X="400" H="50" Y="380" T="6" P="0,0,0.3,0.2,0,0,0,0" /><S L="500" H="44" X="400" Y="338" T="12" P="0,0,0.3,0.2,0,0,0,0" /><S P="0,0,0.3,0.2,0,0,0,0" L="500" X="400" Y="150" T="12" H="250" /></S><D /><O /></Z></C>]]
hand=5
cardsPerRound=3
cards={
jobs={
unused={
"Pirate",
--- Create a flat list of all files in a directory
-- @param directory - The directory to scan (default value = './')
-- @param recursive - Whether or not to scan subdirectories recursively (default value = true)
-- @param extensions - List of extensions to collect, if blank all will be collected
function scandir(directory, recursive, extensions)
directory = directory or ''
recursive = recursive or false
-- if string.sub(directory, -1) ~= '/' then directory = directory .. '/' end
if recursive then command = command .. 'R' end
local currentDirectory = directory
@imliam
imliam / README.md
Created May 18, 2017 15:11
Package Project Template

Project Title

Project Logo

Introduction

A paragraph to introduce the project, describing it in a few short sentences to grab people's attention and let them know if it will be useful for them.

Contents

@imliam
imliam / kendo-action-template.json
Last active May 24, 2017 08:22
Test data for Kendo UI Gantt chart
callback({
"id": "00000000-0000-0000-0000-000000000001",
"name": "Scrum with team",
"description": "",
"date_started": "2017-04-10T00:00:00Z",
"date_due": "2017-04-11T00:00:00Z",
"assignee": [
],
"responsible_user": "00000000-0000-0000-0000-000000000000",
local inspect ={
_VERSION = 'inspect.lua 3.1.0',
_URL = 'http://github.com/kikito/inspect.lua',
_DESCRIPTION = 'human-readable representations of tables',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Permission is hereby granted, free of charge, to any person obtaining a
@imliam
imliam / skill-charging.lua
Created May 7, 2017 02:24
Transformice Skill Charging
-- List of keycodes
keys = {
['LEFT'] = 0,
['UP'] = 1,
['RIGHT'] = 2,
['DOWN'] = 3,
['BACKSPACE'] = 8,
['SHIFT'] = 16,
['CTRL'] = 17,
['ALT'] = 18,
@imliam
imliam / cmd.lua
Created April 26, 2017 16:01
Command line argument parsing
command_strings = {
'php artisan make="hi mate" heh "I have a value"',
"php artisan make:auth",
[[I "am" 'the text' and "some more text with '" and "escaped \" text"]],
[[1 2 word 2 9 'more words' 1 "and more" "1 2 34"]],
[[omo "This is a string!" size=14 font="Comic Sans" break= hmm "thing and 'thing'" ]]
}
function command_parse(s)
local t={}
@imliam
imliam / nav.css
Created April 6, 2017 07:52
Bootstrap 4 - Navbar Hover Effects
.circleBehind a, .brackets a, .pullDown a, .pullUp a, .pullUpDown a
{
text-decoration: none;
position: relative;
z-index: 0;
cursor: pointer;
}
/* Circle behind */
.circleBehind a:before, .circleBehind a:after
@imliam
imliam / hamburger-spin.scss
Created April 5, 2017 16:43
Bootstrap 4 - Animated Hamburger Icon
// Additional spin to the animation.
.hamburger {
display: inline-block;
width: 1.5em;
height: 1.5em;
padding-top: 0.3em;
padding-bottom: 0.3em;
vertical-align: middle;
@imliam
imliam / flip.css
Created April 5, 2017 16:37
Flip an Element
/* entire container, keeps perspective */
.flip-container {
perspective: 1000px;
}
/* flip speed goes here */
.flipper {
transition: 0.6s;
transform-style: preserve-3d;