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 com.example.(略).capture; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.CompressFormat; | |
import android.os.Environment; | |
import android.os.Handler; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.widget.Button; | |
import android.view.View; |
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
/* フーリエ変換で見る画像解像度 | |
* 参考: | |
* 「FFT (高速フーリエ・コサイン・サイン変換) の概略と設計法」 | |
* http://www.kurims.kyoto-u.ac.jp/~ooura/fftman/index.html | |
* 「大浦版FFTのJava移植」 | |
* http://hp.vector.co.jp/authors/VA046927/fft4gjava.html | |
* 「第11章 周波数で処理する」 | |
* http://pokosho.com/t/image/11/ | |
* 「備忘録: 画像処理での二次元フーリエ変換」 | |
* http://bebolog.blogspot.jp/2014/12/blog-post_15.html |
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
/* fft4g.cのC++移植版 | |
* 元ソース: | |
* 京都大学助教授の大浦拓哉氏がフリーソフトとして提供する | |
* 「汎用 FFT (高速 フーリエ/コサイン/サイン 変換) パッケージ」 | |
* (http://www.kurims.kyoto-u.ac.jp/~ooura/fft-j.html) | |
* のfft4g.c | |
* 概要: | |
* データ数N(2の冪乗)の1次元データに対して、離散フーリエ・コサイン・サイン変換を行う。 | |
* 内部でテーブルを利用するタイプで、インプレース型なので破壊的関数である。 | |
* 関数の使い方: |
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 url = location.href; | |
var pos_id = url.indexOf('im'); | |
var id = url.substring(pos_id + 2, url.length); | |
location.href = 'http://seiga.nicovideo.jp/image/source/' + id; | |
var image_url = location.href; | |
image_url = image_url.replace('/o/', '/priv/'); | |
location.href = image_url; | |
})(); |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
int main(int argc, char *argv[]){ | |
if(argc < 2) return 1; | |
const rsize_t N = std::stoi(argv[1]); | |
std::vector<int> data(N); | |
for(rsize_t i = 0; i < N; ++i){ | |
data[i] = N - i; |
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
/* マヨイドーロを解くプログラム by YSR | |
* ・割とゴリ押しです | |
* ・BigDecimalという名称はJavaを意識しました | |
*/ | |
#include <algorithm> | |
#include <iomanip> | |
#include <iostream> | |
#include <string> | |
#include <tuple> |
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 'open-uri' | |
require 'nokogiri' | |
user = 'YSR' #検索したいユーザ名 | |
1.upto(31){|i| | |
url = 'http://abc' + sprintf('%03d', i) + '.contest.atcoder.jp/submissions/all?user_screen_name=' + user | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset |
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
m_stone ^= mov | rev; | |
y_stone ^= rev; |
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 'open-uri' | |
require 'zip' | |
# 検索する終端(最大130000まで) | |
max_files = 5 | |
# 検索したい文字列 | |
str = '1234' | |
const_number = 100000000 #1億 | |
txt_data = '' |
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
○アイドル一覧(ファイル上では改行区切り) | |
しまむらうづき, なかのゆか, みずもとゆかり, ふくやままい, しいなのりこ, いまいかな, もちだありさ, みむらかなこ, | |
おくやまさおり, まなかみさと, こひなたみほ, おがたちえり, いがらしきょうこ, やなせみゆき, まえかわみく, | |
あかにしえりか, まつばらさや, あいはらゆきの, みやもとふれでりか, こばやかわさえ, さいおんじことか, ふたばあんず, | |
やおふぇいふぇい, ももいあずき, すずみやせいか, つきみやみやび, ひょうどうれな, どうみょうじかりん, やなぎきよら, | |
はらだみよ, しぶやりん, くろかわちあき, まつもとさりな, きりのあや, たかはしれいこ, あいかわちなつ, かわしまみずき, | |
かみやなお, かみじょうはるな, あらきひな, とうごうあい, ただりいな, みずきせいら, ささきちえ, へれん, まつながりょう, | |
こむろちなみ, たかみねのあ, たかがきかえで, かんざきらんこ, いじゅういんめぐみ, ひいらぎしの, ほうじょうかれん, | |
けいと, せなしおり, あやせほのか, さじょうゆきみ, しのはられい, ふるさわよりこ, ほんだみお, たかもりあいこ, | |
なみきめいこ, りゅうざきかおる, きむらなつき, まつやまくみこ, さいとうようこ, さわだまりな, やぐちみう, あかぎみりあ, |