Skip to content

Instantly share code, notes, and snippets.

View wuori's full-sized avatar

Michael Wuori wuori

View GitHub Profile
@wuori
wuori / ally.com-02-17-2020-19-52.json
Last active February 18, 2020 02:11
Lighhouse report
{
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36",
"environment": {
"networkUserAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3694.0 Mobile Safari/537.36 Chrome-Lighthouse",
"hostUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36",
"benchmarkIndex": 1400
},
"lighthouseVersion": "5.5.0",
"fetchTime": "2020-02-18T02:10:00.526Z",
"requestedUrl": "https://www.ally.com/",
@wuori
wuori / gist:1a07e95ae07122228cddb197a6f774b2
Last active November 6, 2018 02:11
Update Laravel Homstead System Time
sudo service ntp stop
sudo ntpd -gq
sudo service ntp start
@wuori
wuori / FormData.js
Last active November 7, 2017 20:11
FormData() Handling Example
/*
* Create new FormData() object from values in $form
*/
getFormData: function($form) {
var data = new FormData();
var specialTypes = ['file', 'checkbox', 'radio'];
$form.find('input,textarea,select').each(function() {
@wuori
wuori / variableproperty
Last active December 20, 2015 04:29
Accessing a property on an object with a variable property name. Ex: Line #27
<?
/*
* Build Select Box
* Expects $this->options['display']['data'] to be array('value'=>'label','value'=>'label'...)
*/
public function selectdynamic()
{
# init row
$this->start_row();