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
function wrap_jth { | |
grep 'daemon prio=' $1 | ruby -rcsv -ne 'puts CSV.parse($_,{:col_sep => "\s"}).first.first.gsub(/\d/, "0")' | sort | uniq -c | |
} |
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
package org.komamitsu.test; | |
import java.util.StringTokenizer; | |
public class ArithmeticCodeEvaluator | |
{ | |
private static int eval(StringTokenizer tokenizer) | |
{ | |
String first = tokenizer.nextToken(); | |
if (first.equals("+")) { |
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
$ javac -cp fluency-1.9.0-SNAPSHOT-shadow.jar org/komamitsu/fluencycaller/FluencyCaller.java | |
$ native-image --class-path fluency-1.9.0-SNAPSHOT-shadow.jar:. --shared -H:Name=libfluency --verbose | |
$ cc -Wall -I. -L. -lfluency main.c | |
$ ./a.out |
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
package com.mygdx.game; | |
import com.badlogic.gdx.ApplicationAdapter; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.Input; | |
import com.badlogic.gdx.graphics.Camera; | |
import com.badlogic.gdx.graphics.GL20; | |
import com.badlogic.gdx.graphics.OrthographicCamera; | |
import com.badlogic.gdx.graphics.Texture; | |
import com.badlogic.gdx.graphics.g2d.BitmapFont; |
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
{ | |
"title": "Komamitsu's configuration", | |
"rules": [ | |
{ | |
"description": "Internal US keyboard (1452/632): Post option if left_control is pressed.", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ |
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 org.rocksdb.EnvOptions; | |
import org.rocksdb.FlushOptions; | |
import org.rocksdb.IngestExternalFileOptions; | |
import org.rocksdb.Options; | |
import org.rocksdb.OptionsUtil; | |
import org.rocksdb.RocksDB; | |
import org.rocksdb.SstFileWriter; | |
public class RocksDBTest | |
{ |
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
io.digdag.core.agent.OperatorManager#runWithWorkspace | |
Config localConfig = config.getFactory().create(); | |
for (String localKey : request.getLocalConfig().getKeys()) { | |
>>> localConfig.set(localKey, config.getOptional(localKey, JsonNode.class).transform(JsonNode::deepCopy).orNull()); | |
} | |
ex = {java.lang.ClassCastException@5548} "java.lang.ClassCastException: java.lang.String cannot be cast to com.fasterxml.jackson.databind.JsonNode" | |
detailMessage = "java.lang.String cannot be cast to com.fasterxml.jackson.databind.JsonNode" | |
cause = {java.lang.ClassCastException@5548} "java.lang.ClassCastException: java.lang.String cannot be cast to com.fasterxml.jackson.databind.JsonNode" |
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
package org.komamitsu.test; | |
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet; | |
import it.unimi.dsi.fastutil.objects.ObjectSets; | |
import org.eclipse.collections.api.factory.set.MutableSetFactory; | |
import org.eclipse.collections.api.set.MutableSet; | |
import org.eclipse.collections.impl.set.mutable.UnifiedSet; | |
import org.trie4j.doublearray.DoubleArray; | |
import org.trie4j.patricia.PatriciaTrie; |
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
public class JavaLambdaTest | |
{ | |
public int i; | |
public void runTask(Runnable f) | |
{ | |
f.run(); | |
} | |
public void run() |