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
#!/bin/sh | |
# | |
#---------------------------------------------------------------------------------------- | |
# Jenkins サーバへスクリプトの実行結果を通知するためのスクリプトです。 | |
# | |
# 以下のスクリプトを元にして、パイプで標準出力の結果を受け取るように修正しました | |
# https://github.com/akiko-pusu/misc/blob/master/misc/jenkins_wrapper.sh | |
# | |
# Usage: | |
# SCRIPT | jenkins_report.sh ${PIPESTATUS[0]} <jenkins_url> <job_name> |
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
require 'open-uri' | |
require 'uri' | |
require 'rss' | |
def rss_url(fqdn, job_name, kind) | |
File.join(fqdn, 'job', job_name, kind) | |
end | |
def latest_title(rss_url) | |
rss = open(rss_url){ |file| RSS::Parser.parse(file.read) } |
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 python | |
# -*- coding:utf-8 -*- | |
""" | |
evnt2org | |
convert html text that is exported from Evernote to org-mode | |
""" | |
import urllib |
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
--- a/src/youtube_video_url.cc 2011-08-09 21:33:43.000000000 +0900 | |
+++ b/src/youtube_video_url.cc 2011-08-09 21:32:44.000000000 +0900 | |
@@ -47,7 +47,7 @@ | |
#define YOUTUBE_URL_PARAMS_REGEXP "var swfHTML.*\\;" | |
#define YOUTUBE_URL_LOCATION_REGEXP "\nLocation: (http://[^\n]+)\n" | |
#define YOUTUBE_URL_WATCH "http://www.youtube.com/watch?v=" | |
-#define YOUTUBE_URL_GET "http://www.youtube.com/get_video?" | |
+#define YOUTUBE_URL_GET "http://www.youtube.com/get_video?asv=3&" | |
#define YOUTUBE_URL_PARAM_VIDEO_ID "video_id" | |
#define YOUTUBE_URL_PARAM_T_REGEXP ".*&t=([^&]+)&" |
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
SELECT | |
max(users.lastname) || max(users.firstname) as name, sum(to_number(value, '0000000000000')), | |
max(custom_fields.name) as custom_field_name | |
FROM time_entries | |
INNER JOIN (SELECT * FROM custom_values WHERE customized_type = 'TimeEntry') custom_values | |
ON time_entries.id = customized_id | |
INNER JOIN custom_fields | |
ON custom_fields.id = custom_values.custom_field_id | |
INNER JOIN users | |
ON users.id = time_entries.user_id |
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
var hoge = $('.list').children('thead').find('th')[1]; | |
$(hoge).insertAfter($('.list').children('thead').find('th')[2]); | |
$.each($('tr.user'), function(){ | |
$($(this).find('td')[1]).insertAfter($(this).find('td')[2]) | |
}); |
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
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
<!-- | |
$(function(){ | |
$("input.input-hint").fillHint(); | |
}); |
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 python | |
# -*- coding:utf-8 -*- | |
import commands | |
files = commands.getoutput('ls -1 *.mp4').splitlines() | |
for afile in files: | |
print afile | |
chapter = afile.replace('.mp4','') + '_chapters.xml' | |
print chapter |
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
製品名: MacBook Pro 13インチ | |
オプション: | |
2.4GHz Intel Core 2 Duo | |
4GB 1066MHz DDR3 SDRAM - 2x2GB | |
250GB Serial ATA Drive @ 5400 rpm | |
SuperDrive 8x (DVD±R DL/DVD±RW/CD-RW) | |
バックライトキーボード (US) + 製品マニュアル | |
アクセサリキット |
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 python | |
# -*- coding:utf-8 -*- | |
import commands | |
import os | |
import re | |
import sys | |
dirnum= sys.argv[1] | |
os.chdir('memo%s' % (dirnum)) |