Skip to content

Instantly share code, notes, and snippets.

View canpoyrazoglu's full-sized avatar
🌗
Working from moon

Can Poyrazoğlu canpoyrazoglu

🌗
Working from moon
View GitHub Profile
![animation example](https://gist.githubusercontent.com/canpoyrazoglu/ae31f17370726770268ce44054701b6b/raw/b30e96ea50fd6d916a9be90d63a613e4fc290acb/example.gif)
@canpoyrazoglu
canpoyrazoglu / build.gradle
Created August 12, 2019 18:02
Build.gradle for tipsi-stripe build error
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "16.0.0"
@canpoyrazoglu
canpoyrazoglu / react-native+0.63.4.patch
Created January 3, 2021 11:30
React Native patch to display all images and colors in P3 color space on iOS (use patch-package npm package to apply)
diff --git a/node_modules/react-native/Libraries/Image/RCTImageUtils.m b/node_modules/react-native/Libraries/Image/RCTImageUtils.m
index 899bfe4..33133c3 100644
--- a/node_modules/react-native/Libraries/Image/RCTImageUtils.m
+++ b/node_modules/react-native/Libraries/Image/RCTImageUtils.m
@@ -308,13 +308,26 @@ BOOL RCTUpscalingRequired(CGSize sourceSize, CGFloat sourceScale,
if (!imageRef) {
return nil;
}
+ if (@available(iOS 10, *)) {
+ // Return all images in P3 color space
@canpoyrazoglu
canpoyrazoglu / karabiner.json
Created January 17, 2022 15:18
Regain Touch Bar "back" functionality of Vscode lost after Touch Bar is gone with Karabiner-Elements (which is actually possible with a hard shortcut of Ctrl+Hyphen) by assigning it to fn key.
[...]
"rules": [
{
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.microsoft\\.VSCode$"
],