Skip to content

Instantly share code, notes, and snippets.

View danieldogeanu's full-sized avatar

Daniel Dogeanu danieldogeanu

View GitHub Profile
@danieldogeanu
danieldogeanu / RetinaTest
Created October 21, 2013 16:42
Retina Test on Normal Displays
Trick to test Retina Displays:
You actually can using Firefox:
1. Go to "about:config"
2. Find "layout.css.devPixelsPerPx"
3. Change it to your desired ratio (1 for normal, 2 for retina, etc.)
Refresh your page - boom, your media query has now kicked in!
Hats off to Firefox for being awesome for web developing!
@danieldogeanu
danieldogeanu / FirefoxLocalURLsFix
Created October 21, 2013 16:44
Firefox Local URLs Fix
1. Type 'about:config' in the address bar
2. Search 'security.fileuri.strict_origin_policy' and set it to false
WARNING!!! This is a huge security hole! Please use with caution!
@danieldogeanu
danieldogeanu / ResponsiveDesignFlexibleValuesFormula
Created October 21, 2013 16:54
Responsive Design & Flexible Values: Formula
target : context = result
For ems (fonts):
ex:
body {
font-size: 100%;
}
@danieldogeanu
danieldogeanu / SEOPermalinksWAMP
Created October 22, 2013 01:37
SEO Friendly Permalinks for WAMP
Make sure the following Apache modules are running:
- alias_module
- rewrite_module
@danieldogeanu
danieldogeanu / DisableWordPressAutoUpdate
Created November 16, 2013 13:18
Disable WordPress Auto-Update feature
/** Disables the Auto-Update feature. This line must be in wp-config.php. */
define( 'AUTOMATIC_UPDATER_DISABLED', true );
@danieldogeanu
danieldogeanu / SVGFallback
Created November 27, 2013 07:09
SVG Fallbacks to create Retina ready designs without much hassle. From http://css-tricks.com/svg-fallbacks/
If you're using SVG as a background-image...
--------------------
CSS:
.my-element {
background-image: url(image.svg);
}
.no-svg .my-element {
background-image: url(image.png);
@danieldogeanu
danieldogeanu / WAMP Pretty Permalinks
Created January 4, 2015 01:42
Get WAMP server to work with pretty permalinks on WordPress
@danieldogeanu
danieldogeanu / DisableSpinnerAndNativeCalendarDropdown.scss
Created December 17, 2016 05:20
Disable Spinner and Native Calendar Dropdown
// Disable Spinner and Native Calendar Dropdown
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"] {
appearance: textfield;
&::-webkit-calendar-picker-indicator {
display: none;
@danieldogeanu
danieldogeanu / DisableNativeDateTimeInputs.js
Last active December 17, 2016 05:26
An alternative to disable native Date/Time inputs, with the help of Modernizr.
// Disable Native Date/Time Inputs
var dateInputs = [
'input[type="date"]',
'input[type="datetime"]',
'input[type="datetime-local"]',
'input[type="month"]',
'input[type="week"]',
'input[type="time"]'
];
@danieldogeanu
danieldogeanu / ChangeWAMPRootDirectory
Created February 23, 2017 11:05
Change WAMP Root Directory
- Go to 'C:\wamp64\bin\apache\apache2.4.18\conf', open 'httpd.conf' and change the DocumentRoot and <Directory> paths.
- Next, go to 'C:\wamp64\bin\apache\apache2.4.18\conf\extra', open 'httpd-vhosts.conf' and do the same thing as above.