For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| package cc.cubone.turbo.ui.demo; | |
| import android.content.Context; | |
| import android.graphics.Color; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.PersistableBundle; | |
| import android.support.annotation.ColorInt; | |
| import android.support.v4.view.GravityCompat; | |
| import android.support.v4.widget.DrawerLayout; |
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
| private static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException { | |
| WritableMap map = new WritableNativeMap(); | |
| Iterator<String> iterator = jsonObject.keys(); | |
| while (iterator.hasNext()) { | |
| String key = iterator.next(); | |
| Object value = jsonObject.get(key); | |
| if (value instanceof JSONObject) { | |
| map.putMap(key, convertJsonToMap((JSONObject) value)); | |
| } else if (value instanceof JSONArray) { |
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
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "me@gmail.com" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
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
| <?php | |
| namespace App\Controller\Component; | |
| use Cake\Controller\Component\PaginatorComponent; | |
| use Cake\Datasource\RepositoryInterface; | |
| use Cake\Network\Exception\NotFoundException; | |
| use Cake\ElasticSearch\Query; | |
| class ElasticPaginatorComponent extends PaginatorComponent |
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
| // quick snippet to check the connection in your RN app | |
| // dispatches an `setIsConnected` action every time the NetInfo changes (on/off network) | |
| componentDidMount() { | |
| const dispatchConnected = isConnected => this.props.dispatch(setIsConnected(isConnected)); | |
| NetInfo.isConnected.fetch().then().done(() => { | |
| NetInfo.isConnected.addEventListener('change', dispatchConnected); | |
| }); | |
| } |
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
| --- | |
| format_version: 1.2.0 | |
| default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
| app: | |
| envs: | |
| - opts: | |
| is_expand: false | |
| FASTLANE_WORK_DIR: app | |
| - opts: | |
| is_expand: false |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Paste Image Example</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.4.6/bluebird.min.js"></script> | |
| </head> | |
| <body> |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com