Skip to content

Instantly share code, notes, and snippets.

View isaoeka's full-sized avatar
:octocat:
Hi

Isao Kono isaoeka

:octocat:
Hi
View GitHub Profile
import Foundation
/// - Note: 素数とは 「1と自分自身以外に約数を持たない数」、つまり約数が2つになる数
// This code is simple but slow implementation
func isPrimeNumber(_ number:Int) -> Bool {
guard number > 0 else { return false }
let num = number
var yakusuu: Int = 0
// MARK: - tmp impl
// import FirebaseRemoteConfig
protocol RemoteConfigResult {
associatedtype ResultType
}
struct KeyType<T>: RemoteConfigResult {
typealias ResultType = T
bool HelloWorld::init()
{
if (!Layer::init()) {
return false;
}
Size visibleSize = Director::getInstance()->getVisibleSize();
// Data
@isaoeka
isaoeka / github.css
Last active August 29, 2015 14:19 — forked from theconektd/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@isaoeka
isaoeka / github.css
Last active August 29, 2015 14:19 — forked from theconektd/github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
#もばこんっ成果報告
- 4/15
- heroku で Hello World (好きな言語でよろ) node.jsでおk。
- heroku で Perl Hello World できました、おk。
- heroku で MySQL Hello World <---イマココ amon2でmysql使う感じで進めます。
- heroku で Amon2動かしたWebアプリつくってみてちょ <---イマココ
@isaoeka
isaoeka / gist:8107988
Created December 24, 2013 02:28
arcのフラグがあるかチェック。
#if ! __has_feature(objc_arc)
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
#endif
@isaoeka
isaoeka / gist:7982351
Last active December 31, 2015 11:49
UISearchDisplayControllerの所で少し詰まった記憶があるので、memo
UISearchDisplayController *searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:_sb contentsController:self];
UIImageView *backgroundImage;
if ([[UIScreen mainScreen] applicationFrame].size.height > 460 ){
backgroundImage = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"b1_bg_i5.png"]] autorelease];
}else{
backgroundImage = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"b1_bg.png"]] autorelease];
}
backgroundImage.frame = [[UIScreen mainScreen] bounds];