Skip to content

Instantly share code, notes, and snippets.

@jbarciela
jbarciela / FindFirstUnique.java
Last active May 15, 2020 12:42
Given a sequence of characters, find the first character that occurs exactly once
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
@jbarciela
jbarciela / gist:1b5cfe16cf3456f9c8ae6aa0b485234c
Last active April 10, 2020 18:59
My simple ~/.bash_profile
#
# simple ~/.bash_profile mostly for macOS
#
PS1='$(pwd) $ '
alias l='ls -G'
alias ll='ls -laG'
alias h='history|less'
alias gg='./gradlew'
@jbarciela
jbarciela / sbtmkdirs.sh
Last active August 29, 2015 14:16 — forked from alvinj/sbtmkdirs.sh
#!/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/
#------------------------------------------------------------------------------
@jbarciela
jbarciela / Main.scala
Last active August 29, 2015 14:16 — forked from anonymous/Main.scala
//
//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
//
//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)