This file contains hidden or 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
synclient MaxTapTime=0 |
This file contains hidden or 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
#!/bin/bash | |
while true; do inotifywait -e modify *.tex>/dev/null 2&>1; latexmk -pdf > /dev/null 2>&1; done |
This file contains hidden or 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
#!/bin/bash | |
for f in *.MPQ; do | |
MPQExtractor -e "*" -f $f | |
done |
This file contains hidden or 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
function FindBossTarget(bossName) | |
local i | |
local bossTarget = nil | |
if( UnitName("playertarget") == bossName ) then | |
bossTarget = UnitName("playertargettarget") | |
else | |
for i = 1, GetNumRaidMembers(), 1 do | |
if UnitName("Raid"..i.."target") == bossName then | |
bossTarget = UnitName("Raid"..i.."targettarget") | |
break |
This file contains hidden or 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
public class Main { | |
public static void main(String[] args) { | |
Test t = new Test(); | |
t.setSomeValue("Hello World!"); | |
Javalin app = Javalin.create().start(7000); | |
app.get("/", ctx -> ctx.json(t)); | |
} | |
} |
This file contains hidden or 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
compile group: 'io.javalin', name: 'javalin', version: '2.2.0' | |
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6' | |
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' | |
compile group: 'org.graalvm', name: 'graal-sdk', version: '1.0.0-rc6' |
This file contains hidden or 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
task fatJar(type: Jar) { | |
manifest { | |
attributes 'Implementation-Title': 'Gradle Jar File Example', | |
'Implementation-Version': version, | |
'Main-Class': 'de.nerden.samples.graal.Main' | |
} | |
baseName = project.name + '-all' | |
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } | |
with jar | |
} |
This file contains hidden or 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
[ | |
{ | |
"name": "[Lorg.eclipse.jetty.servlet.ServletMapping;", | |
"allDeclaredFields": true, | |
"allPublicFields": true, | |
"allDeclaredMethods": true, | |
"allPublicMethods": true | |
}, | |
{ | |
"name": "org.slf4j.impl.StaticLoggerBinder", |
This file contains hidden or 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 birdy/graalvm:latest | |
WORKDIR /tmp/build | |
ENV GRADLE_USER_HOME /tmp/build/.gradle | |
ADD . /tmp/build | |
RUN ./gradlew build fatJar | |
RUN native-image -jar /tmp/build/build/libs/graal-javalin-all-1.0-SNAPSHOT.jar -H:ReflectionConfigurationFiles=reflection.json -H:+JNI \ | |
-H:Name=graal-javalin --static --delay-class-initialization-to-runtime=io.javalin.json.JavalinJson | |
FROM scratch |
This file contains hidden or 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
m := &api.Mutation{ | |
CommitNow: true, | |
Set: []*api.NQuad{ | |
&api.NQuad{Subject: request.GetEntityUid(), Predicate: "access.to", ObjectId: request.GetResourceUid(), Facets: []*api.Facet{ | |
&api.Facet{ | |
Key: "permission", | |
Value: []byte(request.GetAction()), | |
ValType: api.Facet_STRING, | |
Tokens: []string{request.GetAction()}, | |
}, |
OlderNewer