Skip to content

Instantly share code, notes, and snippets.

View berkedel's full-sized avatar

Akhmad Syaikhul Hadi berkedel

View GitHub Profile
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@berkedel
berkedel / React Editor Conf.md
Created April 4, 2016 05:02
How to Configure Text Editors and IDEs for React.js

How to Configure Text Editors and IDEs for React.js img

Tips and tricks on how to configure your favorite text editor or IDE to work with React.js/ES6+/JSX.

WebStorm

Create a new project based on React Starter Kit template

react-project-template-in-webstorm

@berkedel
berkedel / Cocoapod Troubleshooting.md
Created April 7, 2016 08:30
Cocoapod Troubleshooting

Cocoapod Troubleshooting

Stuck on installing forever

$ pod repo remove master
$ pod setup
$ pod install --verbose
@berkedel
berkedel / gist:d17a5057f829d8aefec333410818439a
Created April 7, 2016 13:54 — forked from dodyg/gist:5616605
Kotlin Programming Language Cheat Sheet Part 2

This is a quick guide to Kotlin programming language. The previous part of this guide is here

#Object Oriented

fun main(args : Array<String>) {
  class local (val x : Int)
  
  val y = local(10)
 println("${y.x}")
@berkedel
berkedel / gist:d31ef0d6d28b643e61820dd29c44e58e
Created April 7, 2016 13:54 — forked from dodyg/gist:5823756
Kotlin Programming Language Cheat Sheet Part 3

#Control Structures

##If statement

Kotlin if statement should look familiar with other language

fun main(args : Array<String>) {
 val total = 10

Show

Pushes the destination view controller onto the navigation stack, moving the source view controller out of the way (destination slides overtop from right to left), providing a back button to navigate back to the source - on all devices Example: Navigating inboxes/folders in Mail

Show Detail

Replaces the detail/secondary view controller when in a UISplitViewController with no ability to navigate back to the previous view controller Example: In Mail on iPad in landscape, tapping an email in the sidebar replaces the view controller on the right to show the new email

@berkedel
berkedel / gist:cb176ed35d63118ceacfb310bacad55d
Last active July 14, 2016 16:36 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin 1.0

Kotlin project website is at kotlinlang.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@berkedel
berkedel / Tutorial.md
Created August 1, 2016 07:04
Change your MAC address on iOS 7-8 (not working on iOS 9 atm)

Hi there,

Change your MAC address on iOS 7-8

Changing your MAC address can be extremely useful in some situation. Let me give you a few:

  • You are limited by time on public networks and everyone want more than just 15 minutes of internet.
  • You want to regenerate your UDID
  • A lot of governments rely on this to find you and then intercept your datas. In France for example, secret services have full access to public Wi-Fi and therefore can locate you by using your MAC address.
@berkedel
berkedel / mac-apps.md
Created August 5, 2016 12:14 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@berkedel
berkedel / bundle-react-native-app.md
Last active September 26, 2016 09:14
Bundle React Native App

iOS

  1. Create a bundle
$ react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios
  1. Comment this line in AppDelegate.m,
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];