From eaa8ccaccb1091820d0a8d1223996a6dd057347d Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 17 Jan 2016 14:28:04 -0600 Subject: Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor --- public/vendor/codemirror/mode/swift/index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) mode change 100755 => 100644 public/vendor/codemirror/mode/swift/index.html (limited to 'public/vendor/codemirror/mode/swift/index.html') diff --git a/public/vendor/codemirror/mode/swift/index.html b/public/vendor/codemirror/mode/swift/index.html old mode 100755 new mode 100644 index 2649dc37..109f3fdb --- a/public/vendor/codemirror/mode/swift/index.html +++ b/public/vendor/codemirror/mode/swift/index.html @@ -35,11 +35,11 @@ // Created by Main Account on 12/18/14. // Copyright (c) 2014 Razeware LLC. All rights reserved. // - + import Foundation - + class TipCalculatorModel { - + var total: Double var taxPct: Double var subtotal: Double { @@ -47,30 +47,30 @@ class TipCalculatorModel { return total / (taxPct + 1) } } - + init(total: Double, taxPct: Double) { self.total = total self.taxPct = taxPct } - + func calcTipWithTipPct(tipPct: Double) -> Double { return subtotal * tipPct } - + func returnPossibleTips() -> [Int: Double] { - + let possibleTipsInferred = [0.15, 0.18, 0.20] let possibleTipsExplicit:[Double] = [0.15, 0.18, 0.20] - + var retval = [Int: Double]() for possibleTip in possibleTipsInferred { let intPct = Int(possibleTip*100) retval[intPct] = calcTipWithTipPct(possibleTip) } return retval - + } - + } -- cgit v1.2.3