- かおり (赤)
- えりこ (青/黄)
- あさみ (桃)
- みなん (緑)
- まいか (紫)
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
//NSMutableArray* momoclo = [NSMutableArray initWithObjects:@"reni", @"kanako", @"siori", @"ayaka", @"momoka", nil]; | |
NSMutableArray* momoclo = MARRAY(@"reni", @"kanako", @"siori", @"ayaka", @"momoka"); | |
//NSString* foo = [NSString stringWithFormat:@"%@%@", @"momota", @"kanako"]; | |
NSString* foo = FORMAT(@"%@ %@", @"momota", @"kanako"); |
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
@interface UIColor (momocloZ) | |
+ (UIColor*)reni; | |
+ (UIColor*)kanako; | |
+ (UIColor*)shiori; | |
+ (UIColor*)ayaka; | |
+ (UIColor*)momoka; | |
@end | |
#define RGB255(R,G,B) ([UIColor colorWithRed:R/255.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
$(function() { | |
$("ul.attr-list").each(function(i) { | |
var attr_list = $(this); | |
var json = {}; | |
//var contries = $(this).children("li"); | |
var prev_country_name = null; | |
$(this).children().each(function(i) { | |
if ($(this).get(0).tagName == "LI") { | |
json[$(this).html()] = {}; | |
prev_country_name = $(this).html(); |
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 node | |
// csv_to_dot.js | |
var argv = require("optimist").argv; | |
var fs = require("fs"); | |
var from_file = argv["_"][0]; | |
console.log("digraph G {\n"); | |
fs.readFileSync(from_file, "utf8") |
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
(defun random-select (users tickets) | |
(if (> (length users) (length tickets)) | |
(error "cannot allocate tickets for the users because of the number of users exceeds the number of tickets") | |
(progn | |
(let ((sorted-tickets (sort tickets #'<))) | |
(let ((enough-tickets (subseq sorted-tickets 0 (length users))) | |
(tickets-result nil)) | |
(dolist (user users) | |
(let* ((random-ticket-index (random (length enough-tickets))) | |
(random-ticket (elt enough-tickets random-ticket-index))) |
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
var a = awesome(); | |
var b = awesomePost(); | |
console.log("cool!"); |
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
聴きとってみた | |
わからないところは? | |
自信は、ない | |
アイスクリーム on 抹茶パフェ 愛は何味トッピング | |
金曜にママが言ってたこと | |
要するに人を大事にしろってことでしょ | |
なんだってテレビじゃいじめだ何だ |
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 | |
BRANCH=$(git symbolic-ref HEAD) | |
grep '^refs #[0-9]\+: ' $1 | |
if [ $? -eq 0 ]; then | |
exit | |
fi | |
ISSUE=$(echo $BRANCH | sed -e 's/^.*-id-\([0-9]*\)$/#\1/') |