Skip to content

Instantly share code, notes, and snippets.

View chimerast's full-sized avatar
😴
Beautiful Dreamer

Hideyuki Takeuchi chimerast

😴
Beautiful Dreamer
View GitHub Profile
@chimerast
chimerast / README.md
Last active August 29, 2015 14:11
sample-gist

Japan Color

Color Mapping any data on Japan map. You can use any data about states of japan you have.

Data Format

States Data Label1 Data Label2 ...
State Data Data ...
@chimerast
chimerast / e2d3_manifest.xml
Created November 10, 2015 01:42
Manifest file of E2D3 (Id is changed)
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ContentApp">
<Id>00000000-0000-0000-0000-000000000000</Id>
<Version>1.5.0.0</Version>
<ProviderName>e2d3.org</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="E2D3" />
<Description DefaultValue="Dynamic, interactive, and more interesting graphing from your Excel!" />
<IconUrl DefaultValue="http://e2d3.org/wp-content/uploads/2015/05/logo.png" />
<SupportUrl DefaultValue="http://www.e2d3.org/" />
@chimerast
chimerast / buildnumber-maven-plugin.patch
Created January 24, 2017 14:01
buildnumber-maven-plugin with hg branch
Index: pom.xml
===================================================================
--- pom.xml (revision 19341)
+++ pom.xml (working copy)
@@ -13,7 +13,7 @@
<artifactId>buildnumber-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Build Number Maven Plugin</name>
- <version>1.2</version>
+ <version>1.2.1</version>
@chimerast
chimerast / sen.patch
Created January 24, 2017 14:09
sen.patch
Index: src/java/net/java/sen/util/DoubleArrayTrie.java
===================================================================
--- src/java/net/java/sen/util/DoubleArrayTrie.java (revision 89)
+++ src/java/net/java/sen/util/DoubleArrayTrie.java (working copy)
@@ -1,3 +1,18 @@
+
+
+
+
+
@chimerast
chimerast / makegif
Created April 19, 2017 06:53
Make gif animation file from movie
#!/bin/bash
set -eux
INPUT_FILE=${1}
OUTPUT_FPS=${2:-8}
OUTPUT_HEIGHT=${3:--1}
TEMPFILE_CUT=cut.mp4
TEMPFILE_PALLETE=pallete.png
@chimerast
chimerast / DefaultKeyBinding.dict
Created February 14, 2018 14:14
[DefaultKeyBinding.dict]
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
{
"title": "chimerast's custom bindings",
"rules": [
{
"description": "Input backslash(\\) if pressed Yen-mark",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "international3",
@chimerast
chimerast / index.js
Created July 8, 2018 16:28
[HyperTerm Configuration]
exports.decorateBrowserOptions = (options) => {
return Object.assign({}, options, {
titleBarStyle: 'hidden'
});
}
exports.getTermProps = (uid, parentProps, props) => {
return Object.assign(props, {
onDecorated: (term) => {
term.term.setOption('letterSpacing', 1);
@chimerast
chimerast / bbq.py
Created March 20, 2019 09:50
回答: 難問解けたらjustInCaseのBBQに無料ご招待! https://www.wantedly.com/projects/289455
from urllib.request import *
from urllib.parse import *
import json
import base64
from sympy import *
q = 'W1t4LCAxXV1AW1sxLCAtODcuNjcwNV0sWy04Ny42NzA1LCA0OTc1LjQwNDQxXV1AW1t4XSwgWzFdXQ%3D%3D'
formula = base64.b64decode(unquote(q)).decode('utf-8')
x = Symbol('x')
@chimerast
chimerast / CoroutineExercise.kt
Created September 4, 2020 17:45
Coroutineの説明用に作って見た
package example
import kotlinx.coroutines.*
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicInteger
fun main() {
val nCount = 100000