Skip to content

Instantly share code, notes, and snippets.

View AesaKamar's full-sized avatar
👾

Aesa Kamar AesaKamar

👾
View GitHub Profile
@AesaKamar
AesaKamar / Aesa_AndroidStudio_ColorScheme.icls
Last active April 19, 2024 04:08
Aesa_AndroidStudio_colorScheme.icls
<scheme name="Darcula" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2023-08-17T19:28:17</property>
<property name="ide">AndroidStudio</property>
<property name="ideVersion">2022.3.1.18</property>
<property name="modified">2023-08-17T19:28:31</property>
<property name="originalScheme">_@user_Darcula</property>
</metaInfo>
<attributes>
<option name="DART_CONSTRUCTOR">
@AesaKamar
AesaKamar / Aesa_Pycharm_ColorScheme.icls
Created January 26, 2024 00:52
Aesa_Pycharm_ColorScheme
<scheme name="Dark" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2024-01-25T19:45:16</property>
<property name="ide">PyCharmCore</property>
<property name="ideVersion">2023.3.2.0.0</property>
<property name="modified">2024-01-25T19:45:21</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="549159" />
<option name="ANNOTATIONS_COLOR" value="8d9199" />
@AesaKamar
AesaKamar / Aesa_IntelliJ_ColorScheme
Created June 12, 2023 19:25
A Scala/Terraform specialized color Scheme for IntelliJ
<scheme name="Aesa_IntelliJ_ColorScheme" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2023-06-12T15:23:03</property>
<property name="ide">Idea</property>
<property name="ideVersion">2022.3.2.0.0</property>
<property name="modified">2023-06-12T15:23:33</property>
<property name="originalScheme">Darcula copy4</property>
</metaInfo>
<option name="CONSOLE_FONT_NAME" value="Hasklig" />
@AesaKamar
AesaKamar / DownInBermudaTrickyLiquids.scala
Last active May 26, 2021 11:44
A BFS graph traversal algorithm to solve the tricky liquids puzzle in the game Down In Bermuda
sealed trait TransferOp
case object `l->m` extends TransferOp
case object `l->r` extends TransferOp
case object `m->l` extends TransferOp
case object `m->r` extends TransferOp
case object `r->l` extends TransferOp
case object `r->m` extends TransferOp
final case class Canister(max: Int, level: Int)
@AesaKamar
AesaKamar / gist:e0831d6e92478f3c67ba22839fb3d2bb
Created August 9, 2018 20:37 — forked from rgorsuch/gist:b404c658551a6a8aeb35
scala: print all URLs on classpath
def urlses(cl: ClassLoader): Array[java.net.URL] = cl match {
case null => Array()
case u: java.net.URLClassLoader => u.getURLs() ++ urlses(cl.getParent)
case _ => urlses(cl.getParent)
}
val urls = urlses(getClass.getClassLoader)
println(urls.filterNot(_.toString.contains("ivy")).mkString("\n"))
https://tikzcd.yichuanshen.de/#eyJub2RlcyI6W3sicG9zaXRpb24iOlswLDBdLCJ2YWx1ZSI6IkIifSx7InBvc2l0aW9uIjpbMSwwXSwidmFsdWUiOiJSIn0seyJwb3NpdGlvbiI6WzIsMF0sInZhbHVlIjoiQSJ9LHsicG9zaXRpb24iOlswLDFdLCJ2YWx1ZSI6IkZCIn0seyJwb3NpdGlvbiI6WzEsMV0sInZhbHVlIjoiRlIifSx7InBvc2l0aW9uIjpbMiwxXSwidmFsdWUiOiJGQSJ9XSwiZWRnZXMiOlt7ImZyb20iOjQsInRvIjoxLCJiZW5kIjozMCwibGluZSI6InNvbGlkIiwibGFiZWxQb3NpdGlvbiI6ImxlZnQiLCJ2YWx1ZSI6ImluIn0seyJmcm9tIjoxLCJ0byI6NCwiYmVuZCI6MzAsImxhYmVsUG9zaXRpb24iOiJsZWZ0IiwidmFsdWUiOiJvdXQifSx7ImZyb20iOjEsInRvIjowLCJ2YWx1ZSI6ImNhdGEiLCJsYWJlbFBvc2l0aW9uIjoicmlnaHQiLCJiZW5kIjotMzB9LHsiZnJvbSI6MiwidG8iOjEsImJlbmQiOi0zMCwidmFsdWUiOiJhbmEiLCJsYWJlbFBvc2l0aW9uIjoicmlnaHQifSx7ImZyb20iOjIsInRvIjowLCJiZW5kIjotNDksImxhYmVsUG9zaXRpb24iOiJyaWdodCIsInZhbHVlIjoiaHlsbyJ9LHsiZnJvbSI6MywidG8iOjAsImJlbmQiOjMwLCJsYWJlbFBvc2l0aW9uIjoibGVmdCIsInZhbHVlIjoiYWxnIn0seyJmcm9tIjo0LCJ0byI6MywiYmVuZCI6MzAsInZhbHVlIjoibWFwILcgY2F0YSIsImxhYmVsUG9zaXRpb24iOiJyaWdodCJ9LHsiZnJvbSI6NSwidG8iOjQsInZhbHVlIjoibWFwILcgYW5hIiwiYmVuZCI6MzAsImxhY