Skip to content

Instantly share code, notes, and snippets.

View animeshsrivastava24's full-sized avatar
👨‍🎓
Feeding my cravings of Open Source Contribution

Animesh Srivastava animeshsrivastava24

👨‍🎓
Feeding my cravings of Open Source Contribution
View GitHub Profile
@animeshsrivastava24
animeshsrivastava24 / Story.scala
Created June 14, 2018 13:56 — forked from nicerobot/Story.scala
Simple Scala "DSL" example using easy to understand constructs.
object Story {
object Once { def upon = (x: a.type) => x }
object a { def time = (x: languages.type) => x }
object languages { def were = (x: inflexible.type) => x }
object inflexible { def along = (x: came.type) => x }
object came { def Scala = (x: inflexible.type) => x }
implicit def string(s : String) : inflexible.type = inflexible
def main(args: Array[String]): Unit = {
Once upon a time languages were inflexible; "Then " along came Scala ". The End!"
@animeshsrivastava24
animeshsrivastava24 / mat2csvUsingPython.py
Created July 4, 2017 07:39 — forked from sjqtentacles/mat2csvUsingPython.py
Converting .mat to .csv using python
import scipy.io
import numpy as np
data = scipy.io.loadmat("subject.mat")
for i in data:
if '__' not in i and 'readme' not in i:
np.savetxt(("filesforyou/"+i+".csv"),data[i],delimiter=',')