The goal was to create a radio button-powered star rating widget that uses CSS only. I wanted each star preceding the selected one to appear selected as well.
A Pen by Marcus Burnette on CodePen.
function convertToSlug(Text) | |
{ | |
return Text | |
.toLowerCase() | |
.replace(/[^\w ]+/g,'') | |
.replace(/ +/g,'-') | |
; | |
} |
The goal was to create a radio button-powered star rating widget that uses CSS only. I wanted each star preceding the selected one to appear selected as well.
A Pen by Marcus Burnette on CodePen.
A Pen by Michael Ferry on CodePen.
// scroll down page away 500px from top | |
$(window).load(function() { | |
$("html, body").animate({ scrollTop: 500 }, 1000); | |
}); |
A Pen by Joseph Fusco on CodePen.
@echo off | |
@rem \"%stPath%\" : Path to Sublime Text installation dir. | |
@rem %UserEntry%: Key name for the registry entry. | |
@rem %UserMenuText% : Context menu text. Set your preferred menu text (e.g.: translate to your language). | |
@rem %AdminEntry%: Key name for the registry entry. | |
@rem %AdminMenuText% : Context menu text. Set your preferred menu text for administrator privilege (e.g.: translate to your language). | |
SET stPath=%~dp0sublime_text.exe | |
SET UserEntry=Sublime Text | |
SET AdminEntry=Sublime Text As Admin |
<?php | |
/** Limit the number of post revisions */ | |
define( 'WP_POST_REVISIONS', 5 ); | |
/** Completely Disable Post Revisions */ | |
define('WP_POST_REVISIONS', false ); | |
/** Set Autosave Interval to 1 hour */ | |
define('AUTOSAVE_INTERVAL', 3600 ); | |
?> |
wget http://wordpress.org/latest.tar.gz | |
tar xfz latest.tar.gz | |
mv wordpress/* ./ | |
rmdir ./wordpress/ | |
rm -f latest.tar.gz |
Windows: - C:\Users\<user name>\AppData\Roaming\Adobe\Adobe Illustrator 19 Settings\en_US\x64\ | |
Mac OS :- Users\<user name>\library\preferences\Adobe Illustrator 19 Settings\en_US\ |