This file contains hidden or 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 python2 | |
# vim: set fileencoding=utf8 | |
import re, sys, os, random, time, json, logging, argparse, requests, urllib | |
from mutagen.id3 import ID3,TRCK,TIT2,TALB,TPE1,APIC,TDRC,COMM,TPOS,USLT | |
from HTMLParser import HTMLParser | |
parser = HTMLParser() | |
s = u'\x1b[1;%dm%s\x1b[0m' # terminual color template |
This file contains hidden or 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
$(function() { | |
var n = 10; // 初期状態で表出したいlistの個数 | |
var contents = '.list li'; // 対象のlist | |
var trigger = '.trigger'; // スイッチ | |
// listがn個以上ある場合 | |
if ($(contents).length > n) { | |
// server sideでやって欲しい | |
// span は追加してもた | |
if ($(contents).eq(n).is(":hidden")) { |
This file contains hidden or 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. スクトプトは随時使い回したり書き換えたりして使っていた | |
# | |
# という状態であったと推測する。中小規模自社サービスとかやってるところとかもわり | |
# とこうなんじゃないですかね。ホスティングでそのレベルでいい加減なのどうなんでし | |
# ょうか。 |