This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
operation = {4, '+', 6, '-', 2} | |
function calculate(...) | |
local tbl={...} | |
if tbl[2] then | |
if tbl[2]=='+' then | |
table.insert(tbl, 1, tbl[1] + tbl[3]) | |
table.remove(tbl, 2) | |
table.remove(tbl, 3) | |
table.remove(tbl, 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class atelier801Forums { | |
public $session, $hiddenKey; | |
function __construct($user, $pass){ | |
$this->session = new Requests_Session("http://atelier801.com/"); | |
$this->setHeaders(); | |
$this->GET("http://atelier801.com/forums"); | |
$fields = array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="btn btn-primary" data-hover-content="Goodbye world"> | |
Hello world | |
</button> | |
<button class="btn btn-primary" data-hover-element="#elementContent"> | |
Button Content | |
</button> | |
<div id="elementContent" style="display:none;"> | |
Element Content | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
|-------------------------------------------------------------------------- | |
| Card Stack | |
|-------------------------------------------------------------------------- | |
| | |
| Adds a visual effect to make an element looks like there are multiple | |
| stacks of it. Uses white background and gray border, used for Bootstrap | |
| 4 cards. | |
| | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* entire container, keeps perspective */ | |
.flip-container { | |
perspective: 1000px; | |
} | |
/* flip speed goes here */ | |
.flipper { | |
transition: 0.6s; | |
transform-style: preserve-3d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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={} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- List of keycodes | |
keys = { | |
['LEFT'] = 0, | |
['UP'] = 1, | |
['RIGHT'] = 2, | |
['DOWN'] = 3, | |
['BACKSPACE'] = 8, | |
['SHIFT'] = 16, | |
['CTRL'] = 17, | |
['ALT'] = 18, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |