Skip to content

Instantly share code, notes, and snippets.

View wyqydsyq's full-sized avatar
🌏
Breaking the Internet

wyqydsyq wyqydsyq

🌏
Breaking the Internet
  • Brisbane, Australia
View GitHub Profile
SELECT SUM(`earnings`) AS `total` FROM `rooms` WHERE `room_type` = 'single' AND `roomPrice` NOT NULL
@wyqydsyq
wyqydsyq / .htaccess
Created June 24, 2015 04:04
Compression & Expires
## Compression ##
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
@wyqydsyq
wyqydsyq / gist:80c40dfce3f1d8621535
Created January 6, 2015 01:36
Xero GST rounding error sample data
{
Invoice: {
Type: "ACCREC",
Contact: [{
ContactStatus: "ACTIVE",
Name: "Damon Poole",
FirstName: "Damon",
LastName: "Poole",
EmailAddress: "[email protected]",
Phones: {
@wyqydsyq
wyqydsyq / gist:9044751
Created February 17, 2014 04:30
Shopify call
shopify = {
// call defaults
'site': false,
'token': false,
'data': {},
// make an API call, when done, calls callback(data)
'call': function(hit, callback, data, site, token){
if(typeof data === 'undefined') data = this.data;