# Create token: https://github.com/settings/tokens
# How to use:
# make add_remote_origin_token username=<username> token=<token> repository=<repository>
add_remote_origin_token:
git remote set-url origin https://$(username):$(token)@github.com/$(username)/$(repository).git
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
CCA2 | Name | CCA3 | Nationality | |
---|---|---|---|---|
AD | Andorra | AND | Andorran | |
AE | United Arab Emirates | ARE | Emirati | |
AF | Afghanistan | AFG | Afghan | |
AG | Antigua and Barbuda | ATG | Antiguan, Barbudan | |
AI | Anguilla | AIA | Anguillian | |
AL | Albania | ALB | Albanian | |
AM | Armenia | ARM | Armenian | |
AN | Netherlands Antilles | ANT | Dutch | |
AO | Angola | AGO | Angolan |
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
class MainActivity : AppCompatActivity { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.main_activity) | |
initNavGraphStartDestination() | |
} | |
private fun initNavGraphStartDestination() { |
- Link
https://bitly.com/Wn2Xdz
- Just add
+
https://bitly.com/Wn2Xdz+
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.graphics.Bitmap | |
import android.graphics.BitmapFactory | |
import android.graphics.Matrix | |
import androidx.exifinterface.media.ExifInterface | |
import java.io.File | |
interface RotationUtility { | |
fun autoRotate(file: File): Bitmap | |
} |
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
struct LazyView<Content: View>: View { | |
let build: () -> Content | |
init(_ build: @autoclosure @escaping () -> Content) { | |
self.build = build | |
} | |
var body: Content { | |
build() | |
} | |
} |