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
/* | |
|-------------------------------------------------------------------------- | |
| 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
<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
<?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
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
server { | |
server_name www.yourdomain.com; | |
return 301 $scheme://yourdomain.com$request_uri; | |
} |
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
## Misc. Commands ## | |
alias h='cd ~' | |
alias c='clear' | |
alias ls='ls -alh' | |
alias pubkey="/bin/cat ~/.ssh/id_rsa.pub | pbcopy" | |
## A quick way to get out of the current directory ## | |
alias ..='cd ../' | |
alias ...='cd ../../' | |
alias ....='cd ../../../' |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Laravel 5 - Route must start with @ | |
|-------------------------------------------------------------------------- | |
| | |
| A quick snippet showing use of the Route::where(); method that lets you | |
| define a regex pattern for the route to match, such as the "@" symbol | |
| at the beginning to denote a user. | |
| |
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
/* | |
|-------------------------------------------------------------------------- | |
| Bootstrap 4 - Close Popover When Losing Focus | |
|-------------------------------------------------------------------------- | |
| | |
| A JavaScript snippet that closes a Bootstrap 4 popover when clicking off | |
| of it, but unlike the default behaviour, allows it to stay open when | |
| clicking within the popover itself. | |
*/ |
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
<div id="unique-id" style="display:none;"> | |
<div class="popover-heading">This is a heading</div> | |
<div class="popover-body">This is HTML content that will be loaded inside a </div> | |
</div> | |
<span tabindex="0" role="button" data-toggle="popover" data-placement="bottom" data-popover-content="#unique-id"> | |
Click me to load a popover | |
</span> |