This file contains hidden or 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 | |
| /* IGNORE_TABLES */ | |
| $tablesToBeIgnored = array ( | |
| "dataflow_batch_export", | |
| "dataflow_batch_import", | |
| "log_customer", | |
| "log_quote", | |
| "log_summary", | |
| "log_summary_type", |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="mageploy" default="prepare"> | |
| <target name="prepare"> | |
| <echo msg="Making directory ./tmp" /> | |
| <mkdir dir="./tmp" /> | |
| <if> |
This file contains hidden or 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
| vagrant@precise32:~/app/wearetech.io$ node . | |
| /home/vagrant/app/wearetech.io/back/models/user.model.js:68 | |
| default: __.partial(ModelMongo.defaultDate, config.users.emailConfirmati | |
| ^ | |
| TypeError: Cannot read property 'emailConfirmationExpires' of undefined | |
| at Object.<anonymous> (/home/vagrant/app/wearetech.io/back/models/user.model | |
| .js:68:63) | |
| at Module._compile (module.js:456:26) | |
| at Object.Module._extensions..js (module.js:474:10) |
This file contains hidden or 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 | |
| require_once __DIR__.'/your/vendor/autoload.php'; | |
| use Respect\Validation\Validator; | |
| /** | |
| * This would be your Model class | |
| **/ | |
| class User { |
This file contains hidden or 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
| SELECT DISTINCT o.customer_id, ce.email FROM sales_flat_order_item i | |
| JOIN sales_flat_order o ON o.entity_id = i.order_id | |
| JOIN customer_entity ce ON ce.entity_id = o.customer_id | |
| WHERE o.customer_id IS NOT NULL | |
| AND i.sku = 'PRODUCT_SKU' |
This file contains hidden or 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
| // --- Variables | |
| // --------------------------------------------------- | |
| // grid | |
| $gutter: 10; | |
| $max-width: 1100; // Max grid wrap width | |
| $sm-column-count: 4; | |
| $med-column-count: 6; | |
| $lg-column-count: 12; | |
| $mqs: 380; // small breakpoint |
This file contains hidden or 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
| var BPromise = require('bluebird'), | |
| pg = require('pg'); | |
| function Postgres(opts) { | |
| this.host = opts.host; | |
| } | |
| Postgres.prototype.query = function(sql) { | |
| return new BPromise(function(resolve, reject){ | |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParentelem.clientLeft,elem.clientTop,elem.clientWidth,elem.clientHeightelem.getClientRects(),elem.getBoundingClientRect()
This file contains hidden or 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
| FROM ubuntu | |
| MAINTAINER Eric Mill "[email protected]" | |
| # turn on universe packages | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| # basics | |
| RUN apt-get install -y nginx openssh-server git-core openssh-client curl | |
| RUN apt-get install -y nano |