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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
IronPython Detector | |
=================== | |
Detect the directory (or directories) where the IronPython executable(s) exist(s). | |
""" |
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
\documentclass[a4j]{jsarticle} | |
% Unicode文字を使用できるようにする | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
% 数式の記述に用いる | |
\usepackage{amsmath} | |
% PythonTeXを利用する |
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
\documentclass[a4j]{jsarticle} | |
% Unicode文字を使用できるようにする | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
% 数式の記述に用いる | |
\usepackage{amsmath} | |
% 図の埋め込みに用いる |
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>おみくじ</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="ごく単純なおみくじ。Brythonのテストとして。"> | |
<meta name="author" content="はむ吉(のんびり)"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="style.css"> |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Convert hostname (or IP address) into the name of prefecture. | |
""" | |
__author__ = "Hamukichi (Nombiri) <Twitter: @hamukichi_nbr>" | |
__version__ = "1.00" | |
__date__ = "September 13, 2013" |
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
#!D:/IronPython/ipy.exe | |
# -*- coding: utf-8 -*- | |
#D:\Source\gather_ipy_dll.py | |
#ipy.exeが存在するディレクトリ | |
IPYROOT = ur"D:\IronPython" | |
#出力するディレクトリ・ファイル名 | |
import os |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Send notification using im.kayac.com | |
""" | |
__author__ = "Hamukichi (Nombiri) <Twitter: @hamukichi_nbr>" | |
__version__ = "1.00" | |
__date__ = "September 30, 2013" |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Google Code Jam 2016 Qualification Round | |
# Problem C. Coin Jam | |
# Modules from the Python standard library. | |
import collections | |
import functools |
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 <ciso646> | |
#include <cstdlib> | |
#include <iostream> | |
#include <numeric> | |
#include <set> | |
#include <vector> | |
#include <unordered_set> | |
#include <utility> |
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
#!/usr/bin/env python3 | |
import collections | |
import requests | |
CF_ENTRYPOINT = "http://codeforces.com/api/user.rating" | |
TC_ENTRYPOINT = "http://api.topcoder.com/v2/users/{}/statistics/data/srm" | |
RatingInfo = collections.namedtuple("RatingInfo", "old new delta") |
OlderNewer