『表現のための実践ロイヤル英文法』暗記用例文300オーディオブック紹介ページに掲載されているPDFをJSON化したものです。
詳しくは作成者のブログをご覧下さい。
なお、著作者やその代理人からの要請があれば、すぐ削除いたします。[email protected]にご連絡ください。
#!/usr/bin/env python | |
# encoding: utf-8 | |
import json | |
import urllib | |
import urllib2 | |
import codecs | |
import time | |
from bs4 import BeautifulSoup | |
token = 'xoxp-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxx' |
def decode_Vigenere(keyword, source) | |
s = 'KRYPTOSABCDEFGHIJLMNQUVWXZ' | |
t = [] | |
keyword.each_char {|c| | |
i = s.index(c) | |
t << s[i..-1] + s[0...i] | |
} | |
r = [] | |
d = 0 | |
source.each_char.with_index {|c, i| |
『表現のための実践ロイヤル英文法』暗記用例文300オーディオブック紹介ページに掲載されているPDFをJSON化したものです。
詳しくは作成者のブログをご覧下さい。
なお、著作者やその代理人からの要請があれば、すぐ削除いたします。[email protected]にご連絡ください。
PROJECT(hello) | |
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | |
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules) | |
SET(PROJECT_BINARY_DIR build) | |
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) | |
SET(CMAKE_C_FLAGS "-std=c99 -Wall") | |
IF(APPLE) | |
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -framework Foundation") |
#include <stdio.h> | |
#define A(s) puts(s ## s); | |
int main(int argc, char *argv[]) { | |
A("a"); | |
puts("a" "a"); | |
return 0; | |
} |
How to replace text nodes in HTML to HTML nodes like the question in stackoverflow: “jQuery way” to replace just a text node with a mix of HTML and text?
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'xcodeproj' | |
# Add compiler flags to "Build Phases > Compile Sources" | |
def add_compiler_flags(xcproj, flags) | |
xcproj.targets.each do |target| | |
target.source_build_phase.files_references.each do |fileref| | |
# You can check fileref with fileref.path or fileref.parent |
{ | |
"b": "320", | |
"artist": "鈴木 陽一", | |
"genre": "Books & Spoken", | |
"album": "DUO 3.0 復習用", | |
"year": 2000, | |
"cover-art": "DUO.jpg" | |
} |
#!/usr/bin/env python | |
import os | |
import sys | |
from mutagen.mp4 import MP4 | |
def find_all_files(directory, ext): | |
for root, dirs, files in os.walk(directory): | |
for file in files: | |
if file.lower().endswith('.' + ext): | |
yield os.path.join(root, file) |
#!/usr/bin/env ruby | |
if ARGV.length != 4 | |
puts "#{$PROGRAM_NAME} in.idx out.idx secdiff ratio" | |
puts "ex.) #{$PROGRAM_NAME} in.idx out.idx 15.34 1.01" | |
exit(1) | |
end | |
in_path, out_path, time_diff, ratio = ARGV | |
time_diff = time_diff.to_f * 1000 |