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-----b | |
/| /| | |
c-+---d | | |
| e---|-f | |
|/ |/ | |
g-----h | |
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
using System.Linq; | |
using System.Collections.Generic; | |
namespace ExMath { | |
/// <summary> | |
/// Lottery random. | |
/// </summary> | |
public class LotteryRandom <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
#!/bin/sh | |
git pull | |
make | |
./bin/testApp |
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
{ | |
"LV":3, | |
"HP":1, | |
"MP":1, | |
"sleepy":false, | |
"hungry":true, | |
"status":"カレー食べたい" | |
} |
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
echo "some long command" && echo 'display notification "Finished backup" with title "Terminal"' | osascript |
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
#import <Cocoa/Cocoa.h> | |
@interface NSArrayController (Addition) | |
- (void) removeAllObjects; | |
@end |
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
double length = 0.1; | |
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); | |
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(length * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ | |
// private method | |
AudioServicesStopSystemSound(kSystemSoundID_Vibrate); | |
}); |
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
// | |
// LittleCaffeine.h | |
// | |
// This is tiny utility inspired by Caffeine http://lightheadsw.com/caffeine/ | |
// | |
// Created by Koki Ibukuro on 2014/04/01. | |
// Copyright (c) 2014年 Koki Ibukuro. All rights reserved. | |
// | |
#pragma once |
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
// .... | |
void d_soundfile_setup(void); | |
void d_ugen_setup(void); | |
// こんなかんじで | |
void your_extended_setup(void); | |
// .... |