- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
className
instead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
Stars and planets shine bright in the everlasting darkness of space. Send them into warp speed via a click and hold.
Was supposed to post yesterday as part of my one pen every two day challenge, but wasn't proud of any of my final products. Creating physics simulations is proving to be a bit harder than I initially thought, but no worries, churning away at the trig and physics books throughout the hours.
More to come.
A Pen by Christopher Lis on CodePen.
function add_months($months, DateTime $dateObject) | |
{ | |
$next = new DateTime($dateObject->format('Y-m-d')); | |
$next->modify('last day of +'.$months.' month'); | |
if($dateObject->format('d') > $next->format('d')) { | |
return $dateObject->diff($next); | |
} else { | |
return new DateInterval('P'.$months.'M'); | |
} |
function fixJsonString(str) { | |
if (!str) return; | |
return(str.replace(/(\\u[0-9abcdef]{4})/ig, function(a) { return eval('"' + a + '"'); })); | |
}; | |
function fixNameString(str) { | |
if (!str) return; | |
return(str.replace(/[^.a-zA-Z0-9_\u4e00-\u9fa5\,;。“”:!\/]/ig, '')); | |
}; |