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
// data source | |
var book = SpreadsheetApp.openById('xxxxxxxx'); | |
var sheet = book.getSheets()[0]; | |
function doGet() { | |
var app = UiApp.createApplication(); | |
app.add(app.createLabel('掲示板へようこそ')); | |
// form | |
var panel = app.createVerticalPanel().setStyleAttribute('border', 'solid 2px #000000'); |
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 | |
if ARGV[0] != nil | |
if File.exists?(ARGV[0]) | |
if FileTest.directory?(ARGV[0]) | |
path = ARGV[0] | |
else | |
abort ARGV[0] + " is not a directory." | |
end | |
else |
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
#! /bin/bash | |
source=$1 | |
path="${source}_icons" | |
mkdir -p $path | |
sips --resampleWidth 57 --out $path/Icon.png $source # 57 x 57 for iPhone non-Retina iOS6 App | |
sips --resampleWidth 114 --out $path/Icon@2x.png $source # 114 x 114 for iPhone Retina iOS6 App | |
sips --resampleWidth 72 --out $path/Icon-72.png $source # 72 x 72 for iPad non-Retina iOS6 App |
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
import Cocoa | |
var a = ["ボ","ン","ジョ","ヴィ"] | |
var c = 0, j = false, b = false | |
while(true) { | |
var r1 = arc4random() % 4 | |
var r2 = arc4random() % 4 | |
print((0 < c++ ? "・" : "") + a[Int(r1)] + a[Int(r2)]) | |
if !j && !b { | |
if r1 == 2 && r2 == 1 { | |
j = true |
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
- iphone_x_display_kit_mask.png | |
- 1,125 x 2,436 | |
- 458 ppi | |
- iphone_x_display_kit_clip.png | |
- 1,125 x 2,436 | |
- 458 ppi | |
- iphone_x_display_kit_border.png | |
- 1,129 x 2,440 |
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/ruby | |
# brew install tesseract | |
# brew install pngpaste | |
require 'tempfile' | |
loop do | |
Tempfile.open do |img| | |
if system("pngpaste '#{img.path}' 2> /dev/null") | |
Tempfile.open do |res| |
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 osascript -l JavaScript | |
var display = 'Color LCD'; | |
var reso = '1792x1120'; | |
var rate = '60.0 Hz'; | |
var retina = true; | |
var params = [reso, rate, (retina ? 'Retina' : 'non-Retina')] | |
Application('Display Menu').selectResolution( | |
params.join(' '), |