This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.jbarciela.frolic; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| /** | |
| * Given a sequence of characters, find the first character that occurs exactly once. | |
| * | |
| * @author jbarciela |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # simple ~/.bash_profile mostly for macOS | |
| # | |
| PS1='$(pwd) $ ' | |
| alias l='ls -G' | |
| alias ll='ls -laG' | |
| alias h='history|less' | |
| alias gg='./gradlew' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #------------------------------------------------------------------------------ | |
| # Name: sbtmkdirs | |
| # Purpose: Create an SBT project directory structure with a few simple options. | |
| # Author: Alvin Alexander, http://alvinalexander.com | |
| # Info: http://alvinalexander.com/sbtmkdirs | |
| # License: Creative Commons Attribution-ShareAlike 2.5 Generic | |
| # http://creativecommons.org/licenses/by-sa/2.5/ | |
| #------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| //for use in http://www.scala-js-fiddle.com/ | |
| // | |
| //from http://www.scala-js-fiddle.com/gist/9443f8e0ecc68d1058ad/LandingPage.scala | |
| // Scala-Js-Fiddle comes with the following default imports at the top of every program: | |
| // import scalatags.JsDom.all._ | |
| // import org.scalajs.dom | |
| // import fiddle.Page | |
| // import Page.{red, green, blue, yellow, orange, println} | |
| // import scalajs.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| //for use in http://www.scala-js-fiddle.com/ | |
| // | |
| object ScalaJSExample extends js.JSApp{ | |
| def main() = { | |
| println("test test test") | |
| val xs = Seq(1, 2, 3, 4, 5) | |
| println(xs.toString) | |
| val ys = Seq(4, 5, 6, 7, 8, 9) | |
| println(ys.toString) |