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
| // The biggest 64bit prime | |
| #define P 0xffffffffffffffc5ull | |
| #define G 5 | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <assert.h> | |
| #include <stdlib.h> | |
| // calc a * b % p , avoid 64bit overflow |
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
| // | |
| // UIView+frameAdjust.h | |
| // fenbi | |
| // | |
| // Created by Tang Qiao on 12-5-31. | |
| // Copyright (c) 2012年 Fenbi.com . All rights reserved. | |
| // | |
| #import <Foundation/Foundation.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
| LOCAL_PATH := $(call my-dir) | |
| include $(CLEAR_VARS) | |
| LOCAL_MODULE := game_shared | |
| LOCAL_MODULE_FILENAME := libgame | |
| #traverse all the directory and subdirectory | |
| define walk |
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
| #--- | |
| # iPIN - iPhone PNG Images Normalizer v1.0 | |
| # Copyright (C) 2007 | |
| # | |
| # Author: | |
| # Axel E. Brzostowski | |
| # http://www.axelbrz.com.ar/ | |
| # axelbrz@gmail.com | |
| # | |
| # References: |
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
| // Consider "applicationFrame" also with status bar. | |
| CGRect screenBounds = [[UIScreen mainScreen] bounds]; | |
| if (screenBounds.size.height == 568) { | |
| // code for 4-inch screen | |
| } else { | |
| // code for 3.5-inch screen | |
| } | |
| //or |
NewerOlder