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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>test page</title> | |
<style> | |
*{ | |
font-family: "M+ 2p"; | |
} | |
</style> |
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
# encoding utf-8 | |
require 'fileutils' | |
i = 0 | |
dir = ARGV[0] || ?. | |
moved = [] | |
FileUtils.mkdir(dir + '/.dup') |
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
# encoding utf-8 | |
# example: | |
# ruby ぴょんぴょん.rb -e png -e jpg -e gif -t シャロ -t チノ | |
# : .png or .jpg or .gif, シャロ or チノ | |
# ruby ぴょんぴょん.rb -o リゼシャロ --tag シャロ リゼ -千夜 | |
# : シャロ and リゼ but 千夜, ./リゼシャロ/ will contain symlinks | |
require 'fileutils' |
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
A = [ | |
['6','千夜'] | |
['7','シャロ'] | |
['8','リゼ'] | |
['9','ココア'] | |
['0','チノ'] | |
[] | |
['i','青山'] | |
['o','マヤ'] | |
['p','メグ'] |
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
1 2 3 v 3 2 1 ^ | |
2 3 v 3 2 ^ | |
3 v 3 ^ | |
N > N ^ |
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 <algorithm> | |
#include <climits> | |
#include <cstdio> | |
#include <functional> | |
#include <iostream> | |
#include <map> | |
#include <numeric> | |
#include <string> | |
#include <utility> | |
#include <vector> |
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
$id = ARGV[0] | |
`g++ -Wall -std=c++11 -O2 #$id/program#$id.cpp` | |
1.upto 5 do |x| | |
puts "begin #{x}:\t" + File.read("#$id/2016-yo-t#$id-in#{x}.txt").lines.first.chomp + "..." | |
result = `a < #$id/2016-yo-t#$id-in#{x}.txt` | |
puts "end #{x}:\t\t" + result.lines.first.chomp + "..." | |
File.write "#$id/out#$id-#{x}.txt", result | |
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
#define times(n, i) for(auto i = remove_reference<decltype( (n) )>::type(0); i < (n); i++) | |
#define upto(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i <= (t); i++) | |
#define downto(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i >= (t); i--) | |
#define uptil(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i < (t); i++) | |
#define downtil(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i > (t); 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
* aa * b | |
* c | |
* d | |
* e * f * g | |
* h | |
* ii * j | |
* k | |
* l | |
[bad] |
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
*{ | |
font-family: serif; | |
} | |
#top{ | |
display: table; | |
} | |
ul{ | |
display: inline; |