Skip to content

Instantly share code, notes, and snippets.

/usr/lib/jvm/java-8-oracle/bin/java -Didea.launcher.port=7535 -Didea.launcher.bin.path=/home/phase/idea-IC-145.1617.8/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ma
@phase
phase / test.kt
Last active October 30, 2016 03:17
Testing Kotlin Syntax Highlighting Error
interface Test
/**
* Doc Block Comment
*/
val test = 1
/**
* asdf
*/
$ bash <(curl -s https://codecov.io/bash)
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-31d77b9
==> Travis CI detected.
project root: .
@phase
phase / a.md
Created November 14, 2016 20:59
compiler things
test (a : Int)
    var r = 0
    if a < 10
        r = 1
    else
        r = 2
    ;,
    r
val targetTriple = LLVMGetDefaultTargetTriple()
println(targetTriple.string)
LLVMSetTarget(llvmModule, targetTriple)
val target = LLVMTargetRef(null as BytePointer?)
val error = BytePointer(null as Pointer?)
LLVMGetTargetFromTriple(targetTriple, target, error)
LLVMDisposeMessage(error)
LLVMDisposeMessage(targetTriple)
@phase
phase / server.kt
Last active November 27, 2016 01:53
Build file for Vert.x + Kotlin
import io.vertx.core.AbstractVerticle
import io.vertx.core.Future
import io.vertx.core.Vertx
import io.vertx.ext.web.Router
fun main(args: Array<String>) {
Vertx.vertx().deployVerticle(NewVerticle())
}
class NewVerticle() : AbstractVerticle() {
@phase
phase / calc.w
Created November 28, 2016 00:20
solve (((1-x+x^3)/(2*sqrt(x))) - (sqrt(x) * (3x^2 -1))) / ((1-x+x^3)^2) = 0
@phase
phase / genRecursiveImport.ll
Last active December 17, 2016 23:12
Recursive Imports
; ModuleID = 'genRecursiveInput1'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @test2(i32)
declare i32 @test4()
define i32 @test1() {
entry:
/usr/lib/jvm/java-8-oracle/bin/java -ea -Didea.launcher.port=7538 -Didea.launcher.bin.path=/home/phase/idea-IC-163.7743.44/bin -Dfile.encoding=UTF-8 -classpath /home/phase/idea-IC-163.7743.44/lib/idea_rt.jar:/home/phase/idea-IC-163.7743.44/plugins/junit/lib/junit-rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jv
struct account {
int id;
};
int main(void) {
struct account a;
}