Skip to content

Commit

Permalink
content
Browse files Browse the repository at this point in the history
  • Loading branch information
mochki committed Nov 9, 2022
0 parents commit f863ab0
Show file tree
Hide file tree
Showing 68 changed files with 3,550 additions and 0 deletions.
Binary file added Hippo/.DS_Store
Binary file not shown.
25 changes: 25 additions & 0 deletions Hippo/DevTools/Timeouts.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Timeouts.swift
// http://peatiscoding.me/uncategorized/javascript-settimeout-swift-3-0/
//
//
//

import Foundation

func setTimeout(_ delay:TimeInterval, block:@escaping ()->Void) -> Timer {
return Timer.scheduledTimer(timeInterval: delay, target: BlockOperation(block: block), selector: #selector(Operation.main), userInfo: nil, repeats: false)
}

func setInterval(_ interval:TimeInterval, block:@escaping ()->Void) -> Timer {
return Timer.scheduledTimer(timeInterval: interval, target: BlockOperation(block: block), selector: #selector(Operation.main), userInfo: nil, repeats: true)
}

// Usage
// let handle = setTimeout(0.35, block: { () -> Void in
// // do this stuff after 0.35 seconds
// })
//
// // Later on cancel it
// handle.invalidate()

466 changes: 466 additions & 0 deletions Hippo/Hippo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<VariablesViewState
version = "1.0">
<ContextStates>
<ContextState
contextName = "EventIndexViewController.tableView(_:titleForHeaderInSection:):EventIndexViewController.swift">
</ContextState>
<ContextState
contextName = "closure #2 in CustomPageViewController.viewDidLoad():CustomPageViewController.swift">
</ContextState>
<ContextState
contextName = "OptionCell.addModal():OptionCell.swift">
<PersistentStrings>
<PersistentString
value = "doneButton.frame">
</PersistentString>
<PersistentString
value = "blurEffectView.frame">
</PersistentString>
<PersistentString
value = "doneButton.titleLabel.frame">
</PersistentString>
<PersistentString
value = "optionLabel.text">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "SettingsViewController.tableView(_:cellForRowAt:):SettingsViewController.swift">
<PersistentStrings>
<PersistentString
value = "cell.heightAnchor">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "send(url:userData:):Datastore.swift">
<PersistentStrings>
<PersistentString
value = "req.httpBody">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "prepareDatesForTableView(history:):TimeHandlers.swift">
</ContextState>
<ContextState
contextName = "NewEventViewController.didInitSave(_:):NewEventViewController.swift">
<PersistentStrings>
<PersistentString
value = "newEventTitle.text">
</PersistentString>
<PersistentString
value = "descriptionCell.descriptionTextField.text">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "EventIndexViewController.prepDataForPresentation():EventIndexViewController.swift">
</ContextState>
<ContextState
contextName = "OptionCell.optionInitChange(_:):OptionCell.swift">
</ContextState>
<ContextState
contextName = "EventIndexViewController.tableView(_:willDisplayHeaderView:forSection:):EventIndexViewController.swift">
<PersistentStrings>
<PersistentString
value = "tableView.leadingAnchor">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "CustomPageViewController.scrollViewDidScroll(_:):CustomPageViewController.swift">
<PersistentStrings>
<PersistentString
value = "scrollView.contentOffset">
</PersistentString>
<PersistentString
value = "scrollView.frame">
</PersistentString>
<PersistentString
value = "scrollView.contentSize">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "EventIndexViewController.tableView(_:numberOfRowsInSection:):EventIndexViewController.swift">
</ContextState>
<ContextState
contextName = "EventIndexViewController.updateHistory(_:):EventIndexViewController.swift">
</ContextState>
<ContextState
contextName = "CustomPageViewController.viewDidLoad():CustomPageViewController.swift">
<PersistentStrings>
<PersistentString
value = "view.superview">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "OptionCell.awakeFromNib():OptionCell.swift">
</ContextState>
<ContextState
contextName = "SettingsViewController.textFieldShouldReturn(_:):SettingsViewController.swift">
</ContextState>
</ContextStates>
</VariablesViewState>
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/Helpers/TimeHandlers.swift"
timestampString = "534404905.808432"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "133"
endingLineNumber = "133"
landmarkName = "prepareDatesForTableView(history:)"
landmarkType = "9">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/Helpers/TimeHandlers.swift"
timestampString = "534404905.808613"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "98"
endingLineNumber = "98"
landmarkName = "prepareDatesForTableView(history:)"
landmarkType = "9">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/Helpers/TimeHandlers.swift"
timestampString = "534404905.808702"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "101"
endingLineNumber = "101"
landmarkName = "prepareDatesForTableView(history:)"
landmarkType = "9">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/ViewControllers/EventIndexViewController.swift"
timestampString = "534743986.24034"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "90"
endingLineNumber = "90"
landmarkName = "viewWillDisappear(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/ViewControllers/SettingsViewController.swift"
timestampString = "534650016.229502"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "55"
endingLineNumber = "55"
landmarkName = "textFieldShouldReturn(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Hippo/Helpers/Datastore.swift"
timestampString = "534769315.434649"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "48"
endingLineNumber = "48"
landmarkName = "send(url:userData:)"
landmarkType = "9">
<Locations>
<Location
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "Hippo.send(url: Swift.String, userData: Hippo.UserData) -&gt; ()"
moduleName = "Hippo"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mochki/Desktop/Senior%20Project/Hippo/Hippo/Helpers/Datastore.swift"
timestampString = "534768846.955029"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "48"
endingLineNumber = "48"
offsetFromSymbolStart = "630">
</Location>
<Location
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "closure #1 (Swift.Optional&lt;Foundation.Data&gt;, Swift.Optional&lt;__ObjC.URLResponse&gt;, Swift.Optional&lt;Swift.Error&gt;) -&gt; () in Hippo.send(url: Swift.String, userData: Hippo.UserData) -&gt; ()"
moduleName = "Hippo"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/mochki/Desktop/Senior%20Project/Hippo/Hippo/Helpers/Datastore.swift"
timestampString = "534768846.959262"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "49"
endingLineNumber = "49"
offsetFromSymbolStart = "81">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0910"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "261428411FD2259A0015CD3B"
BuildableName = "Hippo.app"
BlueprintName = "Hippo"
ReferencedContainer = "container:Hippo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "261428411FD2259A0015CD3B"
BuildableName = "Hippo.app"
BlueprintName = "Hippo"
ReferencedContainer = "container:Hippo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "261428411FD2259A0015CD3B"
BuildableName = "Hippo.app"
BlueprintName = "Hippo"
ReferencedContainer = "container:Hippo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<EnvironmentVariables>
<EnvironmentVariable
key = "OS_ACTIVITY_MODE"
value = "${DEBUG_ACTIVITY_MODE}"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "261428411FD2259A0015CD3B"
BuildableName = "Hippo.app"
BlueprintName = "Hippo"
ReferencedContainer = "container:Hippo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit f863ab0

Please sign in to comment.