Skip to content

Instantly share code, notes, and snippets.

View mizucoffee's full-sized avatar
🌊

GOTO Ritsuki mizucoffee

🌊
View GitHub Profile
@mizucoffee
mizucoffee / DataRead_Haiku.java
Last active August 29, 2015 14:17
プログラミング生放送 俳句コンテスト 外部ファイル読み込み ver.
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Random;
import java.io.File;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;
public class DataRead_Haiku {
static int n = 0;
@mizucoffee
mizucoffee / Short_Haiku.java
Last active August 29, 2015 14:17
プログラミング生放送 俳句コンテスト Short ver.
import java.util.Random;
public class Short_Haiku {
public static void main(String[] args) throws Exception {
String data = "プロ生ちゃん / プログラマーの/  癒しの子 ";
String[] strAry = data.split("/");
for (int i = 0; i < 7; i++){
System.out.print(strAry[2].substring(i,i+1));
System.out.print(strAry[1].substring(i,i+1));
@mizucoffee
mizucoffee / Array_Haiku.java
Last active August 29, 2015 14:17
プログラミング生放送 俳句コンテスト Array ver.
import java.util.Random;
public class Array_Haiku {
public static void main(String[] args) throws Exception {
int num = 6;//俳句の数
int ran = new Random().nextInt(num);//変数ranにnumの数の乱数を振る
String[] data = new String[num];//配列の定義
data[0] = "プログラマ/いのちけずって/今日も行く";//配列の中に、内容を入力。"/"で分ける
The MIT License (MIT)
Copyright (c) 2015 Ritsuki Goto
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@mizucoffee
mizucoffee / 可否.txt
Created May 19, 2015 09:39
Adobe CS6 MasterCollection スプラッシュ差し替え可否。および、その場所。
o Ad Acrobat Distiller /Applications/Adobe Acrobat X Pro/Acrobat Distiller.app/Contents/Resources/AD_SplashScreen_j.png
x Ap Adobe Acrobat Pro
x Ae Adobe After Effects CS6
x Au Adobe Audition CS6
- Br Adobe Bridge CS6
o Dw Adobe Dreamweaver CS6 /Applications/Adobe Dreamweaver CS6/Adobe Dreamweaver CS6.app/Contents/Resources/png/splashNormal.png
o En Adobe Encore CS6 /Applications/Adobe Encore CS6/Adobe Encore CS6.app/Contents/Resources/png/en_splash.png
- Em Adobe Extension Manager CS6
o Fb Adobe Flash Builder 4.6 /Applications/Adobe Flash Builder 4.6/assets/fb_splash_premium.png
o Fw Adobe Fireworks CS6 /Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app/Contents/Resources/IDPNG_Splash.png
@mizucoffee
mizucoffee / nicolog.py
Last active September 1, 2015 16:28
Agrarianのコメ記録
# coding:cp932
import os
import cookielib
import urllib
import urllib2
import socket
import struct
import re
import requests
@mizucoffee
mizucoffee / Data.csv
Created November 15, 2015 13:10
Test!!!
すぱこー Ver. 41 http://i0.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/11/151015.png
すぱこー Ver. 40 http://i2.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/11/151001.png
すぱこー Ver. 39 http://i0.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/10/150915.png
すぱこー Ver. 38 http://i1.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/10/150901.png
すぱこー Ver. 37 http://i1.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/08/150815.png
すぱこー Ver. 36 http://i1.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/07/150715.png
すぱこー Ver. 35 http://i2.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/06/150615.png
すぱこー Ver. 34 http://i0.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/06/150601.png
すぱこー Ver. 33 http://i1.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/05/150515.png
すぱこー Ver. 32 http://i1.wp.com/pronama.azurewebsites.net/wp-content/uploads/2015/05/150501.png
@mizucoffee
mizucoffee / GoogleAPI_post.rb
Created April 1, 2016 14:24
GoogleAPIをRubyでPostで叩いてトークンとか取得する
require 'sinatra'
require 'sinatra/reloader'
require 'net/http'
require 'uri'
require 'json'
#この方法だと1人しか管理できない
client_id = 'XXX.googleusercontent.comみたいなclient_id'
client_secret = "client_secret"
@mizucoffee
mizucoffee / ts.sh
Last active October 27, 2016 07:08
突然の死ジェネレータ
#!/bin/bash
#####################################################
# _人人人人人人_ #
# > 突然の死 < ジェネレータ(コマンドライン版) #
#  ̄Y^Y^Y^Y^Y ̄ #
# #
# by @kawakawaritsuki #
# みずこーひー #
#####################################################
@mizucoffee
mizucoffee / monitoring.sh
Created November 5, 2016 12:27
Chinachuで自動エンコード(監視型)
#!/bin/bash
# /mnt/video1 recordedフォルダ
# /mnt/video2 エンコード先フォルダ
while true
do
for file in `\find /mnt/video1 -maxdepth 1 -type f`; do
cat /mnt/video2/data.csv | grep -F $file