Skip to content

Instantly share code, notes, and snippets.

View ummahusla's full-sized avatar
✌️
Check my digital garden (edvins.io)

Edvins Antonovs ummahusla

✌️
Check my digital garden (edvins.io)
View GitHub Profile
@ummahusla
ummahusla / _mixins.scss
Created February 23, 2015 10:10
Foundation SASS Mixins
//
// Grid Columns
//
// A mixin to help make Foundation's grid-column mixin easier
// to use when specifying multiple media quries/screen sizes
@mixin grid-columns(
// Mobile First Media Queries
$small-up-screens: 12,
//changed default to 12, makes sense - IE
@ummahusla
ummahusla / .htaccess
Last active January 22, 2016 21:29
WordPress Leverage browser caching .htaccess
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
@ummahusla
ummahusla / .gitignore
Created February 13, 2015 11:52
WordPress .GITIGNORE
# Ignore everything in the root except the "wp-content" directory.
/*
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories.
wp-content/*
!wp-content/plugins/
!wp-content/themes/
@ummahusla
ummahusla / gist:bc160235dca2e3f67537
Created December 17, 2014 15:26
HTML5 Canvas with tabs
<canvas id="canvas" width=900 height=700></canvas>
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext('2d')
var Tab = function(id, x, y, width, height, text, color) {
this.id = id;
// defaults can be changed after object creation
@ummahusla
ummahusla / ajax_request
Created December 17, 2014 15:17
How to get the previous ajax request
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery-2.1.1.js">
</script>
<script >
$(function(){
$('#btnSearch').click(function(){
@ummahusla
ummahusla / countries.txt
Created December 10, 2014 15:15
BreezingForms - Country Dropdown List
1;United Kingdom;united_kingdom
0;Afghanistan;afghanistan
0;Albania;albania
0;Algeria;algeria
0;Andorra;andorra
0;Angola;angola
0;Antigua and Barbuda;antigua_and_barbuda
0;Argentina;argentina
0;Armenia;armenia
0;Australia;australia
@ummahusla
ummahusla / captcha_words.txt
Last active August 29, 2015 14:11
15,000 words Captcha library
For full info please visit - www.antonoffplus.com/15000-words-captcha-library
aahing
aaliis
aarrgh
abacas
abacus
abakas
abamps
abased
@ummahusla
ummahusla / css3_less_mixins
Created October 10, 2013 17:10
Useful CSS3 LESS Mixins
.text-shadow (@string: 0 1px 3px rgba(0, 0, 0, 0.25)) {
text-shadow: @string;
}
.box-shadow (@string) {
-webkit-box-shadow: @string;
-moz-box-shadow: @string;
box-shadow: @string;
}
.drop-shadow (@x: 0, @y: 1px, @blur: 2px, @spread: 0, @alpha: 0.25) {
-webkit-box-shadow: @x @y @blur @spread rgba(0, 0, 0, @alpha);
@ummahusla
ummahusla / text_rotation
Created October 10, 2013 17:10
Text Rotation
.rotate {
/* Safari */
-webkit-transform: rotate(-90deg);
/* Firefox */
-moz-transform: rotate(-90deg);
/* IE */
-ms-transform: rotate(-90deg);
@ummahusla
ummahusla / css_text_shadow
Created October 10, 2013 17:09
CSS text shadow
Regular text shadow:
p { text-shadow: 1px 1px 1px #000; }
Multiple shadows:
p { text-shadow: 1px 1px 1px #000, 3px 3px 5px blue; }