View gist:ac4862163a1742ac27779e1ba06c65b0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleNumberInputFocus: function (e){ | |
e.target.addEventListener('wheel', this.handlePreventScrollNumberInput) | |
}, | |
handleNumberInputBlur: function (e) { | |
e.target.removeEventListener('wheel', this.handlePreventScrollNumberInput); | |
}, | |
handlePreventScrollNumberInput: function (e) { | |
e.preventDefault(); |
View gist:44257e8509e6ee67092b142ba768804e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Package operations: 0 installs, 14 updates, 0 removals | |
- Updating mobiledetect/mobiledetectlib (2.8.24 => 2.8.25): Downloading (100%) | |
- Updating cakephp/chronos (1.1.0 => 1.1.1): Downloading (100%) | |
- Updating zendframework/zend-diactoros (1.3.10 => 1.4.0): Downloading (100%) | |
- Updating symfony/yaml (v3.2.6 => v3.2.7): Loading from cache | |
- Updating symfony/debug (v3.2.6 => v3.2.7): Downloading (100%) | |
- Updating symfony/console (v3.2.6 => v3.2.7): Downloading (100%) | |
- Updating symfony/var-dumper (v3.2.6 => v3.2.7): Downloading (100%) |
View gist:b7a083525fc27651448fda6d93b25cc2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [ ! "$(sed -n "/done/p" "$LOGFILE")" ]; | |
do | |
if [ "$LINE" != "$(tail -n 1 "$LOGFILE")" ]; then | |
LINE=$(tail -n 1 "$LOGFILE") | |
echo -en $LINE"\n" | |
fi | |
done |
View .sass-lint.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
## Sass Lint File | |
######################### | |
# sass-lint -v | |
# Linter Options | |
options: | |
# Don't merge default rules | |
merge-default-rules: false | |
# Set the formatter to 'stylish' | |
formatter: compact |
View speedup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table className="table"> | |
{this._getHeadings()} | |
<tbody ref="tbody"> | |
{this.props.data.map((row, i) => { | |
return ( | |
<tr key={'row_' + i}> | |
{this.props.selected_columns.map((column) => { | |
return ( | |
<td className="no-wrap" key={row['id'] + '+' + column}> | |
<Field {...row} |
View gist:124477436723eeaff69c7a2335879294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "refeed/account/form.html" %} | |
{% block form_header %} | |
{% endblock form_header %} | |
{% block form_submit_controls %} | |
<input class="btn" type="submit" value="Save Password"/> | |
{% endblock form_submit_controls %} |
View gist:50fca1bcbde9843c2deaddb923f56177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function testImplementedEvents() | |
{ | |
$eventsToTest = [ | |
'Table.Listings.bid_approved' => 'logUserApprovedBid', | |
'Table.Listings.bids_rejected' => 'logUserRejectBids', | |
'Table.Listings.bids_reset' => 'logUserResetBids', | |
'Table.Listings.publish' => 'logUserPublishListing', |
View <?php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function testViewAuthenticated() | |
{ | |
$this->session([ | |
'Auth' => [ | |
'User' => [ | |
'permissions' => [ | |
[ | |
'label' => 'ViewInvoices' |
View validation.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fields = [ | |
'title' => 'Your listing needs a title', | |
'insurer_id' => 'Please specify an Insurer' | |
]; | |
$rules = []; | |
foreach($fields as $field => $message){ | |
$rules['location_' . $field] = [ |
View gist:25faf284419394eb31e7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec("echo '".CAKE_CORE_INCLUDE_PATH."/cake/console/cake subscriber email -auction_id ".$auction_id." -existing ".$existing." -app ".APP."' | at now"); |
NewerOlder