Skip to content

Instantly share code, notes, and snippets.

View SethTisue's full-sized avatar

Seth Tisue SethTisue

View GitHub Profile
* 049f0ec06c (origin/HEAD, origin/2.12.x) Merge pull request #5936 from adriaanm/i10244-bitmaps-for-fields
|\
| * 5f86b1d94d Drive bitmap computation from field, not accessor
* | e72ab5ad07 Merge pull request #5940 from janekdb/topic/2.12/intellij-code-analysis-unused-format-args
|\ \
| * | 7eb861cb22 Remove unused format arg in interpreter echo
| |/
* | 2c50123696 Merge pull request #5822 from lrytz/t9937
|\ \
| * | 04d4f4c61a SI-9937 find nested java classes if InnnerClass entry is missing
@SethTisue
SethTisue / .gitignore
Last active December 7, 2016 01:42
parse iTunes library XML, compile stats. shows how to use Scala's XML pull API, by putting some DSL-y goodness on top of it
/tunes.txt
@SethTisue
SethTisue / -
Created December 2, 2016 18:48
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://artifactory.jfrog.org/xsd/1.7.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jfrog.org/xsd/artifactory-v1_7_3.xsd">
<offlineMode>false</offlineMode>
<helpLinksEnabled>true</helpLinksEnabled>
<fileUploadMaxSizeMb>100</fileUploadMaxSizeMb>
<dateFormat>dd-MM-yy HH:mm:ss z</dateFormat>
<addons>
<showAddonsInfo>true</showAddonsInfo>
<showAddonsInfoCookie>1430275670992</showAddonsInfoCookie>
</addons>
@SethTisue
SethTisue / gist:8980701
Created February 13, 2014 18:18
Six NetLogo-based papers in latest JASSS
The Journal of Artificial Societies and Social Simulation
Volume 17, Number 1, January 2014
Agent-Based Simulation of Pedestrian Behaviour in Closed Spaces: A Museum Case Study
http://jasss.soc.surrey.ac.uk/17/1/16.html
"Both the code and the interface of our model have been originally developed by us within the NetLogo software environment"
Agent-Based Simulation of the Search Behavior in China's Resale Housing Market: Evidence from Beijing
http://jasss.soc.surrey.ac.uk/17/1/18.html
"NetLogo requires less computational power and offers multiple visible extensions (Wilensky 1999), so we develop our housing market simulation model based on NetLogo"
@SethTisue
SethTisue / scalawags-40.md
Created August 19, 2016 21:31
Scalawags #40: Endless Summer
~/tmp/scalaz-fold % sbt
[info] Loading global plugins from /Users/tisue/.sbt/0.13/plugins
[info] Set current project to scalaz-fold (in build file:/Users/tisue/tmp/scalaz-fold/)
> set scalaVersion := "2.11.8"
[info] Defining *:scalaVersion
[info] The new value will be used by *:Additional arguments for the presentation compiler., *:allDependencies and 24 others.
[info] Run `last` for details.
[info] Reapplying settings...
[info] Set current project to scalaz-fold (in build file:/Users/tisue/tmp/scalaz-fold/)
> set libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.2.4"
@SethTisue
SethTisue / scalawags-38.md
Last active July 3, 2016 09:17
Scalawags #38: The Sound of Dotty
scala> import scala.language.reflectiveCalls
import scala.language.reflectiveCalls
scala> type Structural = { def foo: Int; def foo_=(x: Int): Unit }
defined type alias Structural
scala> object O { var foo = 5 }
defined object O
scala> (O: Any).asInstanceOf[Structural].foo = 10

Trait with superaccessor

here's T.scala:

trait T1 {
  def x = 3
}
trait T2 extends T1 {
  override def x = super.x + 1

}

@SethTisue
SethTisue / scalawags-37.md
Last active January 7, 2016 04:30
Scalawags #37: Holiday Special 2015/6