This file contains 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.content.Context | |
import android.graphics.* | |
import android.util.AttributeSet | |
import android.view.View | |
class DonutView(context: Context?, attrs: AttributeSet?) : View(context, attrs) { | |
private val icingPathEffect = ComposePathEffect( | |
CornerPathEffect(50f), | |
DiscretePathEffect(80f, 50f) |
This file contains 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
interface Car { | |
fun carMethod(); | |
} | |
interface Bus { | |
fun busMethod(); | |
} | |
class Leyland : Bus { | |
override fun busMethod() { |
This file contains 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.tp.theah64.orchid.utils.extensions | |
import android.util.Log | |
fun Any.debug(message: String) { | |
Log.d(getTag(this), message) | |
} | |
fun Any.info(message: String) { | |
Log.i(getTag(this), message) |
This file contains 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
public class SplashActivity extends BaseAppCompatActivity implements SplashActivityNavigator { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_splash); | |
final SplashActivityViewModel viewModel = ViewModelProviders | |
.of(this, |
This file contains 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
public class SplashActivityViewModel extends BaseViewModel<SplashActivityNavigator> { | |
private static final int SPLASH_DURATION_IN_MILLIS = 1500; | |
public SplashActivityViewModel(@NonNull Application application, SplashActivityNavigator navigator) { | |
super(application, navigator); | |
} | |
void startWorking() { |
This file contains 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
/* | |
* | |
* Created by Stone | |
* Email: bolan999999@gmail.com | |
* Date: 2017/12/2 | |
* | |
*/ | |
import React from 'react'; | |
import {LargeList} from 'react-native-largelist'; |
This file contains 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 React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
export default class App extends React.Component { | |
getGreenText = () => { | |
return (<ColorText text="Default text" color="green"/>); | |
} |
This file contains 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 React from 'react'; | |
import { StyleSheet, Text, View } from 'react-native'; | |
export default class App extends React.Component { | |
getGreenText = () => { | |
return (<ColorText text="Default text" color="green"/>); | |
} |
This file contains 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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |