Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris dennda

View GitHub Profile
View gist:4baa72e8ac56f108d8b08ac7699aa380
diff --git a/DuolingoMobile/Sources/Library/Networking/DUOWebManager.m b/DuolingoMobile/Sources/Library/Networking/DUOWebManager.m
index 04d2b210aa..112584a9b5 100644
--- a/DuolingoMobile/Sources/Library/Networking/DUOWebManager.m
+++ b/DuolingoMobile/Sources/Library/Networking/DUOWebManager.m
@@ -287,26 +287,28 @@ - (BOOL)internetIsReachableForceCheck:(BOOL)forceCheck
- (NSString *)baseAPIURLString
{
- // Check if a custom API URL command line argument is present.
- NSString *testHostURLString = DUOCommandLineCustomAPIURL();
View gist:045365abb662d573a5d6fda4bf64f1cf
-rw-r--r-- 1 dennda staff 134222980 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-01-19-7cf29500-f688-4f38-8f4d-d671d3d21a5b.fixed
-rw-r--r-- 1 dennda staff 134239511 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-01-23-cc9edde4-7a04-49e0-b44c-6717709752a7.fixed
-rw-r--r-- 1 dennda staff 134239189 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-01-25-bd07d015-68d9-469a-8422-a3fed2b84270.fixed
-rw-r--r-- 1 dennda staff 134239515 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-01-28-6bb4f900-7638-4d64-bb5b-643380eb95c1.fixed
-rw-r--r-- 1 dennda staff 134230018 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-02-52-d32a3fc1-2316-460e-8e23-9878f76e9117.fixed
-rw-r--r-- 1 dennda staff 134224804 Aug 15 14:41 excess-custom-session-3-2018-08-14-00-02-54-2bf99717-0fe9-4411-babe-ef7e158b49e5.fixed
-rw-r--r-- 1 dennda staff 134284170 Aug 15 14:42 excess-custom-session-3-2018-08-14-00-02-56-2d3bdc88-13ee-4616-b2c5-360d9ddeb3e4.fixed
-rw-r--r-- 1 dennda staff
View es-vocab.speling
This file has been truncated, but you can view the full file.
a; a; ; pr
A Abelosa; A Abelosa; loc; np
A Abesoureira; A Abesoureira; loc; np
A Abidueira; A Abidueira; loc; np
A Agolada; A Agolada; loc; np
A Agra; A Agra; loc; np
A Aira; A Aira; loc; np
A Algalia; A Algalia; loc; np
A Almáciga; A Almáciga; loc; np
View es-vocab.speling
This file has been truncated, but you can view the full file.
a; a; ; pr
A Abelosa; A Abelosa; loc; np
A Abesoureira; A Abesoureira; loc; np
A Abidueira; A Abidueira; loc; np
A Agolada; A Agolada; loc; np
A Agra; A Agra; loc; np
A Aira; A Aira; loc; np
A Algalia; A Algalia; loc; np
A Almáciga; A Almáciga; loc; np
View es-vocab.speling
This file has been truncated, but you can view the full file.
a; a; ; pr
A Abelosa; A Abelosa; loc; np
A Abesoureira; A Abesoureira; loc; np
A Abidueira; A Abidueira; loc; np
A Agolada; A Agolada; loc; np
A Agra; A Agra; loc; np
A Aira; A Aira; loc; np
A Algalia; A Algalia; loc; np
A Almáciga; A Almáciga; loc; np
View gist:e6a801599de868ee80bfba92494989e9
diff --git a/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift b/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
index 0e968a1a4b..90f125c75a 100644
--- a/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
+++ b/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
@@ -183,7 +183,8 @@ class SpeakableLabel: UIView {
super.init(frame: .zero)
- for subview in [sentenceView, speakerView] as [UIView] {
+// for subview in [sentenceView, speakerView] as [UIView] {
View gist:a8de8a3eec61f1e003feaea106768129
diff --git a/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift b/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
index 0e968a1a4b..1759777630 100644
--- a/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
+++ b/DuolingoMobile/Sources/Library/UI/Views/SpeakableLabel.swift
@@ -19,7 +19,7 @@ class SpeakableLabel: UIView {
// If there is a speaker, let the text wrap around it and adjust the line spacing accordingly.
sentenceView.lineSpacing = sentenceView.font.lineHeight * (hasSpeaker ? 0.8 : 0.5)
- sentenceView.wrapView = hasSpeaker ? speakerView : nil
+// sentenceView.wrapView = hasSpeaker ? speakerView : nil
View gist:ce3b5467459faf326fd3fd13eebfee3d
diff --git a/DuolingoMobile/Sources/Explanations/Smart_Tips/SmartTipManager.swift b/DuolingoMobile/Sources/Explanations/Smart_Tips/SmartTipManager.swift
index 332ca7b2b8..10026a6d01 100644
--- a/DuolingoMobile/Sources/Explanations/Smart_Tips/SmartTipManager.swift
+++ b/DuolingoMobile/Sources/Explanations/Smart_Tips/SmartTipManager.swift
@@ -172,16 +172,16 @@ class SmartTipManager: NSObject {
let eligibleSmartTips = smartTips.filter({ _, smartTip in
// Have we shown this particular one in this session already?
- if smartTipsShownInCurrentSession.contains(smartTip.identifier) {
- LogInfo("We've already shown smart tip '\(smartTip.identifier)' in this session. Won't show it again.")
View gist:f4153301a512187217c92518303057ca
diff --git a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
index 3ad70f9b0b..ad5af4c56e 100644
--- a/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
+++ b/DuolingoMobile/Sources/Explanations/ExplanationCells.swift
@@ -609,23 +609,23 @@ private class PhonemeView: UIControl {
}
/// Called when the control is tapped.
- var handleTap: (() -> Void)?
+// var handleTap: (() -> Void)?
View gist:7e9446da7bd2a5f1325a47b83da7535a
diff --git a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
index 0e59ddc20b..611228e206 100644
--- a/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
+++ b/DuolingoMobile/Sources/Sessions/Controllers/DUOSessionViewController.m
@@ -360,7 +360,8 @@ - (void)viewDidLoad
{
[super viewDidLoad];
- self.view.backgroundColor = [UIColor duolingoOffWhiteColor];
+ // XXX