Skip to content

Instantly share code, notes, and snippets.

View laprasdrum's full-sized avatar
🥁
(drumroll)

laprasdrum laprasdrum

🥁
(drumroll)
View GitHub Profile
@interface HogeViewController : UIViewController <UIAccelerometerDelegate>{
...
@laprasdrum
laprasdrum / 2dimension_array
Created April 23, 2013 11:33
2 dimension array with range check
#include <iostream>
using namespace std;
class safetyArray {
char **array_;
int row_size_;
int column_size_;
public:
safetyArray(int row_size, int column_size);
@laprasdrum
laprasdrum / Blockdiag Error Code(class)
Last active December 15, 2015 12:39
Error code for blockdiag with class definition
blockdiag {
default_fontsize = 18;
orientation = portrait;
class page [shape = "roundedbox",textcolor = #ffffff,color = #1f497d];
class popup [shape = "roundedbox",textcolor = #ffffff,color = #4bacc7];
class condition[shape = "diamond",textcolor = #000000];
// node description
a [class = "page", label = "TOP\nhogehoge"];
d [class = "popup"];
@laprasdrum
laprasdrum / cdIphoneSimulator
Created November 23, 2012 07:53
iPhone SimulatorのPath忘れる自分のためのスクリプト
#!/bin/sh
cd ~/Library/Application\ Support/iPhone\ Simulator/
@laprasdrum
laprasdrum / hideHiddenFilesInFinder
Created October 1, 2012 06:02
Finderでの隠しファイルの表示/非表示
#!/bin/sh
defaults delete com.apple.finder AppleShowAllFiles
killall Finder
@laprasdrum
laprasdrum / YMGraphCell.h
Created June 19, 2012 05:57
UIKitの遅延描画(改)
#import <UIKit/UIKit.h>
@interface YMGraphCell : UIView
// オーバーライドして、遅延描画
- (void)drawRectAsync:(CGRect)rect andContext:(CGContextRef)context;
@end