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
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) | |
crop_metric_programs GET /crop_metric_programs(.:format) {:action=>"index", :controller=>"crop_metric_programs"} | |
POST /crop_metric_programs(.:format) {:action=>"create", :controller=>"crop_metric_programs"} | |
new_crop_metric_program GET /crop_metric_programs/new(.:format) {:action=>"new", :controller=>"crop_metric_programs"} | |
edit_crop_metric_program GET /crop_metric_programs/:id/edit(.:format) {:action=>"edit", :controller=>"crop_metric_programs"} | |
crop_metric_program GET /crop_metric_programs/:id(.:format) {:action=>"show", :controller=>"crop_metric_programs"} | |
PUT /crop_metric_programs/:id(.:format) {:action=>"update", :controller=>"crop_metric_programs"} | |
DELETE /crop_metric_programs/:id(.:format) {:action=>"destroy", :controller=>"crop_metric_programs"} | |
GET /crop |
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
-- [14:07]-[piv@ptserver2]-[~] >> rails -v | |
Rails 2.3.9 | |
#-- [14:07]-[piv@ptserver2]-[~] >> ruby -v | |
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] | |
#-- [14:07]-[piv@ptserver2]-[~] >> cd /codeforge/pivotrac_website/ | |
#-- [14:08]-[piv@ptserver2]-[/codeforge/pivotrac_website] >> script/server | |
=> Booting WEBrick |
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
gem list --local | |
*** LOCAL GEMS *** | |
actionmailer (2.3.9, 2.3.5) | |
actionpack (2.3.9, 2.3.5) | |
activerecord (2.3.14, 2.3.9, 2.3.5) | |
activeresource (2.3.9, 2.3.5) | |
activesupport (2.3.14, 2.3.9, 2.3.5) | |
color (1.4.1) |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>set instant speed</title> | |
<script src="/javascripts/prototype.js?1334763096" type="text/javascript"></script> | |
<script src="/javascripts/effects.js?1334763096" type="text/javascript"></script> | |
<script src="/javascripts/dragdrop.js?1334763096" type="text/javascript"></script> | |
<script src="/javascripts/controls.js?1334763096" type="text/javascript"></script> | |
<script src="/javascripts/application.js?1334763096" type="text/javascript"></script> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>set instant speed</title> | |
<%= javascript_include_tag :defaults %> | |
</head> | |
<script type="text/javascript"> |
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
class HelperFunctions { | |
func getXPlotForAngle(angle: Double, radius: Double, centerX: Double){ | |
let adjestedAngle: Double = angle - 90.0 | |
let plotX = centerX + radius + cos(angle * 2 * M_PI / 360) | |
return plotX | |
} | |
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
the json looks like this | |
("0", [ 0,145348889])("1", [0,1453492624])("2",[01453494488("3[0,1453496352]) | |
i want an array that will look like this | |
[(0.0, 145348889), (0.0, 1453492624), (0.0, 1453496352)] | |
if let jsonResult = response.result.value { | |
let arrayOfJSONDataPlots = JSON(jsonResult) | |
var arrayOfPlotPoints: [(Int, Double)] | |
for (key, item) in arrayOfJSONDataPlots { |
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
Alamofire.request(.GET, url, parameters: ["id": site.pressureSensorID]) | |
.responseJSON { response in | |
//print(response.result) // result of response serialization | |
// handle network problem | |
switch response.result { | |
case .Success(_): | |
print("success code back from api server for sites request") | |
case .Failure(_): | |
let alertView = UIAlertController(title: "Connect Error", message: "Network error, please try again", preferredStyle: .Alert) |
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
import UIKit | |
import Alamofire | |
import SwiftCharts | |
class PressureSensorViewController: UIViewController { | |
private var chart: Chart? | |
@IBOutlet weak var lineChartView: ChartLinesView! |
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
import UIKit | |
import Alamofire | |
import SwiftCharts | |
class PressureSensorViewController: UIViewController { | |
private var chart: Chart? | |
@IBOutlet weak var lineChartView: ChartLinesView! |
OlderNewer