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
import android.util.Log; | |
import com.crashlytics.android.Crashlytics; | |
import timber.log.Timber; | |
public class CrashlyticsTree extends Timber.Tree { | |
@Override | |
protected boolean isLoggable(int priority) { |
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
# ls -l /firmware/image | |
-rw-r--r-- root root 500 2014-08-30 08:53 adsp.b00 | |
-rw-r--r-- root root 6888 1970-05-10 08:34 adsp.b01 | |
-rw-r--r-- root root 1 2014-08-30 08:53 adsp.b02 | |
-rw-r--r-- root root 5095408 2014-08-30 08:53 adsp.b03 | |
-rw-r--r-- root root 1308461 2014-08-30 08:53 adsp.b04 | |
-rw-r--r-- root root 1096090 2014-08-30 08:53 adsp.b05 | |
-rw-r--r-- root root 912 2014-08-30 08:53 adsp.b06 | |
-rw-r--r-- root root 939558 2014-08-30 08:53 adsp.b07 | |
-rw-r--r-- root root 120 2014-08-30 08:53 adsp.b08 |
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
import UIKit | |
/* | |
Example way to use the class below | |
let rw = RW() | |
var mDict:[String:String] = ["one":"1","two":"2"] | |
rw.write("test0",mDict: mDict) |
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 | |
if ( ! function_exists('config_path')) | |
{ | |
/** | |
* Get the configuration path. | |
* | |
* @param string $path | |
* @return string | |
*/ |
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
#! /bin/bash | |
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz | |
tar xzf protobuf-2.6.1.tar.gz | |
cd protobuf-2.6.1 | |
sudo apt-get update | |
sudo apt-get install build-essential | |
sudo ./configure | |
sudo make | |
sudo make check | |
sudo make install |
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 | |
use Swagger\Annotations as SWG; | |
/** | |
* @SWG\Swagger( | |
* basePath="/v1", | |
* host="api.local", | |
* schemes={"http"}, | |
* produces={"application/json"}, |
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 com.sadieyu.logg; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
/* | |
.class public Lcom/sadieyu/logg/MainActivity; | |
.super Landroid/app/Activity; | |
.source "MainActivity.java" |