Skip to content

Instantly share code, notes, and snippets.

View WrathChaos's full-sized avatar
❤️‍🔥
Working Hard

WrathChaos WrathChaos

❤️‍🔥
Working Hard
View GitHub Profile
@WrathChaos
WrathChaos / fully-customizable-dynamic-search-bar-props.md
Last active November 10, 2021 18:23
React Native Dynamic SearchBar
import SearchBar from "react-native-dynamic-search-bar"

<SearchBar
  fontColor="#c6c6c6"
  iconColor="#c6c6c6"
  shadowColor="#282828"
  cancelIconColor="#c6c6c6"
  backgroundColor="#353d5e"
 placeholder="Search here"
@WrathChaos
WrathChaos / basic-usage-dynamic-searchbar.md
Last active November 10, 2021 18:22
Basic Usage of React Native Dynamic SearchBar
import SearchBar from "react-native-dynamic-search-bar"

<SearchBar
  fontColor="#c6c6c6"
  iconColor="#c6c6c6"
  shadowColor="#282828"
  cancelIconColor="#c6c6c6"
  backgroundColor="#353d5e"
 placeholder="Search here"
@WrathChaos
WrathChaos / dynamic-search-bar-button.md
Last active November 10, 2021 18:22
React Native Dynamic Search Bar Button Example
import SearchBar from "react-native-dynamic-search-bar"

<SearchBar
  placeholder="Search here"
  onPress={() => alert("onPress")}
  onChangeText={(text) => console.log(text)}
/>
@WrathChaos
WrathChaos / statusbar-color-change.md
Last active June 15, 2022 08:52
iOS 13 and Below How to change Status Bar Color?
if #available(iOS 13.0, *) {
    let app = UIApplication.shared
    let statusBarHeight: CGFloat = app.statusBarFrame.size.height
    
    let statusbarView = UIView()
    statusbarView.backgroundColor = UIColor.red
    view.addSubview(statusbarView)
  
 statusbarView.translatesAutoresizingMaskIntoConstraints = false
ndk.dir=/Users/kuray/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/kuray/Library/Android/sdk
@WrathChaos
WrathChaos / git-alias.md
Last active May 13, 2021 15:39
MacOS .zshrc Aliases

Git Aliases

alias status="artii 'Status' | nyan && git status | nyan"
alias add="git add . | artii "Staged" | nyan"
alias glocal="git checkout local | artii 'Local Branch' | nyan"
alias dev="git checkout dev | artii 'Dev Branch' | nyan"
alias master="git checkout master | artii 'Master Branch' | nyan"
alias log="artii 'Logs' | nyan  && git log | nyan"
alias branch="artii 'Branches' | nyan &amp;&amp; git branch | nyan"
@WrathChaos
WrathChaos / kotlin-textwatcher.md
Last active March 2, 2020 17:56
How to use TextWatcher for more than one EditText?
val textWatcher = object : TextWatcher {
    override
    fun beforeTextChanged(charSequence: CharSequence, i: Int, i1: Int, i2:Int) {

    } 

    override
    fun onTextChanged(charSequence: CharSequence, i: Int, i1: Int, i2: Int) {
@WrathChaos
WrathChaos / gist:2ae125446aab07089980d120fdf7063e
Last active May 11, 2019 18:33
Command line instructions
Command line instructions
Git global setup
git config --global user.name "FreakyCoder"
git config --global user.email "[email protected]"
Create a new repository
git clone [email protected]:WrathChaos/react-native-card-collection.git
class MyFragment: Fragment() {
  private lateinit var myObject: MyObject
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      if (arguments != null) {
          myObject = arguments!!.getParcelable(ARG_PARAM)
      }
  }
 
@WrathChaos
WrathChaos / gist:85999955d2ed115ce799225bc50f935a
Last active March 26, 2022 18:25
Android Kotlin: How to get unique device id?
val deviceID = Settings.Secure.getString(contentResolver,
Settings.Secure.ANDROID_ID)