Skip to content

Instantly share code, notes, and snippets.

View onelittlenightmusic's full-sized avatar

Roy Hiroyuki Osaki onelittlenightmusic

  • Hitachi America Ltd,
  • Santa Clara
View GitHub Profile
makeSearchCommand({
name: "dict",
url: "http://www.merriam-webster.com/dictionary/{QUERY}",
icon: "http://www.merriam-webster.com/favicon.ico",
description: "Searche Merriam-Webster Dictionary for {QUERY}.",
help: "Merriam-Webster Dictionaryに従え.",
preview: function(pblock, directObject) {
var searchTerm = directObject.text;
pblock.innerHTML = "Search Merriam-Webster Dictionary for your word. ";
if(searchTerm != ""){
package org.testtomcat;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.naming.InitialContext;
package org.testinterceptor;
import java.lang.reflect.Method;
import java.util.Map;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.jdbc.pool.ConnectionPool;
import org.apache.tomcat.jdbc.pool.JdbcInterceptor;
import org.apache.tomcat.jdbc.pool.PoolProperties.InterceptorProperty;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Main {
/**
* @param args
*/
a,b,c,d,e
test,test2,test3,test4,test5
a,b,c,d,e
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
import gym
env = gym.make('CartPole-v0')
env.reset()
for _ in range(1000):
env.render()
env.step(env.action_space.sample())
@onelittlenightmusic
onelittlenightmusic / file0.txt
Last active August 21, 2016 14:47
bash on Windowsでjupyterを動かすときにちょっとハマった ref: http://qiita.com/onelittlenightmusic/items/2d012fbd04deb14f04c0
$ jupyter notebook
[W 23:02:29.351 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 23:02:29.398 NotebookApp] The port 3000 is already in use, trying another port.
[I 23:02:29.398 NotebookApp] The port 3001 is already in use, trying another port.
[I 23:02:29.398 NotebookApp] The port 3002 is already in use, trying another port.
[I 23:02:29.398 NotebookApp] The port 3003 is already in use, trying another port.
・・・
//Script here
//Alert(test);
var parsed = JSON.parse(var_settings);
for(var i = 0; i < parsed.data.length; i++) {
//Alert(one_data.name);
var one_var = parsed.data[i];
name = one_var.name;
type = one_var.type;
value = one_var.value;
//Script here
var row = createRowCopy(getOutputRowMeta().size());
for(var i = 0; i < parsed.data.length; i++) {
//Alert(one_data.name);
var one_var = parsed.data[i];
name = one_var.name;
type = one_var.type;
value = one_var.value;