Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Yasushi / mvn2sbt.scala
Created April 30, 2011 14:38 — forked from retronym/mvn2sbt.scala
mvn2sbt: quick hack to turn <dependencies> into SBT
object scala {
val version = "SCALA_VERSION$"
}
val xml = <dependencies>
<dependency>
<groupId>org.scalanlp</groupId>
<artifactId>scalala_${scala.version}</artifactId>
<version>0.3.1</version>
</dependency>
@Yasushi
Yasushi / RameeProject.scala
Created May 9, 2011 15:10 — forked from ReSTARTR/RameeProject.scala
DotCloud sbt Project sample
import sbt._
class AppnameProject(info: ProjectInfo) extends DefaultWebProject(info) {
val JETTY7 = "7.3.1.v20110307"
val servletapi = "javax.servlet" % "servlet-api" % "2.5" % "compile"
val jetty7Server = "org.eclipse.jetty" % "jetty-server" % JETTY7 % "provided,test"
val jetty7Servlets = "org.eclipse.jetty" % "jetty-servlets" % JETTY7 % "provided,test"
val jetty7Webapp = "org.eclipse.jetty" % "jetty-webapp" % JETTY7 % "provided,test"
@Yasushi
Yasushi / build.sbt
Created May 19, 2012 02:26 — forked from kmizu/build.sbt
Code snippet of build.sbt for Finagle 4.0.2 in Scala 2.9.1
resolvers += "twitter-repo" at "http://maven.twttr.com"
scalaVersion := "2.9.1"
libraryDependencies ++= Seq(
"com.twitter" %% "finagle-http" % "4.0.2"
)
@Yasushi
Yasushi / ddskk.rb
Last active August 29, 2015 14:10 — forked from kawaguchi/ddskk.rb
require 'formula'
class Ddskk < Formula
url 'http://openlab.ring.gr.jp/skk/maintrunk/ddskk-15.2.tar.gz'
homepage 'http://openlab.ring.gr.jp/skk/index-j.html'
sha1 '23b7c83dfa4997a0be47fca8cfd316e68f4342ec'
patch do
url "https://gist.githubusercontent.com/Yasushi/d69a49dc3eb6780952c6/raw/21becd1e99864a1924786d481172855992452b08/ddskk-rename-queue-func.diff"
sha1 "ef07cb6707f33d46cc364afa8c1cb829d3670e14"
@Yasushi
Yasushi / mingw-w64.sh
Last active March 27, 2016 02:12 — forked from Drakulix/mingw-w64-3.10-osx10.9.sh
Script to install a Mingw-w64 Cross-Compiler Suite on Mac OS X 10.11
#!/bin/sh
# dependencies
#echo "Installing dependencies via Homebrew (http://brew.sh)"
#ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#brew update
#brew install gcc48
@Yasushi
Yasushi / - IDE Scripting.md
Last active April 6, 2024 06:23 — forked from gregsh/- IDE Scripting.md
IDE Scripting

Here are my attempts to script an IntelliJ-based IDE using javax.script.* API (ex-JSR-223).

The list of available scripting languages and engines:

  1. Groovy - built-in, via Groovy jars and <app>/lib/groovy-jsr223-xxx.jar
  2. JavaScript (Nashorn) - built-in, via Java Runtime <app>/jbr/... (deprecated and will be removed soon)
  3. JavaScript (GraalJS) - https://plugins.jetbrains.com/plugin/12548-intellij-scripting-javascript
  4. JPython - https://plugins.jetbrains.com/plugin/12471-intellij-scripting-python
  5. JRuby - https://plugins.jetbrains.com/plugin/12549-intellij-scripting-ruby
  6. Clojure - https://plugins.jetbrains.com/plugin/12469-intellij-scripting-clojure