Skip to content

Instantly share code, notes, and snippets.

View yuki-takei's full-sized avatar

Yuki Takei yuki-takei

View GitHub Profile
@yuki-takei
yuki-takei / Log4jLikeNamedConverter.groovy
Last active September 14, 2017 12:01
An alternative converter of logback NamedConverter with Log4j like abbreviation
package jp.co.weseek.logback.pattern
import ch.qos.logback.classic.pattern.ClassicConverter
import ch.qos.logback.classic.spi.ILoggingEvent
import groovy.transform.CompileStatic
import org.apache.logging.log4j.core.pattern.NameAbbreviator
/**
* An alternative converter of {@link ch.qos.logback.classic.pattern.NamedConverter} with Log4j like abbreviation
*
model mpg cyl disp hp drat wt qsec vs am gear carb
Mazda RX4 21 6 160 110 3.9 2.62 16.46 0 1 4 4
Mazda RX4 Wag 21 6 160 110 3.9 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.32 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
Hornet Sportabout 18.7 8 360 175 3.15 3.44 17.02 0 0 3 2
Valiant 18.1 6 225 105 2.76 3.46 20.22 1 0 3 1
Duster 360 14.3 8 360 245 3.21 3.57 15.84 0 0 3 4
Merc 240D 24.4 4 146.7 62 3.69 3.19 20 1 0 4 2
Merc 230 22.8 4 140.8 95 3.92 3.15 22.9 1 0 4 2
@yuki-takei
yuki-takei / cloudSettings
Last active October 5, 2017 02:28
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-10-05T02:27:54.294Z","extensionVersion":"v2.8.3"}
@yuki-takei
yuki-takei / vagrant-clean.sh
Last active December 5, 2018 11:43 — forked from jdowning/vagrant-clean.sh
Script to clean up Ubuntu Vagrant box before packaging
#!/bin/bash
# This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box.
# Run the following command in a root shell:
#
# bash <(curl -s https://gist.github.com/yuki-takei/4b0823c6e882ef030ad46e534fc6cc7c/raw/vagrant-clean.sh)
function print_green {
echo -e "\e[32m${1}\e[0m"
}
@yuki-takei
yuki-takei / keybindings.json
Last active August 22, 2021 06:23 — forked from bpedman/keybindings.json
Visual Studio Code - Eclipse Keybindings (Win, Linux)
[
{
"key": "ctrl+d",
"command": "editor.action.cutLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+o",
"command": "workbench.action.gotoSymbol"
},
@yuki-takei
yuki-takei / fruits.py
Created August 11, 2015 12:18
akari-first-python
# サンプル1
x = 5;
print("xは" + str(x));
# サンプル2
name = "あかり";
print("名前は" + name);
# サンプル3
moji_x = "aaaa";
@yuki-takei
yuki-takei / 000-Dynamic dav-svn configuration
Last active August 29, 2015 14:24
Dynamic dav-svn configuration
$ mkdir ~/apache2
$ cd ~/apache2
$ git clone https://github.com/weseek/apache2conf-generator-davsvn.git
$ cp -r apache2conf-generator-davsvn/templates ./mytemplates
@yuki-takei
yuki-takei / hg-devide.sh
Created June 27, 2015 21:37
devide Marcurial repository
#!/bin/sh
TMPDIR=/tmp
# check args
if [ $# != 2 ]; then
echo "usage: $0 SRCREPOS DESTDIR" 1>&2
exit 0
@yuki-takei
yuki-takei / style.less
Created June 4, 2015 09:05
Style Sheet for Atom Editor Markdown-Preview
.my-font {
font-family: "Meiryo";
}
.my-font-monospace {
font-family: "MeiryoKe_Gothic";
}
// Markdown Preview
.markdown-preview {
atom-text-editor {
abstract class AbstractUser {
static mapWith = "mongo"
static mapping = {
name index: true
}
static constraints = {
desc nullable: true
}