Skip to content

Instantly share code, notes, and snippets.

View darvin's full-sized avatar

Stefan Novak darvin

View GitHub Profile
@darvin
darvin / README.md
Last active September 26, 2022 16:07 — forked from davidjrice/.travis.yml
Travis CI + iOS code signing

Build ios app for iphoneos sdk with signing using Travis ci.

  1. Export your private key that you are going to use for signing from Keychain Access app to ~/privateKey.p12 with export password __YourRandomPass22
  2. Fetch script and run it from your Travis-enabled target iOS app repo: IOS_IDENTITY_KEY=~/privateKey.p12 IOS_IDENTITY_KEY_PASSWORD=__YourRandomPass22 bash <(curl -s https://gist.githubusercontent.com/darvin/96a3af399d0b970a59b1/raw/setup_travis_ios_signing.sh)
  3. Review changes and commit. It suppose to work now.
diff --git a/cocos2d/CCLabelTTF.h b/cocos2d/CCLabelTTF.h
index 062618c..fad3df1 100644
--- a/cocos2d/CCLabelTTF.h
+++ b/cocos2d/CCLabelTTF.h
@@ -252,7 +252,7 @@
*
* @param fontFile Font file path.
*/
-+(void) registerCustomTTF:(NSString*)fontFile;
++(NSString*) registerCustomTTF:(NSString*)fontFile;
UIKit extensions
Android UIKit functionality beyond what is available in a few cases has to offer. Apportable SDK to access this feature includes extensions UIKit. This API is not available in the IOS, so we at Android and IOS to share the same code base with # ifdef ANDROID calls to UIKit extensions is recommended that you wrap.
This expansion of the document ~ /. Apportable / SDK / system / UIKit / used in the corresponding header file can be found.
UIResponder
The user presses the hardware back or menu button, the buttonUpWithEvent: UIResponder chain reaction method is called. To implement this method on the Back button until the application is not responding. You usually implement this method, you can also first responder to handle memory warning will shake and gesture events. Ensure that the implementation of canBecomeFirstResponder YES is returned. You if you do not use the root view controller, you also need to call becomeFirstResponder manually.

crisco

Code Reviews hosted In github COmments' COmmits

Installation

Usage

@darvin
darvin / gist:6248126
Created August 16, 2013 08:03
Listing of porting climbers game with Apportable SDK
unknown28cfe91db2b5:games darvin$ git clone https://github.com/haqu/climbers.git
Cloning into 'climbers'...
remote: Counting objects: 316, done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 316 (delta 39), reused 286 (delta 29)
Receiving objects: 100% (316/316), 3.00 MiB | 610 KiB/s, done.
Resolving deltas: 100% (39/39), done.
unknown28cfe91db2b5:games darvin$ cd climbers
unknown28cfe91db2b5:climbers darvin$ apportable load
Building with TARGET_ARCH_ABI:armeabi ARM_NEON:False
@darvin
darvin / blog-some.md
Last active December 18, 2015 01:49 — forked from idan/gist:3135754
title: Sample blog post date: 2012-12-23 04:34

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

This file has been truncated, but you can view the full file.
require=(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({"angular":[function(require,module,exports){
module.exports=require('WckBoe');
},{}],"WckBoe":[function(require,module,exports){
(function(global){(function browserifyShim(module, define, browserify_shim__define__module__export__) {
/**
* @license AngularJS v1.1.6-0176d67
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
@darvin
darvin / gist:5017692
Last active December 14, 2015 02:59
P12 to key/certificate PEMs
openssl pkcs12 -nocerts -in mycert.p12 -out userkey.pem -nodes
openssl pkcs12 -clcerts -nokeys -in mycert.p12 -out usercert.pem
@darvin
darvin / .travis.yml
Created January 13, 2013 07:36
.travis.yml for Octopress at GitHub pages
## Kinda does not works in current Travis :(
branches:
only:
- source
language: ruby
rvm:
- 1.9.3
before_script:
# Set read-write git origin
- git remote set-url origin $REPO.git