Skip to content

Instantly share code, notes, and snippets.

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

noppe noppefoxwolf

🦊
きつねかわいい!!!
View GitHub Profile
// We Cannot Use "{" & "}" & ","
static NSString *_IndList[300] = {
@"⠀", @"⠁", @"⠂", @"⠃", @"⠄", @"⠅", @"⠆", @"⠇", @"⠈", @"⠉",
@"⠊", @"⠋", @"⠌", @"⠍", @"⠎", @"⠏", @"⠐", @"⠑", @"⠒", @"⠓",
@"⠔", @"⠕", @"⠖", @"⠗", @"⠘", @"⠙", @"⠚", @"⠛", @"⠜", @"⠝",
@"⠞", @"⠟",
@"⠠", @"⠡", @"⠢", @"⠣", @"⠤", @"⠥", @"⠦", @"⠧", @"⠨", @"⠩",
@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;
}
MPMediaItemArtwork *artwork = [content.mediaItem valueForProperty:MPMediaItemPropertyArtwork];
UIImage *image = [artwork imageWithSize:CGSizeMake(250,250)];
@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];
}
@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 / 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
<!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">
<script src="http://code.jquery.com/jquery.min.js"></script>
<!-- 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">
@noppefoxwolf
noppefoxwolf / FaceDetector.swift
Last active August 13, 2019 12:29
Easy use CIDetector.
//
// FaceDetector.swift
//
// Created by Tomoya Hirano on 2016/05/21.
// Copyright © 2016年 Tomoya Hirano. All rights reserved.
//
import UIKit
struct Face {
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning orpurpose.
*
* @author momocashew
*/
public class GodDrinksJava {
public static void main(String[] args) {
[General]
FileVersion=57
NumberOfJoysticks=2
NumberOfButtons=32
DisplayMode=2
UseDiagonalInput=0
UsePOV8Way=0
Threshold=20
Threshold2=20
KeySendMode=0