This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.muziyoshiz.word2vec | |
import org.apache.spark._ | |
import org.apache.spark.rdd._ | |
import org.apache.spark.SparkContext._ | |
import org.apache.spark.mllib.feature.{Word2Vec, Word2VecModel} | |
object Word2VecModelGenerator { | |
def main(args: Array[String]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
['Personal/basicInfo', 'Area/captureInfo', 'TcBook/info', 'EquipBook/info', 'Campaign/history', 'Campaign/info', 'Campaign/present', 'CharacterList/info', 'EquipList/info', 'Quest/info', 'Event/info'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var a=new Date,e=[a.getFullYear(),("0"+(a.getMonth()+1)).slice(-2),("0"+a.getDate()).slice(-2),"_",("0"+a.getHours()).slice(-2),("0"+a.getMinutes()).slice(-2),("0"+a.getSeconds()).slice(-2)].join(""),f=["Personal/basicInfo","TcBook/info","CharacterList/info"];window.location.href.match(/^https:\/\/kancolle-arcade.net\/ac\/#\/(area|list|pictureBook)/)?f.forEach(function(a){var b=new XMLHttpRequest,g=a.replace("/","_")+"_"+e+".json";b.open("GET","https://kancolle-arcade.net/ac/api/"+a);b.setRequestHeader("X-Requested-With","XMLHttpRequest");b.responseType="blob";b.onload=function(){if(200===b.status){var d=new Blob([b.response]);if(window.navigator.msSaveBlob)window.navigator.msSaveBlob(d,g);else{var d=(window.URL||window.webkitURL).createObjectURL(d),c=document.createElement("a");document.body.appendChild(c);c.download=a.replace("/","_")+"_"+e+".json";c.href=d;c.click();document.body.removeChild(c)}}else a===f[0]&&alert("Admiral Stats \u30a8\u30af\u30b9\u30dd\u30fc\u30bf(JS\u7248) v1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require 'json' | |
require 'csv' | |
JSON_FILE = 'swim_com.json' | |
CSV_FILE = 'swim_com.csv' | |
class Workout | |
attr_accessor :name, :date, :id, :note, :distance, :duration, :achievement, :device, :pace, :url | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<!-- job name --> | |
<key>Label</key> | |
<string>jp.muziyoshiz.embulk-healthplanet</string> | |
<key>WorkingDirectory</key> | |
<string>/Users/myoshiz/job/embulk-healthplanet</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
require 'rspec/core/rake_task' | |
# Sample of Ansible groups and hosts | |
# http://docs.ansible.com/ansible/intro_inventory.html | |
groups = {} | |
groups["webservers"] = [ "foo.example.com", "bar.example.com" ] | |
groups["dbservers"] = [ "one.example.com", "two.example.com", "three.example.com" ] | |
task :spec => 'spec:all' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
require 'rspec/core/rake_task' | |
# Sample of Ansible groups and hosts | |
# http://docs.ansible.com/ansible/intro_inventory.html | |
groups = {} | |
groups["webservers"] = [ "foo.example.com", "bar.example.com" ] | |
groups["dbservers"] = [ "one.example.com", "two.example.com", "three.example.com" ] | |
task :spec => 'spec:all' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in: | |
type: file | |
path_prefix: /Users/myoshiz/devel/try1/csv/sample_ | |
decoders: | |
- {type: gzip} | |
parser: | |
charset: UTF-8 | |
newline: CRLF | |
type: csv | |
delimiter: ',' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Embulk | |
module Filter | |
class MyappFilterPlugin < FilterPlugin | |
Plugin.register_filter("myapp", self) | |
def self.transaction(config, in_schema, &control) | |
yield({}, in_schema) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-03-14 20:12:22,123 [ERROR] Book reader error | |
Exception in thread "main" java.lang.IllegalStateException: A book has a null property | |
at com.example.myproject.Author.getBookIds(Author.java:38) | |
at com.example.myproject.Bootstrap.main(Bootstrap.java:14) | |
Caused by: java.lang.NullPointerException | |
at com.example.myproject.Book.getId(Book.java:22) | |
at com.example.myproject.Author.getBookIds(Author.java:35) | |
... 1 more | |
2015-03-14 20:13:34,456 [INFO] Login (userId=12345) | |
2015-03-14 20:13:41,678 [INFO] Login (userId=2345) |