Skip to content

Instantly share code, notes, and snippets.

View noppefoxwolf's full-sized avatar
🦊
きつねかわいい!!!

noppe noppefoxwolf

🦊
きつねかわいい!!!
View GitHub Profile
@noppefoxwolf
noppefoxwolf / gist:d92eeea5c707d9cd4574
Created January 25, 2015 21:55
beatmaniaノート数と難易度
note difficult
1509 1
1260 1
1386 1
1225 1
1301 1
1116 3
1301 4
1073 2
1624 2
@noppefoxwolf
noppefoxwolf / gist:c2c5631b50311956f9f9
Last active August 29, 2015 14:14
bootstrap3にてsidebarを右側に実装するサンプル
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@noppefoxwolf
noppefoxwolf / file0.m
Created October 6, 2014 06:04
iOS8AppExtentionKeyboardで全ての文字を削除する ref: http://qiita.com/noppefoxwolf/items/93d23e142d1cf1255c1f
for (int i=0; i<self.textDocumentProxy.documentContextBeforeInput.length+1; i++) {
[self.textDocumentProxy deleteBackward];
}
MPMediaItemArtwork *artwork = [content.mediaItem valueForProperty:MPMediaItemPropertyArtwork];
UIImage *image = [artwork imageWithSize:CGSizeMake(250,250)];
@noppefoxwolf
noppefoxwolf / file0.m
Created February 1, 2014 19:36
2色の相対から自動的にステータスバーの色を選出 ref: http://qiita.com/noppefoxwolf/items/56c9108c2554c594b151
-(UIStatusBarStyle)statusbarstyleWithBaseColor:(UIColor*)baseColor ButtonColor:(UIColor*)buttonColor{
CGFloat b1,b2;
[baseColor getHue:nil saturation:nil brightness:&b1 alpha:nil];
[buttonColor getHue:nil saturation:nil brightness:&b2 alpha:nil];
return b1>b2?UIStatusBarStyleLightContent:UIStatusBarStyleDefault;
}
// We Cannot Use "{" & "}" & ","
static NSString *_IndList[300] = {
@"⠀", @"⠁", @"⠂", @"⠃", @"⠄", @"⠅", @"⠆", @"⠇", @"⠈", @"⠉",
@"⠊", @"⠋", @"⠌", @"⠍", @"⠎", @"⠏", @"⠐", @"⠑", @"⠒", @"⠓",
@"⠔", @"⠕", @"⠖", @"⠗", @"⠘", @"⠙", @"⠚", @"⠛", @"⠜", @"⠝",
@"⠞", @"⠟",
@"⠠", @"⠡", @"⠢", @"⠣", @"⠤", @"⠥", @"⠦", @"⠧", @"⠨", @"⠩",