Skip to content

Instantly share code, notes, and snippets.

@wreulicke
wreulicke / NokogiriTest.md
Last active May 3, 2016 03:43
Nokogiriしたのでメモ

nokogiri test

require 'open-uri'
require 'nokogiri'
require "kconv"

url = 'http://erogamescape.dyndns.org/~ap2/ero/toukei_kaiseki/toukei_hatubaibi.php'
def p (*str)
 print str.join(", ")+"\r\n"
@wreulicke
wreulicke / CodeTest.java
Created May 8, 2016 13:42
ある点Xへの各点からの距離の総和の最小化
package jp.co.ss;
import org.junit.Test;
public class CodeTest {
int[] testCase={1,2,4,8,16,32,64};
@Test
public void plan1(){
int min=Integer.MAX_VALUE;
@wreulicke
wreulicke / NotMethodChain.java
Last active May 12, 2016 14:48
メソッドチェインなし
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
@wreulicke
wreulicke / SecondTest.java
Created May 28, 2016 19:49
とりあえずjavassistのコード置いておく
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import org.junit.Test;
import javassist.CannotCompileException;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtConstructor;
import javassist.CtField;
@wreulicke
wreulicke / index.html
Last active June 8, 2016 13:14
name test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue js</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.21/vue.js" charset="utf-8"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', init);
function init() {
window.debug=new Vue({
npm install karma --save-dev
npm install karma-jasmine karma-chrome-launcher --save-dev
node_module\.bin\karma init karma.conf.js
rem npm install -g karma-cli
rem node_modules\.bin\karma start karma.conf.js --log-level debug
@wreulicke
wreulicke / Test.md
Last active July 10, 2016 01:05
Markdownテスト
@wreulicke
wreulicke / test.cpp
Created July 11, 2016 08:44
C++ memo
#include <iostream>
#include <vector>
#include <initializer_list>
#include <type_traits>
#include <algorithm>
using namespace std;
template <typename T,size_t n=0>
vector<enable_if_t<is_arithmetic<T>::value,T>> data(){
size_t x=n;
https://www.evernote.com/shard/s283/sh/8a7acc0d-e72e-4846-a862-2d1daa37e686/4ab563c0eb116a2806275effd97aa34d
package test.jpa;
import java.lang.reflect.Field;
import com.orientechnologies.orient.core.metadata.schema.OClass;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
import com.tinkerpop.blueprints.impls.orient.OrientVertex;
import com.tinkerpop.blueprints.impls.orient.OrientVertexType;
public class VertexRegisterImpl implements VertexRegister{