Skip to content

Still Working on HW #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 132 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
e51b955
some stuff
mikekavouras Dec 10, 2015
46d1561
lessons
mikekavouras Dec 10, 2015
f42ef2e
Update README.md
mikekavouras Dec 10, 2015
afb43e4
Update README.md
mikekavouras Dec 10, 2015
a4218b7
Update README.md
mikekavouras Dec 10, 2015
4ae6c45
Update README.md
mikekavouras Dec 11, 2015
380834c
Update 2016_01_05.md
mikekavouras Dec 11, 2015
e70ce79
Update 2016_01_07.md
mikekavouras Dec 11, 2015
8523d28
Update 2016_01_09.md
mikekavouras Dec 11, 2015
7cebceb
Update 2016_01_10.md
mikekavouras Dec 11, 2015
7eb0d10
Update README.md
mikekavouras Dec 11, 2015
4634dd7
Update README.md
mikekavouras Dec 11, 2015
1af9939
Update README.md
mikekavouras Dec 11, 2015
bdd7cc3
Update README.md
mikekavouras Dec 11, 2015
baf8fc5
Update README.md
mikekavouras Dec 11, 2015
c7daf6e
Update README.md
mikekavouras Dec 11, 2015
4d46dcd
Update README.md
mikekavouras Dec 11, 2015
4d6f5ca
Update README.md
mikekavouras Dec 11, 2015
c2896ab
Update README.md
mikekavouras Dec 11, 2015
42698ec
Update README.md
mikekavouras Dec 11, 2015
39a1cfc
Update README.md
mikekavouras Dec 11, 2015
3d01399
Update README.md
mikekavouras Dec 15, 2015
6ee381d
Update README.md
mikekavouras Dec 19, 2015
a31568f
Update README.md
mikekavouras Dec 19, 2015
e6e9d2e
Update README.md
benstone1 Dec 29, 2015
30d433b
Update 2016_01_07.md
mikekavouras Jan 4, 2016
88b9385
Update 2016_01_14.md
mikekavouras Jan 4, 2016
66566cd
Update 2016_01_21.md
mikekavouras Jan 4, 2016
1e98775
new dates
mikekavouras Jan 4, 2016
5cb0dbf
Update README.md
mikekavouras Jan 4, 2016
6af27aa
Update 2016_01_07.md
mikekavouras Jan 4, 2016
f167555
Update 2016_01_14.md
mikekavouras Jan 4, 2016
17ab6d1
Update 2016_01_21.md
mikekavouras Jan 4, 2016
03f595f
Update 2016_01_28.md
mikekavouras Jan 4, 2016
3e7ae0f
Update README.md
benstone1 Jan 4, 2016
edea636
Update README.md
benstone1 Jan 4, 2016
c17f3bf
Update README.md
benstone1 Jan 4, 2016
95d4ae7
Update 2016_01_09.md
mikekavouras Jan 5, 2016
4c90134
Update 2016_01_16.md
mikekavouras Jan 5, 2016
30107d5
Update 2016_01_23.md
mikekavouras Jan 5, 2016
5512644
Update 2016_01_30.md
mikekavouras Jan 5, 2016
677e6ed
Update 2016_01_16.md
mikekavouras Jan 5, 2016
e246418
Update 2016_01_10.md
mikekavouras Jan 5, 2016
a565ed0
Update 2016_01_17.md
mikekavouras Jan 5, 2016
fa09856
Update 2016_01_24.md
mikekavouras Jan 5, 2016
3522b71
Update 2016_01_31.md
mikekavouras Jan 5, 2016
af452ac
Update README.md
mikekavouras Jan 5, 2016
022415c
Update README.md
mikekavouras Jan 5, 2016
b482ccd
Update README.md
mikekavouras Jan 5, 2016
0c5870d
Update 2016_01_28.md
mikekavouras Jan 5, 2016
8cec252
exercises
mikekavouras Jan 5, 2016
d197b44
Update README.md
benstone1 Jan 5, 2016
ae57ff8
Update linked-lists.md
mikekavouras Jan 5, 2016
74506b5
Update 2016_01_28.md
mikekavouras Jan 5, 2016
5a5470e
Update linked-lists.md
mikekavouras Jan 5, 2016
e49ce3d
Create recursion.md
mikekavouras Jan 5, 2016
6d90034
Update recursion.md
mikekavouras Jan 5, 2016
f22061d
Update recursion.md
mikekavouras Jan 5, 2016
618860b
Update recursion.md
mikekavouras Jan 5, 2016
0934d3a
Update recursion.md
mikekavouras Jan 5, 2016
cc140d3
Update recursion.md
mikekavouras Jan 5, 2016
f0cbe8b
Update recursion.md
mikekavouras Jan 5, 2016
9f5222b
Update recursion.md
mikekavouras Jan 5, 2016
b64d8c7
Update recursion.md
mikekavouras Jan 5, 2016
1f073af
Update recursion.md
mikekavouras Jan 5, 2016
d7009a7
Create lists.md
mikekavouras Jan 5, 2016
f516bbe
Update lists.md
mikekavouras Jan 5, 2016
9b79a35
Update lists.md
mikekavouras Jan 5, 2016
c9053ab
Update lists.md
mikekavouras Jan 5, 2016
07afe50
Update lists.md
mikekavouras Jan 5, 2016
3d77ef4
Update lists.md
mikekavouras Jan 5, 2016
e0f965e
Update recursion.md
mikekavouras Jan 5, 2016
e48a796
Update lists.md
mikekavouras Jan 5, 2016
821bdc4
Update 2016_01_16.md
mikekavouras Jan 5, 2016
bf3256d
Update 2016_01_23.md
mikekavouras Jan 5, 2016
f0671bf
Create logic.md
mikekavouras Jan 5, 2016
4ac885d
Update logic.md
mikekavouras Jan 5, 2016
ca547da
Update logic.md
mikekavouras Jan 5, 2016
9113653
Update logic.md
mikekavouras Jan 5, 2016
6c2afad
Update logic.md
mikekavouras Jan 5, 2016
6b993e1
Update 2016_01_14.md
mikekavouras Jan 5, 2016
d1e6dc4
Update 2016_01_05.md
mikekavouras Jan 5, 2016
41319ce
Update README.md
mikekavouras Jan 6, 2016
21d457a
Update 2016_01_07.md
cspickert Jan 7, 2016
93cea18
Update 2016_01_07.md
cspickert Jan 7, 2016
0c83e13
Update README.md
benstone1 Jan 8, 2016
169620b
Update README.md
benstone1 Jan 8, 2016
aa87982
Update README.md
benstone1 Jan 11, 2016
8156b14
Update README.md
benstone1 Jan 11, 2016
12bd4e2
Update README.md
benstone1 Jan 11, 2016
c9a6444
Update README.md
benstone1 Jan 11, 2016
4a8d257
Update README.md
benstone1 Jan 11, 2016
3e2913f
Update 2016_01_10.md
benstone1 Jan 11, 2016
2e9ff80
Update 2016_01_10.md
benstone1 Jan 11, 2016
c495398
Update 2016_01_10.md
benstone1 Jan 11, 2016
c55bdd5
Update 2016_01_09.md
benstone1 Jan 11, 2016
143c62c
Update 2016_01_09.md
benstone1 Jan 11, 2016
73b8cef
Update 2016_01_09.md
benstone1 Jan 11, 2016
cceee0f
Update README.md
benstone1 Jan 11, 2016
632606d
Update README.md
benstone1 Jan 11, 2016
6ecbc1f
01-09 Homework from Saturday (Linus)
kairarobot Jan 11, 2016
fdef424
01-10 Homework from Sunday (Caleb)
kairarobot Jan 11, 2016
895d032
01-09 Homework from Saturday (Linus)
kairarobot Jan 11, 2016
38a94b4
Update README.md
benstone1 Jan 12, 2016
b9124a8
Update README.md
benstone1 Jan 12, 2016
1440b3d
Update README.md
benstone1 Jan 12, 2016
abac368
Update README.md
benstone1 Jan 12, 2016
4c2bac5
Update README.md
benstone1 Jan 13, 2016
4732607
Update README.md
benstone1 Jan 13, 2016
8a142bc
Update README.md
benstone1 Jan 13, 2016
cc047bf
Added homework -- not done yet
kairarobot Jan 14, 2016
c1c1c82
Add
kairarobot Jan 14, 2016
d7a4f90
Will work on it more-- almost done, gotta go to work
kairarobot Jan 14, 2016
da74586
Update README.md
benstone1 Jan 14, 2016
c62cac2
Done
kairarobot Jan 14, 2016
ca1d964
Update README.md
benstone1 Jan 14, 2016
9fa32a9
st
kairarobot Jan 15, 2016
4bfda2f
Update README.md
benstone1 Jan 15, 2016
b449473
add
kairarobot Jan 15, 2016
e045f49
added
kairarobot Jan 15, 2016
1670700
Merge branch 'master' of https://github.com/accesscode-2-2/unit-4-ass…
kairarobot Jan 15, 2016
831ed8e
add
kairarobot Jan 16, 2016
daf8119
Add
kairarobot Jan 16, 2016
2806df7
Merge branch 'master' of https://github.com/accesscode-2-2/unit-4-ass…
kairarobot Jan 21, 2016
d9c9d91
good
kairarobot Jan 21, 2016
1ecedbb
Homework Due: 01/21/2016
kairarobot Jan 21, 2016
757b735
updates
kairarobot Jan 25, 2016
2b369e5
l
kairarobot Jan 25, 2016
32ee8ce
Homework 1.23
kairarobot Jan 28, 2016
1892235
Add
kairarobot Feb 3, 2016
5099323
Merge sort HW done
kairarobot Feb 3, 2016
abb26c6
Fix merge
kairarobot Feb 10, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .gitignore
100644 → 100755
Empty file.
246 changes: 246 additions & 0 deletions HW-1-23/Homework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
3D7466751C59B9B9003A3C9A /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3D7466741C59B9B9003A3C9A /* main.swift */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
3D74666F1C59B9B8003A3C9A /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
3D7466711C59B9B9003A3C9A /* Homework */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Homework; sourceTree = BUILT_PRODUCTS_DIR; };
3D7466741C59B9B9003A3C9A /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3D74666E1C59B9B8003A3C9A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3D7466681C59B9B8003A3C9A = {
isa = PBXGroup;
children = (
3D7466731C59B9B9003A3C9A /* Homework */,
3D7466721C59B9B9003A3C9A /* Products */,
);
sourceTree = "<group>";
};
3D7466721C59B9B9003A3C9A /* Products */ = {
isa = PBXGroup;
children = (
3D7466711C59B9B9003A3C9A /* Homework */,
);
name = Products;
sourceTree = "<group>";
};
3D7466731C59B9B9003A3C9A /* Homework */ = {
isa = PBXGroup;
children = (
3D7466741C59B9B9003A3C9A /* main.swift */,
);
path = Homework;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
3D7466701C59B9B8003A3C9A /* Homework */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3D7466781C59B9B9003A3C9A /* Build configuration list for PBXNativeTarget "Homework" */;
buildPhases = (
3D74666D1C59B9B8003A3C9A /* Sources */,
3D74666E1C59B9B8003A3C9A /* Frameworks */,
3D74666F1C59B9B8003A3C9A /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = Homework;
productName = Homework;
productReference = 3D7466711C59B9B9003A3C9A /* Homework */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3D7466691C59B9B8003A3C9A /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = apps;
TargetAttributes = {
3D7466701C59B9B8003A3C9A = {
CreatedOnToolsVersion = 7.2;
};
};
};
buildConfigurationList = 3D74666C1C59B9B8003A3C9A /* Build configuration list for PBXProject "Homework" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 3D7466681C59B9B8003A3C9A;
productRefGroup = 3D7466721C59B9B9003A3C9A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3D7466701C59B9B8003A3C9A /* Homework */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
3D74666D1C59B9B8003A3C9A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3D7466751C59B9B9003A3C9A /* main.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
3D7466761C59B9B9003A3C9A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
3D7466771C59B9B9003A3C9A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
};
name = Release;
};
3D7466791C59B9B9003A3C9A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
3D74667A1C59B9B9003A3C9A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3D74666C1C59B9B8003A3C9A /* Build configuration list for PBXProject "Homework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3D7466761C59B9B9003A3C9A /* Debug */,
3D7466771C59B9B9003A3C9A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3D7466781C59B9B9003A3C9A /* Build configuration list for PBXNativeTarget "Homework" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3D7466791C59B9B9003A3C9A /* Debug */,
3D74667A1C59B9B9003A3C9A /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 3D7466691C59B9B8003A3C9A /* Project object */;
}

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

31 changes: 31 additions & 0 deletions HW-1-23/Homework/main.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import Foundation

func findFile(name: String, atPath: String) -> String {
let fileManager = NSFileManager.defaultManager()
let contents =
try! fileManager.contentsOfDirectoryAtPath(atPath)
for fileOrDir in contents {
var isDir = ObjCBool(false);
let fullPath = atPath + "/" + fileOrDir
let exists = fileManager.fileExistsAtPath(fullPath, isDirectory: &isDir)
if exists && Bool(isDir) {
print("DIR: " + fileOrDir)
let result = findFile(name, atPath: fullPath)
if result != "NOT FOUND"
{
return result
}
} else if exists {
if fileOrDir == name {
return fullPath
}
print("FILE: " + fileOrDir)
} else {
print("NEITHER: " + fileOrDir)
}
}
return "NOT FOUND"
}


print(findFile("gandalf.jpeg", atPath: "/Users/Mima/Downloads"))
Loading