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?
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
{ | |
"b": "320", | |
"artist": "鈴木 陽一", | |
"genre": "Books & Spoken", | |
"album": "DUO 3.0 復習用", | |
"year": 2000, | |
"cover-art": "DUO.jpg" | |
} |
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 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 |
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 <stdio.h> | |
#define A(s) puts(s ## s); | |
int main(int argc, char *argv[]) { | |
A("a"); | |
puts("a" "a"); | |
return 0; | |
} |
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
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") |
『表現のための実践ロイヤル英文法』暗記用例文300オーディオブック紹介ページに掲載されているPDFをJSON化したものです。
詳しくは作成者のブログをご覧下さい。
なお、著作者やその代理人からの要請があれば、すぐ削除いたします。[email protected]にご連絡ください。
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
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| |
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 | |
# encoding: utf-8 | |
import json | |
import urllib | |
import urllib2 | |
import codecs | |
import time | |
from bs4 import BeautifulSoup | |
token = 'xoxp-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxx' |
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 | |
# encoding: utf-8 | |
import json | |
import urllib | |
import urllib2 | |
token = 'xoxp-xxxxxxxx-xxxxxxxx-xxxxxxx-xxxxxx' | |
bot_name = 'gunyabot' | |
class SlackClient: |
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 ruby | |
require 'date' | |
HDD_PATH = '/Volumes/HFS_disks_from_japan/mushu_avs' | |
while true do | |
d = DateTime.now | |
status = `drutil status` | |
if status =~ /^\s+Type: [-A-Z]+\s+Name: (.+)$/ |