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"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"| @Target(ElementType.FIELD) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @interface Default{ | |
| String value() default "test"; | |
| } | |
| enum Test{ | |
| @Default FOO,BAR; | |
| String value; |
| 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; |
| 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; |
| 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; |
| <!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 |
| Statement | |
| = a:Expression _ b:Statement _ operator:Operator {return operator(a,b)} | |
| / Expression | |
| Expression | |
| = a:Number _ b:Number _ operator:Operator {return operator(a,b)} | |
| / Number | |
| Operator "operator" | |
| = "*" {return function(a,b){return a*b}} |
ここにアクセスして 左の入力欄にpegの内容をコピペすれば動きます。
スライド:何となく勉強した気分になれるパーサ入門
上記スライドに感謝。