This file contains 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
set ignorecase | |
set smartcase | |
set scrolloff=8 | |
" Integrate with system clipboard | |
set clipboard=unnamedplus,unnamed | |
let mapleader = " " | |
nmap <leader>p :action ParameterInfo<CR> |
This file contains 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
object Main { | |
enum Expr[+T] { | |
case MyInt(i: Int) extends Expr[Int] | |
case Bool(b: Boolean) extends Expr[Boolean] | |
case Add(x: Expr[Int], b: Expr[Int]) extends Expr[Int] | |
case Eq(x: Expr[T], b: Expr[T]) extends Expr[Boolean] | |
} | |
import Expr._ |
This file contains 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
# ~/.config/fish/config.fish | |
# git/hub | |
abbr git hub | |
abbr gst 'hub status' | |
abbr gd 'hub diff' | |
abbr ga 'hub add' | |
abbr gc 'hub commit' | |
abbr gp 'hub push' | |
abbr gpb 'hub push -u origin (hub rev-parse --abbrev-ref HEAD)' |
This file contains 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
def parse s | |
sc = org.jruby.runtime.scope.ManyVarsDynamicScope.new(JRuby.runtime.getStaticScopeFactory().newLocalScope(nil, 'file'), nil) | |
is = java.io.ByteArrayInputStream.new(java.lang.String.new(s).get_bytes(java.nio.charset.StandardCharsets::UTF_8)) | |
JRuby.runtime.parseFileFromMain is, 'file', sc | |
end | |
node = parse '1+3' #=> #<Java::OrgJrubyAst::RootNode:0x70f822e> | |
node.child_nodes.get(0) |
This file contains 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
FROM ubuntu:artful | |
RUN apt update | |
RUN apt install -y build-essential libssl1.0-dev libevent-dev libseccomp-dev libcap-dev libboost-all-dev pkg-config git autoconf | |
RUN git clone --recursive https://github.com/XSPECOfficial/spectre | |
WORKDIR /spectre | |
RUN bash ./autogen.sh | |
RUN bash ./configure | |
RUN make -j2 |
This file contains 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
{ | |
"header": { | |
"Name": "MDErgo1", | |
"Layout": "Default", | |
"Base": "Blank", | |
"Version": "0.1", | |
"Author": "HaaTa (Jacob Alexander) 2015", | |
"KLL": "0.3c", | |
"Date": "2015-09-12", | |
"Generator": "KIICONF 0.2" |
This file contains 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
import java.util.Arrays; | |
public class Main { | |
public static void main(String[] args) { | |
Visitor<Integer> intVisitor = new Visitor<Integer>() { | |
@Override | |
public Integer visitInt() { | |
System.out.println("LOL"); | |
return null; |
This file contains 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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007fff9b562f49, pid=43902, tid=0x0000000000000b23 | |
# | |
# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14) | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops) | |
# Problematic frame: | |
# C [libsystem_platform.dylib+0x4f49] _platform_memmove$VARIANT$Haswell+0x29 | |
# |
This file contains 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
#!/usr/bin/env python | |
## WARNING: This file is generated | |
#!/usr/bin/env python | |
"""Create a "virtual" Python installation | |
""" | |
__version__ = "13.1.2" | |
virtualenv_version = __version__ # legacy | |
import base64 |
This file contains 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
private String debugString(CallChain cc) { | |
StringBuilder sb = new StringBuilder(); | |
for (CallSite cs : cc) { | |
sb.append(cs.getCaller().getClassName()); | |
sb.append("."); | |
sb.append(cs.getCaller().getMethodName()); | |
sb.append("->"); | |
} | |
sb.append(cc.last().getCallee().getMethodName()); |
NewerOlder