Skip to content

Instantly share code, notes, and snippets.

View DeviaVir's full-sized avatar
🏴‍☠️

Chase DeviaVir

🏴‍☠️
View GitHub Profile
@DeviaVir
DeviaVir / dabblet.css
Created September 5, 2012 20:55
3d transform padding
/**
* 3d transform padding
*/
.container {
border: 1px solid rgba( 0, 0, 0, 0.5 );
}
.padding {
height: 100px;
@DeviaVir
DeviaVir / authy.lib.php
Created September 6, 2012 03:47
An extremely simple authy PHP implementation
<?PHP
Class Authy {
// API key
private static $api_key = '';
// Production
// private static $api_url = 'https://api.authy.com/protected/json/';
// Sandbox
private static $api_url = 'http://sandbox-api.authy.com/protected/json/';
@DeviaVir
DeviaVir / lessneglect.lib.php
Created September 11, 2012 22:30
A PHP library for the lessneglect.com API
<?PHP
Class LN {
// API credentials
private static $api_key = '';
private static $api_secret = '';
// Production (no sandboxed version available yet)
private static $api_url = 'https://lessneglect.com/api/v2/';
// Show debug messages?
@DeviaVir
DeviaVir / _noise.sass
Created September 16, 2012 09:33
Give any element a noise background
@mixin noise
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6Sfi
@DeviaVir
DeviaVir / dabblet.css
Created September 17, 2012 20:36
Horizontally centered floated elements
/**
* Horizontally centered floated elements
*/
* {
margin: 0;
}
html, body {
background: #f4f4f4;
@DeviaVir
DeviaVir / dabblet.css
Created September 20, 2012 01:27 — forked from marciobarrios/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@DeviaVir
DeviaVir / countries.sql
Created September 24, 2012 12:46
All countries and their currencies
#
# http://peric.github.com/GetCountries/
#
CREATE TABLE IF NOT EXISTS `countries` (
`idCountry` int(5) NOT NULL AUTO_INCREMENT,
`countryCode` char(2) NOT NULL DEFAULT '',
`countryName` varchar(80) NOT NULL DEFAULT '',
`currencyCode` char(3) DEFAULT NULL,
PRIMARY KEY (`idCountry`)
@DeviaVir
DeviaVir / dabblet.css
Created October 1, 2012 14:32
Outline popup demo
/**
* Outline popup demo
*/
body, html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
position: relative;
min-height: 100%;
height: 100%;
@DeviaVir
DeviaVir / dabblet.css
Created October 6, 2012 18:47
Playing with pointer-events
/**
* Playing with pointer-events
*/
html, body {
background: #f4f4f4;
}
.form {
width: auto;
@DeviaVir
DeviaVir / dabblet.css
Created October 11, 2012 02:32
Vertical centering with images and Firefox?
/**
* Vertical centering with images and Firefox?
*/
html, body { height: 100%; }
body {
width: 100%; /* needed for FF */
height: 100%;
margin: 0;