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 "github_api" | |
# スター数を知りたいリポジトリ user/name | |
repos = %W{ | |
allaboutapps/A3GridTableView | |
AlanQuatermain/AQGridView | |
norsez/BDDynamicGridViewController | |
hirohisa/BrickView | |
phranck/CNGridView | |
gmoledina/GMGridView |
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 ruby -w -n -i -F, -l -a | |
BEGIN { $, = ';' } | |
print $., *$F unless $F[5] != 'Suriname' || /^# / |
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 ruby -w | |
# This tranforms input files that look like CSV and strips comments and | |
# filters out every line not about "Suriname". | |
# Define some basic variables that control how records and fields | |
# are defined. | |
input_record_separator = "\n" | |
field_separator = ',' | |
output_record_separator = "\n" | |
output_field_separator = ';' |
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
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom" | |
xmlns:app="http://www.w3.org/2007/app"> | |
<link rel="first" href="https://blog.hatena.ne.jp/hatena_id/blog_id.hatenablog.com/atom/entry" /> | |
<link rel="next" href="https://blog.hatena.ne.jp/hatena_id/blog_id.hatenablog.com/atom/entry?page=2" /> | |
<title>ブログタイトル</title> | |
<link rel="alternate" href="http://blog_id.hatenablog.com/"/> | |
<updated>2013-08-27T15:17:06+09:00</updated> | |
<author> | |
<name>hatena_id</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
(* | |
このスクリプトの改造、再配布OK | |
*) | |
property theNoteBookName : "209.マンダラート" -- 保存するノートブック名 | |
property htmlTemplate : "<html> | |
<head> | |
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> | |
<title><<title>></title> |
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 | |
SDK="iphoneos" | |
CONFIGURATION="Release" | |
PROJECT_FILE="SampleApp.xcodeproj" | |
TARGET_NAME="SampleApp" | |
SCHEME_NAME="SampleApp" | |
PRODUCT_NAME="SampleApp" | |
IPA_FILE_NAME="SampleApp" | |
OUT_APP_DIR="out" |
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 "Nokogiri" | |
xml = File.open("./data.xml").read | |
doc = Nokogiri.XML(xml) | |
def convert_to_markdown(mw) | |
mw.gsub!(/^# /, '1. ') | |
mw.gsub!(/^\* /, '- ') | |
mw.gsub!(/^====(.+)====$/, '#### \1') | |
mw.gsub!(/^===(.+)===$/, '### \1') |
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
# script for incrementing short version string for Xcode. | |
InfoPlist="${SRCROOT}/${INFOPLIST_FILE}" | |
buildNumber=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $InfoPlist` | |
buildNumber=`echo $buildNumber + 1.0 | bc` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $InfoPlist | |
vvv=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $InfoPlist` | |
mm=`echo $vvv | cut -d . -f 1,2` | |
last=`echo $vvv | cut -d . -f 3` |