Skip to content

Instantly share code, notes, and snippets.

View dylanz's full-sized avatar
🐝

Dylan Stamat dylanz

🐝
View GitHub Profile
@dylanz
dylanz / gist:3062339
Created July 6, 2012 19:41
Angular $resource
$http({
method: action.method,
url: route.url(extend({}, extractParams(data), action.params || {}, params)),
data: data
}).then(function(response) {
var data = response.data;
//****
// I can get the status code here from response.status
//****
SELECT
Distinct1.id AS id,
Distinct1.table_id AS table_id
FROM ( SELECT DISTINCT
   Filter1.table_id AS table_id,
   Filter1.id1 AS id
   FROM   (SELECT
       Extent1.id AS id2,
       Extent1.reservation_id AS reservation_id,
       Extent1.wait_list_id AS wait_list_id,
SELECT
Distinct1.id AS id,
Distinct1.table_id AS table_id
FROM ( SELECT DISTINCT
Filter1.table_id AS table_id,
Filter1.id1 AS id
FROM (SELECT
Extent1.id AS id2,
Extent1.reservation_id AS reservation_id,
Extent1.wait_list_id AS wait_list_id,
SELECT
Distinct1.id AS id,
Distinct1.table_id AS table_id
FROM (SELECT DISTINCT
   Filter1.table_id AS table_id,
   Filter1.id1 AS id
   FROM (SELECT
       Extent1.id AS id2,
       Extent1.reservation_id AS reservation_id,
       Extent1.wait_list_id AS wait_list_id,
SELECT
Distinct1.id AS id,
Distinct1.table_id AS table_id
FROM (SELECT DISTINCT
   Filter1.table_id AS table_id,
   Filter1.id1 AS id
   FROM (SELECT
       Extent1.id AS id2,
       Extent1.reservation_id AS reservation_id,
       Extent1.wait_list_id AS wait_list_id,
Rank Query ID Response time Calls R/Call Apdx V/M Ite
# ==== ================== ================= ====== ======== ==== ===== ===
# 1 0x7FC9E3A0FAE7663B 596049.0000 57.0% 115536 5.1590 0.00 0.10 INSERT SELECT smt_restaurant_times smt_times
# 2 0x22D56EB1AFF78873 176509.0000 16.9% 204 865.2402 0.00 78... CALL
AssignJoinedTablesToASectionByGuid
# 3 0xBB90916562BA0E49 171630.0000 16.4% 466 368.3047 0.00 23... CALL SectionTurnover
# 4 0xC12992453187B441 80142.0000 7.7% 544 147.3199 0.00 18... SELECT smt_tables smt_sms
#
15 # Profile
16 # Rank Query ID Response time Calls R/Call Apdx V/M Item
17 # ==== ================== =============== ===== ======= ==== ===== =======
18 # 1 0x22D56EB1AFF78873 4669.0000 68.3% 296 15.7736 0.00 8.62 CALL AssignJoinedTablesToASectionByGuid
19 # 2 0x3220BAE9BBBBBE5F 865.0000 12.6% 40 21.6250 0.00 17.90 SELECT smt_waitlist smt_walk_in_notes
20 # 3 0xDF609E79045A7F89 446.0000 6.5% 28 15.9286 0.00 11.24 SELECT smt_waitlist smt_customer_notes
21 # 4 0x67A347A2812914DF 119.0000 1.7% 4 29.7500 0.00 39.85 SELECT smt_errors
22 # 5 0x12B6FD0623E6C406 101.0000 1.5% 6 16.8333 0.00 0.66 INSERT smt_waitlist
23 # 6 0xC9F525605390DF3B 75.0000 1.1% 4 18.7500 0.00 0.58 SELECT restaurants
24 # 7 0xD3735DA8736A4ED5 66.0000 1.0% 407 0.1622 1.00 0.91 SELECT smt_table_usages reservations orders
@dylanz
dylanz / code
Created November 2, 2011 19:35
iOS
-----------------------------------
@interface Product : MaaSModel
@property(nonatomic,retain) NSString *name;
@property(nonatomic,retain) NSInteger *quantity;
@end
Android
-----------------------------------
@dylanz
dylanz / code
Created November 2, 2011 19:05
iOS
-----------------------------------
@interface Product : MaaSModel {
NSString *_name;
NSInteger *_quantity;
}
Android
-----------------------------------
filetype off
call pathogen#runtime_append_all_bundles()