Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
7df8a91
architect with coding experience..
Oct 21, 2018
7f53181
commonjs_rquirejs.md
Oct 22, 2018
376da1f
git
Oct 31, 2018
58aca0e
atomic_habits
Nov 2, 2018
b3be90c
sample_session.js
Nov 3, 2018
73ea7d4
launch.json
Nov 3, 2018
4f1eaa1
books
Nov 4, 2018
23fa26b
atomic habits
Nov 4, 2018
5901a6d
habit
Nov 4, 2018
4074f38
jshell
Nov 6, 2018
5ad2e27
typo
Nov 6, 2018
f0983cf
update
Nov 11, 2018
769799c
Update mysql.md
mohanmca Nov 13, 2018
077d269
Update mysql.md
mohanmca Nov 14, 2018
32e9c68
Update EventSource.md
mohanmca Nov 14, 2018
2ff6fb8
Update EventSource.md
mohanmca Nov 14, 2018
7432652
reading_and_habits
Nov 14, 2018
05d88d0
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGro…
Nov 14, 2018
262a8fb
Concentration
Nov 17, 2018
21b1661
Automic habits
Nov 24, 2018
a9c28ee
Habit Groups
Nov 24, 2018
ad49e50
Guidelines
mohanmca Nov 24, 2018
7f06cb3
update
mohanmca Nov 28, 2018
2b5d64c
habits
mohanmca Nov 28, 2018
5a1faca
Update atomic_habits.md
mohanmca Nov 29, 2018
5a76611
Update atomic_habits.md
mohanmca Nov 29, 2018
fe4b661
habit notes
mohanmca Dec 1, 2018
1524455
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGro…
mohanmca Dec 1, 2018
50e1f5c
tiny_habit_list
mohanmca Dec 1, 2018
fc0b812
code_reading.md
mohanmca Dec 1, 2018
7457311
commit!
mohanmca Dec 2, 2018
2e44c8f
vocabulary.md
mohanmca Dec 2, 2018
c5bcfe5
some more notes
mohanmca Dec 4, 2018
8ef0a74
listen
mohanmca Dec 4, 2018
0e93a26
fixed typos
mohanmca Dec 4, 2018
d2aeaea
vocab, java
mohanmca Dec 8, 2018
5a5b7e0
vocab
mohanmca Dec 9, 2018
61ad74d
new joiner
mohanmca Dec 9, 2018
bb2246c
Books
mohanmca Dec 10, 2018
f6d5ffd
AWS.md
mohanmca Dec 20, 2018
1ed38a8
Effective conversation
mohanmca Dec 23, 2018
50cb578
effective conversation
mohanmca Dec 23, 2018
d668f29
atomic habits
mohanmca Dec 23, 2018
b91c43a
Sucess
mohanmca Dec 23, 2018
5ae4504
pdf
mohanmca Dec 23, 2018
a9bcd6d
pandoc
mohanmca Dec 23, 2018
c13113b
mysql
mohanmca Dec 25, 2018
34ccbf6
Update all md
mohanmca Dec 28, 2018
df49e34
Courses to start.
Jan 1, 2019
cc89ca5
typo
Jan 1, 2019
2c52683
java text
mohanmca Jan 2, 2019
35f30d1
Notes update
mohanmca Jan 3, 2019
ce7f520
update learning journal
mohanmca Jan 6, 2019
30fbfde
JHipster
mohanmca Jan 6, 2019
b62615e
Jenkins update
mohanmca Jan 8, 2019
008372b
Ycombinator
mohanmca Jan 8, 2019
44f862f
ycombinator
mohanmca Jan 8, 2019
7f5dcbe
Updated notes
mohanmca Jan 10, 2019
95323c4
jenkins
mohanmca Jan 12, 2019
7b3d722
virtualbox
mohanmca Jan 13, 2019
82d6a86
Update codeSearch.md
mohanmca Jan 13, 2019
464586a
Learning Journal updated
mohanmca Jan 13, 2019
af0c7ff
Chrome
mohanmca Jan 13, 2019
a4b1759
vocabulary
mohanmca Jan 14, 2019
e082e82
Jenkins parallel pipeline
mohanmca Jan 16, 2019
c056398
Quotes!
mohanmca Jan 17, 2019
cc63194
ELK
mohanmca Jan 17, 2019
3d8d3e9
logstash
mohanmca Jan 17, 2019
9f48191
Update logstash_kibana.md
mohanmca Jan 17, 2019
4b6a4b3
Update logstash_kibana.md
mohanmca Jan 17, 2019
87a1734
Update logstash_kibana.md
mohanmca Jan 17, 2019
3afbedc
CARS
mohanmca Jan 17, 2019
12ef898
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Jan 17, 2019
9682ec8
kibana
mohanmca Jan 17, 2019
1dd72da
update learning journal
mohanmca Jan 19, 2019
e8d9814
DynamoDb
mohanmca Jan 20, 2019
3ad86a0
Notes update
mohanmca Jan 21, 2019
8f87588
Changes
mohanmca Jan 21, 2019
c3b0fe4
Learning Journal
mohanmca Jan 21, 2019
a47f0a4
securirty
mohanmca Jan 21, 2019
60a2102
security
mohanmca Jan 21, 2019
b3b4b42
MS architecture
mohanmca Jan 21, 2019
ec9d129
JHipster notes
mohanmca Jan 22, 2019
8965b48
docker
mohanmca Jan 23, 2019
8bc5013
Update docker.md
mohanmca Jan 23, 2019
ec08b35
vocab
mohanmca Jan 24, 2019
499227e
Docker
mohanmca Jan 24, 2019
f89332e
prbablistic programming
mohanmca Jan 25, 2019
828d359
Update docker.md
mohanmca Jan 27, 2019
e79692d
Update docker.md
mohanmca Jan 27, 2019
ec6db70
Spring security
mohanmca Jan 28, 2019
da8e7d7
Update mysql.md
mohanmca Jan 28, 2019
608ac20
Update mysql.md
mohanmca Jan 28, 2019
daea7bf
security
mohanmca Jan 29, 2019
b03c520
spring
mohanmca Jan 29, 2019
12fdf9d
Digest
mohanmca Jan 29, 2019
0c6d99c
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Jan 29, 2019
03c4aea
Compunction
mohanmca Jan 30, 2019
ddb570c
JPM
mohanmca Jan 30, 2019
33e6aa2
podcast
mohanmca Feb 3, 2019
7c92aac
Ray dalio and podcast
mohanmca Feb 3, 2019
2617683
dummy_json
mohanmca Feb 3, 2019
2634081
stats
mohanmca Feb 6, 2019
43f2a83
package.json and hooks
mohanmca Feb 6, 2019
8ab0377
vocabulary
mohanmca Feb 7, 2019
39d0559
Create jupyter.md
mohanmca Feb 8, 2019
32cb402
ip of jupyter
mohanmca Feb 8, 2019
72e132d
ML docker
mohanmca Feb 8, 2019
083bd38
test
mohanmca Feb 8, 2019
deea0f0
Update test
mohanmca Feb 8, 2019
6497d31
LogisticRegression vs LinearRegression
mohanmca Feb 11, 2019
1c37be0
UnSupervisedLearning
mohanmca Feb 11, 2019
ecfbde7
Unsupervized learning
mohanmca Feb 12, 2019
598567f
Regularization
mohanmca Feb 12, 2019
5716736
Regularization
mohanmca Feb 12, 2019
162ce13
EDA Summary
mohanmca Feb 13, 2019
f249a27
DataScience
mohanmca Feb 17, 2019
83a1a11
probablity
mohanmca Feb 18, 2019
02f7879
Drools and Probability
mohanmca Feb 23, 2019
8e61a46
Maven
mohanmca Feb 24, 2019
b8c3589
List of map in drools
mohanmca Feb 24, 2019
a00d083
z score
mohanmca Feb 27, 2019
8ba6e6e
Statistical reasoning
mohanmca Mar 2, 2019
e28278a
Update java_snippets.md
mohanmca Mar 8, 2019
169b6d4
Update java_snippets.md
mohanmca Mar 8, 2019
620815a
People
mohanmca Mar 8, 2019
4eee05a
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Mar 9, 2019
a833313
Update test
mohanmca Mar 10, 2019
07565af
Update test
mohanmca Mar 10, 2019
2274945
Jenkins
mohanmca Mar 10, 2019
22997e1
build.sbt
mohanmca Mar 10, 2019
548a4b9
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Mar 10, 2019
32a8718
Jenkins pipeline
mohanmca Mar 10, 2019
25c5d83
FlashCards
mohanmca Mar 17, 2019
45fead2
multi-line flash card
mohanmca Mar 17, 2019
cf1a0e3
separator
mohanmca Mar 17, 2019
b0a11dd
zip entry
mohanmca Mar 18, 2019
9a14ed9
WebPPL
mohanmca Mar 24, 2019
2e64162
PPL
mohanmca Mar 24, 2019
b807a29
Moving gist to md
mohanmca Mar 24, 2019
0ea17be
RxJs Scan
mohanmca Mar 24, 2019
f5c6dba
MCMC
mohanmca Mar 24, 2019
0516475
NVC
mohanmca Apr 2, 2019
4666499
SRE
mohanmca Apr 3, 2019
bb5e0a7
Build
mohanmca Apr 20, 2019
e842b26
HT population mean
mohanmca Apr 21, 2019
8ab2c24
remove junk
mohanmca Apr 21, 2019
5e438d1
d3.js
mohanmca Apr 29, 2019
f1abe1f
blocks
mohanmca Apr 30, 2019
b4b72cd
ML
mohanmca Apr 30, 2019
c0e27fd
Math using diagrams
mohanmca May 2, 2019
6d3970b
Update R.lang.md
mohanmca May 9, 2019
7aff7e6
ML notes
mohanmca May 19, 2019
c82bb0a
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca May 19, 2019
2e6f40b
D3.js
mohanmca May 21, 2019
06dfad9
Text summary
mohanmca May 21, 2019
b8b2c3c
Bullet Chart D3Js
mohanmca May 24, 2019
d06f6de
css-grid
mohanmca May 29, 2019
f1d980d
statis
mohanmca Jun 5, 2019
1572c88
Daily Javascript
mohanmca Jun 5, 2019
ca44e58
NaiveBayes
mohanmca Jun 8, 2019
4a13257
Remember
mohanmca Jun 11, 2019
734b2e4
Logistic is Linear
mohanmca Jun 13, 2019
644ac91
deduplicate
mohanmca Jun 16, 2019
8bb829f
docker
mohanmca Jun 18, 2019
7be2548
Rulers
mohanmca Jun 25, 2019
ace0e31
typescript and k8s
mohanmca Jun 25, 2019
046b7ac
10 minutes - improvements
mohanmca Jun 26, 2019
587eb32
Python
mohanmca Jun 26, 2019
9357da2
GAN
mohanmca Jun 26, 2019
d729e49
Create PythonPackages.md
mohanmca Jun 28, 2019
76dfbee
quote about me
mohanmca Jun 29, 2019
ea8a3c8
5 elements of effective thinking
mohanmca Jul 6, 2019
3efe99f
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Jul 6, 2019
eea5ec9
code review
mohanmca Jul 8, 2019
d0c79f8
memory
mohanmca Jul 14, 2019
24caac8
books
mohanmca Jul 14, 2019
c490f27
problems
mohanmca Jul 19, 2019
735f321
jpm_jobs
mohanmca Jul 21, 2019
52f3239
conversation
mohanmca Jul 26, 2019
d49d9a0
random
mohanmca Jul 26, 2019
0ab85d9
SelfHelpt
mohanmca Jul 26, 2019
013c70d
SelfHelp
mohanmca Jul 26, 2019
aa6062f
SelfHelp
mohanmca Jul 26, 2019
b4a13ae
Update docker.md
mohanmca Jul 27, 2019
6b60eff
Update docker.md
mohanmca Jul 27, 2019
e886ab9
k8s
mohanmca Jul 29, 2019
e795041
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Jul 29, 2019
7701894
k8s
mohanmca Jul 30, 2019
4364e0c
kubectl minikube working commands
mohanmca Jul 30, 2019
a3596a3
CKAD exam
mohanmca Jul 31, 2019
4a56049
Golang
mohanmca Aug 17, 2019
4f49e9f
Productivity
mohanmca Aug 26, 2019
bb68867
Productivity
mohanmca Aug 26, 2019
72f8c11
Productivity
mohanmca Aug 26, 2019
7e07c50
go sample
mohanmca Aug 26, 2019
82bbdcc
shell
mohanmca Aug 27, 2019
681b943
shell
mohanmca Aug 27, 2019
8e524c0
tools
mohanmca Aug 27, 2019
3e9b1fe
Essential
mohanmca Aug 27, 2019
4808f2b
Spring learning strategy
mohanmca Aug 29, 2019
cb99a46
Spring and Cassandra
mohanmca Sep 24, 2019
8dc1772
SpringFramework
mohanmca Sep 28, 2019
b68e92b
Cassandra
mohanmca Sep 30, 2019
59468ea
Cassandra
mohanmca Oct 1, 2019
34d2aa4
investment book
mohanmca Oct 16, 2019
e1c0d61
Complement
mohanmca Oct 17, 2019
59e062b
MACD indicator
Oct 22, 2019
5bdb211
xyz
Nov 1, 2019
a316034
links
mohanmca Nov 1, 2019
a2d5fe2
docker
mohanmca Nov 5, 2019
173c430
docker
mohanmca Nov 5, 2019
d6ee71a
ParkinsonLaw
mohanmca Nov 10, 2019
f1e54d8
macd
mohanmca Nov 10, 2019
b80590f
docker
mohanmca Nov 10, 2019
28c8ab6
Update docker.md
mohanmca Nov 15, 2019
bafccd5
Update docker.md
mohanmca Nov 15, 2019
c6e9e1e
Tamil
mohanmca Nov 22, 2019
50e95cd
spring in one palace
mohanmca Nov 23, 2019
4d2fd03
spring-boot.md
mohanmca Nov 23, 2019
811379b
Tamil
mohanmca Nov 28, 2019
5b30e77
useSSL for jdbc
mohanmca Dec 7, 2019
da6d73e
Consolidate
mohanmca Dec 8, 2019
4687865
Delete es_kibana.md
mohanmca Dec 8, 2019
9977135
Delete package-lock.json
mohanmca Dec 8, 2019
762766d
Spring GCP cloud tutorial via Pluralsight
mohanmca Dec 21, 2019
52d2d71
GCP
mohanmca Dec 22, 2019
0363f97
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Dec 22, 2019
e26cad2
Ubuntu
mohanmca Dec 23, 2019
e144817
GCP
mohanmca Dec 28, 2019
7828bf7
Cloud Patterns
mohanmca Jan 5, 2020
d43cbce
Spring
mohanmca Jan 7, 2020
9a46f14
elastic
mohanmca Jan 21, 2020
bd250dc
docker scala maven remote debug
mohanmca Jan 25, 2020
ebf2c04
system design
mohanmca Jan 27, 2020
5226f83
Spring certification
mohanmca Jan 30, 2020
ca57612
Delete FlashCardNotes.txt
mohanmca Jan 31, 2020
513ccf0
Delete learning_strategy_spring.md
mohanmca Jan 31, 2020
a00c63f
Delete SpringAOP.md
mohanmca Jan 31, 2020
d82ae5e
Delete JPM_jobs.md
mohanmca Feb 20, 2020
278ac44
9 trick
mohanmca Feb 23, 2020
d6dc6be
Merge branch 'master' of https://github.com/mohanmca/MohanLearningGround
mohanmca Mar 20, 2020
ac83b09
format all files in directory
mohanmca Mar 20, 2020
2bd48dc
tips
mohanmca Mar 31, 2020
f562e9c
Fractions
mohanmca Apr 11, 2020
270933f
fraction
mohanmca Apr 11, 2020
a711287
clear rect
mohanmca Apr 11, 2020
1ffbd74
python
mohanmca Apr 13, 2020
9caaf69
Habit formation
mohanmca Apr 17, 2020
b2e82b6
Update If your committed to form a habit.md
manimaran-elumalai Apr 17, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
251 changes: 155 additions & 96 deletions .classpath

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/bin/
/.worksheet/
/target/
/project/
/.idea/
/project/target/
/project/project/
Expand All @@ -11,4 +10,5 @@ org.eclipse*
.classpath
*.iml
*.ibc
**/node_modules/*
**/node_modules/*
node_modules/
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"configurations": [
{
"type": "java",
"name": "CodeLens (Launch) - Test",
"request": "launch",
"mainClass": "Java.Test",
"projectName": "MohanLearningGround"
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.linting.pylintEnabled": true,
"python.linting.enabled": true
}
42 changes: 42 additions & 0 deletions Excercise.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
object Excercise {

def reduce[F[_],A](nums: F[A]): Int = {
???
} //> reduce: [F[_], A](nums: F[A])Int

Some(5).map(_ + 1) //> res0: Option[Int] = Some(6)

val studentMarks = List(120, 230, 340, 540, 560)//> studentMarks : List[Int] = List(120, 230, 340, 540, 560)

val revaluationFun: Option[Int => Int] = Some({ mark: Int =>
java.lang.Math.ceil(mark * 1.05).toInt
}) //> revaluationFun : Option[Int => Int] = Some(Excercise$$$Lambda$12/1757293506
//| @28feb3fa)

//val revaluation = (marks: Seq[Int], fn: Int => Int) => marks.map(fn)
val revaluation = (marks: Seq[Int], fn: Option[Int => Int]) => if (fn.isDefined) marks.map(fn.get) else marks.map(x => x)
//> revaluation : (Seq[Int], Option[Int => Int]) => Seq[Int] = Excercise$$$Lamb
//| da$13/459296537@7823a2f9

//val revisedMarks = revaluation(studentMarks, revaluationFun)

val revisedMarks = revaluation(studentMarks, revaluationFun)
//> revisedMarks : Seq[Int] = List(126, 242, 357, 567, 588)
/**
* class {
* static [
* }
* var int = 5
*
* func intVarDecl = {}
* func charVarDecl = {}
* func VarDecl = inv
*
* }
*
* interace {
* }
*
*/

}
117 changes: 117 additions & 0 deletions FreeMonad.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
object FreeMonad {
println("https://www.youtube.com/watch?v=7xSfLPD6tiQ")
println("Pure Functional Database Programming with Fixpoint Types—Rob Norris")
println("https://tpolecat.github.io/presentations/sw2016/slides.html#4")
//A recursive data type for professors and their Ph.D. students
object attempt_1 {
case class Prof(
name: String,
year: Int,
students: List[Prof])
/*
How do we store the auto-generated primary key, Simple INT won't be right way to do it
CREATE TABLE prof (
id INTEGER IDENTITY,
parent INTEGER NULL,
name VARCHAR NOT NULL,
year INTEGER NOT NULL,
FOREIGN KEY(parent) REFERENCES prof(id)
)
*/
}
object attempt_2 {
/**
* id: Option[Int] - Represents three possibilities
* 1. Just constructed objected, no ID in DB
* 2. Just retrieved from DB, there is an id
* 3. In some computation, where DB-ID is not important for computation
*/
case class Prof(
id: Option[Int],
name: String,
year: Int,
students: List[Prof])
/*
CREATE TABLE prof (
id INTEGER IDENTITY,
parent INTEGER NULL,
name VARCHAR NOT NULL,
year INTEGER NOT NULL,
FOREIGN KEY(parent) REFERENCES prof(id)
)
*/
}
object attempt_3 {
/**
* id: Let us handled ID separately
* But it creates new problem as we can't keep "students: List[Prof]" since it looses id
* it should be stored as "students: List[(Int, Prof)]"
*/
case class Prof(
name: String,
year: Int,
students: List[Prof])

type IdProf = (Int, Prof)
}
object attempt_4 {
/**
* (Int, Prof) - Was not sure if it make sense, alternatively we can avoid to find the Type by parameterizing
*/
case class ProfF[A](
name: String,
year: Int,
students: List[A])

object attempt_4_1 {
//Here there is new problem - class ProfF takes type parameters
type Prof = ProfF[ProfF]
type IdProf = (Int, ProfF[(Int, ProfF)])
}
object attempt_4_2 {
//Actually it is infinitely recursive
type Prof = ProfF[ProfF[ProfF[ProfF[ProfF]]]]
type IdProf = (Int, ProfF[(Int, ProfF[ProfF[ProfF[ProfF]]])])

}
/** Conclusion: Type aliases can't be recursive, but classes can be recursive */
}

object attempt_5 {
/**
* (Int, Prof) - Was not sure if it make sense, alternatively we can avoid to find the Type by parameterizing
*/
case class ProfF[A](
name: String,
year: Int,
students: List[A])

object attempt_5_1 {
case class Prof(value: ProfF[Prof])
case class IdProf(id: Int, prof: ProfF[IdProf])
}

object attempt_5_2 {
case class Prof[F[_]](value: F[Prof[F]])
case class IdProf[F[_]](id: Int, prof: F[IdProf[F]])
}

}

import scalaz._
//Above types could be generalized further using following
case class Fix[F[_]](unfix: F[Fix[F]])
case class Cofree[F[_], A](head: A, tail: F[Cofree[F, A]])
case class Free[F[_], A](head: A \/ F[Free[F, A]])

object using_other_combinator {
case class CofreeF[F[_], A, B](head: A, tail: F[B])
case class FreeF[F[_], A,B](resume: A \/ F[B])

//Below won't compile but ? means "I don't worry about any type"
//In typed method signature if _ comes, it means "partially applied"
type Cofree[F[_], A] = Fix[CofreeF[F, A, ?]]
type Free[F[_], A] = Fix[FreeF[F, A, ?]]

}
}
1 change: 1 addition & 0 deletions KavinPrint.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[print(str(2) + "*" + str(x) + "= " + str(2*x)) for x in range(1,101) ]
70 changes: 52 additions & 18 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,34 @@ name := "MohanLearningGround"

version := "1.0"

scalaVersion := "2.12.3"
val akkaVersion = "2.5.4"
scalaVersion := "2.12.6"
val akkaVersion = "2.5.18"
val akkaHttpVersion = "10.1.0"
val tomcatVersion = "9.0.14"

//enablePlugins(ScalaJSPlugin)

initialize := {
val _ = initialize.value
val specVersion = sys.props("java.specification.version")
val required = "1.8"
assert(required == specVersion, "Java 1.8 or above required")
}
/*
initialize := {
val _ = initialize.value
val specVersion = sys.props("java.specification.version")
val required = "1.10"
assert(required == specVersion, "Java 1.10.1 or above required")
}
*/

transitiveClassifiers := Seq("sources")

sourceManaged in Compile := file("bin")


libraryDependencies ++= Seq(
"org.apache.tomcat" % "tomcat-catalina" % "9.0.14",
"org.apache.tomcat" % "tomcat" % tomcatVersion,
"org.apache.tomcat" % "tomcat-coyote" % tomcatVersion,
"org.apache.tomcat" % "tomcat-jasper" % tomcatVersion
)

libraryDependencies ++= Seq(
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0" withSources(),
"org.scalatra" %% "scalatra" % "2.5.+" withSources(),
Expand All @@ -25,7 +39,14 @@ libraryDependencies ++= Seq(
"javax.servlet" % "javax.servlet-api" % "4.0.0" % "provided" withSources(),
"org.scalactic" % "scalactic_2.12" % "3.0.2" withSources(),
"org.scalatest" % "scalatest_2.12" % "3.0.2" withSources(),
"org.scalacheck" %% "scalacheck" % "1.13.5" withSources()
"org.scalacheck" %% "scalacheck" % "1.13.5" withSources(),
"org.scalaj" %% "scalaj-http" % "2.3.0" withSources()
)

//java library dependencies
libraryDependencies ++= Seq(
"com.vladsch.flexmark" % "flexmark-all" % "0.32.18" withSources(),
"org.jsoup" % "jsoup" % "1.11.2" withSources()
)

logLevel := Level.Warn
Expand All @@ -38,41 +59,54 @@ libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "7.2.17" withSources()
)

libraryDependencies ++= Seq(
"com.jcraft" % "jsch" % "0.1.55"
)

libraryDependencies ++= Seq(
"javax.xml.bind" % "jaxb-api" % "2.3.0",
"javax.annotation" % "javax.annotation-api" % "1.3.2",
"javax.el" % "javax.el-api" % "3.0.0",
"org.glassfish" % "javax.el" % "3.0.0"
)

libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scala-lang.modules" % "scala-parser-combinators_2.12" % "1.0.6"
"org.scala-lang.modules" % "scala-parser-combinators_2.12" % "1.1.1"
)

libraryDependencies <++= (scalaVersion)(sv =>
Seq(
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-text" % "1.3" withSources(),
"org.apache.commons" % "commons-io" % "1.3.2" withSources(),
"commons-lang" % "commons-lang" % "2.6" withSources(),
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.2" withSources(),
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.2",
"com.fasterxml.jackson.core" % "jackson-core" % "2.9.3" withSources(),
"com.fasterxml.jackson.core" % "jackson-databind" % "2.9.3",
"junit" % "junit" % "4.12"
))
)

libraryDependencies ++= Seq(
"io.reactivex" %% "rxscala" % "0.26.5" withSources(),
"io.reactivex" % "rxswing" % "0.27.0" withSources(), // for Swing Scheduler in suggestions
"org.json4s" %% "json4s-native" % "3.5.2" withSources(),
"org.json4s" %% "json4s-jackson" % "3.5.2" withSources(),
"org.scala-lang.modules" %% "scala-swing" % "2.0.0" withSources(),
// "net.databinder.dispatch" % "dispatch-core_2.10" % "0.11.3",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.slf4j" % "slf4j-api" % "1.7.5" withSources(),
"org.slf4j" % "slf4j-simple" % "1.7.5" withSources(),
"com.squareup.retrofit" % "retrofit" % "1.0.0" withSources(),
"org.scala-lang.modules" %% "scala-async" % "0.9.6"
)




val depsAkka = Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion withSources(),
"com.typesafe.akka" %% "akka-testkit" % akkaVersion withSources(),
"com.typesafe.akka" %% "akka-persistence" % akkaVersion withSources()
"com.typesafe.akka" %% "akka-persistence" % akkaVersion withSources(),
"com.typesafe.akka" %% "akka-stream" % akkaVersion withSources(),
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion withSources()
)

libraryDependencies ++= depsAkka
Expand Down
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.2.7
6 changes: 0 additions & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
logLevel := Level.Warn

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.16")

addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC13")

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.4")
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set JAVA_OPTS=-Dhttp.proxySet=true -Dhttp.proxyHost=proxy.server.com -Dhttp.proxyPort=8080
java -Xmx1024M -XX:MaxPermSize=1024M -Dsbt.log.noformat=true -Dsbt.repository.config=project/sbt.repositories -Dsbt.override.build.repos=true -jar build/sbt-launch.jar compile package publish
java -Xmx1G -Dsbt.log.noformat=true -Dsbt.repository.config=project/sbt.repositories -Dsbt.override.build.repos=true -jar build/sbt-launch.jar compile package publish

----

Expand Down
51 changes: 51 additions & 0 deletions src/main/go/parse_xml.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package main

/* https://tutorialedge.net/golang/parsing-xml-with-golang/ */

import (
"fmt"
"io/ioutil"
"os"
"encoding/xml"
)

type Users struct {
XMLName xml.Name `xml:"users"`
Users []User `xml:"user"`
}

type User struct {
XMLName xml.Name `xml:"user"`
Type string `xml:"type,attr"`
Name string `xml:"name"`
Social Social `xml:"social"`
}

type Social struct {
XMLName xml.Name `xml:"social"`
Facebook string `xml:"facebook"`
Twitter string `xml:"twitter"`
Youtube string `xml:"youtube"`
}

func main() {
xmlFile, err := os.Open("users.xml")
if err != nil {
fmt.Println(err)
}

fmt.Println("Successfully Opened users.xml");
defer xmlFile.Close();

byteValue, _ := ioutil.ReadAll(xmlFile)

var users Users
xml.Unmarshal(byteValue, &users)

for i := 0; i < len(users.Users); i++ {
fmt.Println("User Type: " + users.Users[i].Type)
fmt.Println("User Name: " + users.Users[i].Name)
fmt.Println("Facebook Url: " + users.Users[i].Social.Facebook)
}

}
Loading