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
get '/tt_pt_api/api/v1/appointments' do | |
params_hash = { | |
"appointment.ticket_id" => params[:ticket_id], | |
"u_user.user_id" => params[:user_id], | |
"account.serial_num" => params[:serial_num], | |
"appointment.appointment_type_id" => params[:appointment_type_id] | |
} | |
data = Appointments.appointments_with_params(params[:start_date], params[:end_date], params_hash) |
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
hash.map{ |row| | |
row.keys.each{|key| | |
puts "data for #{key} has been converted to utf8" | |
row[key] = row[key].to_utf8 if row[key].class == String | |
} | |
row | |
} |
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
Code Type: X86-64 | |
Parent Process: launchd [267] | |
Date/Time: 2014-01-17 12:19:44.322 -0800 | |
OS Version: Mac OS X 10.9.1 (13B42) | |
Report Version: 7 | |
Call graph: | |
96 Thread_195178 DispatchQueue_1: com.apple.main-thread (serial) | |
+ 96 start (in libdyld.dylib) + 1 [0x7fff871235fd] |
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
Code Type: X86-64 | |
Parent Process: launchd [565] | |
Date/Time: 2014-01-06 14:26:02.199 -0600 | |
OS Version: Mac OS X 10.9.1 (13B42) | |
Report Version: 7 | |
Call graph: | |
94 Thread_1191188 DispatchQueue_1: com.apple.main-thread (serial) | |
+ 94 start (in libdyld.dylib) + 1 [0x7fff97a615fd] |
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
Process: Xcode [2575] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: com.apple.dt.Xcode | |
Version: 5.0.2 (3335.32) | |
Build Info: IDEApplication-3335032000000000~4 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [278] | |
Responsible: Xcode [2575] | |
User ID: 501 |
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
// | |
// AppDelegate.h | |
// Bug Viewer | |
// | |
// Created by Sean Larkin on 11/25/13. | |
// Copyright (c) 2013 Sean Larkin. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
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
// | |
// AppDelegate.h | |
// Bug Viewer | |
// | |
// Created by Sean Larkin on 11/25/13. | |
// Copyright (c) 2013 Sean Larkin. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
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
class Timer.Model.TimerModel extends Backbone.Model | |
urlRoot: "/adjust_time" | |
idAttribute: 'session_id' | |
defaults: | |
'start' : null | |
'end' : null | |
'time_total' : null | |
'phase_id' : null | |
'ticket_id' : '' | |
'form_id' : '' |
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
#View ------------------------- | |
class ReportResults.View.ReportResultsView extends Backbone.View | |
template: _.template($("#ReportViewTemplate").html()) | |
className: "report_view" | |
tagName: "tr" | |
#Model ------------------------- | |
class ReportResults.Model.ReportResultsModel extends Backbone.Model | |
urlRoot: '/reports' | |
idAttribute: 'ticket_id' |
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
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
<script> | |
$(function() { | |
$( "#start_date" ).datepicker(); | |
$( "#end_date" ).datepicker(); | |
$( "#start_date" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); | |
$( "#end_date" ).datepicker( "option", "dateFormat", "yy-mm-dd" ); |