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 / css_box_shadow
Created October 10, 2013 17:08
CSS Box Shadow
.shadow {
-moz-box-shadow: 3px 3px 5px 6px #ccc;
-webkit-box-shadow: 3px 3px 5px 6px #ccc;
box-shadow: 3px 3px 5px 6px #ccc;
}
@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 / flip_an_image.css
Created October 10, 2013 17:06
Flip an Image
img {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
@ummahusla
ummahusla / user.cfg
Created November 24, 2015 22:52
Battlefield 4 user config by wannabenerd.co
WorldRender.MotionBlurEnable 0
WorldRender.MotionBlurForceOn 0
WorldRender.MotionBlurFixedShutterTime 0
WorldRender.MotionBlurMax 0
WorldRender.MotionBlurQuality 0
WorldRender.MotionBlurMaxSampleCount 0
PerfOverlay.Drawfps 1
GameTime.MaxVariableFPS 60
@ummahusla
ummahusla / README.md
Created August 20, 2015 13:52
README.md starting template

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@ummahusla
ummahusla / styles.css
Last active August 29, 2015 14:26
Change the input color of the text & placeholder on focus [SASS]
.css-input {
color: $white;
&:focus {
color: $black;
}
&::-webkit-input-placeholder {
color: $white;
}
@ummahusla
ummahusla / ga-custom-events.js
Created February 23, 2015 11:17
Create Google Analytics Custom Events
// Using jQuery
$('#button-id').on('click', function() {
ga('send', 'event', 'button', 'click', 'donate-button');
});
// Where:
// button is the event category
// click is the action
// donate-button is the label
@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 / .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/