in mac os ventura should just install ruby with homebrew instead of rbenv
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
For lazy people))) you can add this alias to your ~/.bash_profile or ~/.zprofile or ~/.bashrc | |
```bash | |
alias push_current='git push origin `git branch | grep "*" | sed "s/\* //"`' | |
``` | |
then call `source ~/.bash_profile` | |
when you want to push current branch to remote git repo | |
just call | |
``` |
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
#!/bin/bash | |
dirs_to_remove='Pods build builds node_modules*' | |
if [ -z "$target_dir" ]; then | |
target_dir='./' | |
fi | |
echo ">>> Will be removed dirs <<<" | |
del_dir () { |
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
NUMBER1 := 10 | |
NUMBER2 := 5 | |
#Addition | |
ADD := $(shell echo ${NUMBER1}+${NUMBER2} | bc) | |
#Subtraction | |
SUBTRACT := $(shell echo ${NUMBER1}-${NUMBER2} | bc) | |
#Multiplication |
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
# targets with dependencies | |
# This is an alternative for manually specifying every configuration as :debug [link](http://guides.cocoapods.org/syntax/podfile.html#project). | |
# Because of cocoapods by default uses :release type for all configurations but Debug | |
# we need to change every configuration, named <configuration_name>.Debug | |
# at the bottom of file | |
post_install do |installer_representation| | |
installer_representation.pods_project.targets.each do |target| | |
target.build_configurations.each do |config| |
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
# Add this code at the top of Podfile | |
use_frameworks! | |
dynamic_frameworks = ['Alamofire', 'Async', 'Moya', 'Result', 'RxCocoa', 'RxSwift', 'SwiftyXMLParser', 'TrueTime'] | |
# make all the other frameworks into static frameworks by overriding the static_framework? function to return true | |
pre_install do |installer| | |
installer.pod_targets.each do |pod| | |
if !dynamic_frameworks.include?(pod.name) | |
puts "Overriding the static_framework? method for #{pod.name}" |
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
def safeExtGet(prop, fallback) { | |
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | |
} | |
buildscript { | |
repositories { | |
maven { | |
url 'https://maven.google.com/' | |
name 'Google' |
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, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Drawer } from 'native-base'; | |
import { noop } from '../utils'; | |
const drawerStyles = { | |
drawer: { | |
shadowColor: '#000000', shadowOpacity: 0.5, shadowRadius: 3, shadowOffset: { width: 1, height: 5 }, | |
}, | |
main: { paddingLeft: 3 }, |
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
cp /path/to/my/key/id_rsa ~/.ssh/id_rsa | |
cp /path/to/my/key/id_rsa.pub ~/.ssh/id_rsa.pub | |
# change permissions on file | |
sudo chmod 600 ~/.ssh/id_rsa | |
sudo chmod 600 ~/.ssh/id_rsa.pub | |
# start the ssh-agent in the background | |
eval $(ssh-agent -s) | |
# make ssh agent to actually use copied key | |
ssh-add ~/.ssh/id_rsa |
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
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void flussonic.watcher.sdk.presentation.timeline.FlussonicTimelineView.collapse()' on a null object reference | |
at flussonic.watcher.sdk.presentation.watcher.FlussonicWatcherView.lambda$tryCollapseTimeline$2(FlussonicWatcherView.java:582) | |
at flussonic.watcher.sdk.presentation.watcher.-$$Lambda$FlussonicWatcherView$kfbfhYsS9XvYSUCapHnxGSyedeU.onAnimationEnd(lambda) | |
at flussonic.watcher.sdk.presentation.timeline.animation.AnimationListener.onAnimationEnd(AnimationListener.java:27) | |
at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1239) | |
at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:766) | |
at android.animation.ValueAnimator$AnimationHandler$1.run(ValueAnimator.java:801) | |
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) | |
at android.view.Choreographer.doCallbacks(Choreographer.java:670) | |
at androi |
NewerOlder