Skip to content

Instantly share code, notes, and snippets.

View Gitmoko's full-sized avatar

STM/Ryotaro Gitmoko

View GitHub Profile
# coding: utf-8
# In[41]:
from matplotlib import pyplot as plt
import numpy as np
from sklearn import datasets
@Gitmoko
Gitmoko / build.gradle
Last active February 2, 2019 10:03
josm plugin gradleテスト
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/5.1.1/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
#include <iostream>
#include <cstdlib>
#include <map>
#include <array>
#include <string>
#include <vector>
#include <fstream>
@Gitmoko
Gitmoko / tex.vim
Last active March 28, 2018 09:12
ftplugin
" LaTeX Quickrun
let g:quickrun_config['tex'] = {
\ 'runner' : 'vimproc',
\ 'runner/vimproc/updatetime' : 60,
\ 'command' : 'latexmk',
\ 'outputter' : 'error',
\ 'outputter/error/success' : 'null',
\ 'outputter/error/error' : 'quickfix',
\ 'srcfile' : expand("%"),
\ 'cmdopt': '-pdfdvi',
#!/usr/bin/env perl
if ($^O eq 'MSWin32') {
$latex = 'uplatex %O -kanji=utf8 -no-guess-input-enc -synctex=1 %S';
$pdflatex = 'pdflatex %O -synctex=1 %S';
$lualatex = 'lualatex -cmdx %O -synctex=1 %S';
$xelatex = 'xelatex %O -synctex=1 %S';
$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B';
$bibtex = 'upbibtex %O %B';
$makeindex = 'upmendex %O -o %D %S';
$dvipdf = 'dvipdfmx %O -o %D %S';
let g:vimproc#download_windows_dll = 1
filetype plugin on
set number
set encoding=utf-8
set fileencoding=utf-8
set smarttab
set expandtab
set tabstop=2
set shiftwidth=2
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform vec2 resolution;
uniform vec2 mouse;
@Gitmoko
Gitmoko / rubic
Last active December 30, 2017 12:18
module AdjAverage where
import Debug.Trace
import KdTree
import Data.List
import Data.Maybe
import ReturnNearestMap
import qualified Data.Array.Repa as R
import Basis
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;