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
| private static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding"; | |
| private static final String ENCODING_GZIP = "gzip"; | |
| final DefaultHttpClient client = new DefaultHttpClient(manager, parameters); | |
| client.addRequestInterceptor(new HttpRequestInterceptor() { | |
| public void process(HttpRequest request, HttpContext context) { | |
| // Add header to accept gzip content | |
| if (!request.containsHeader(HEADER_ACCEPT_ENCODING)) { | |
| request.addHeader(HEADER_ACCEPT_ENCODING, ENCODING_GZIP); |
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.content.Context; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Build.VERSION; | |
| import android.os.Build.VERSION_CODES; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** | |
| * |
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
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
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
| afterEvaluate { project -> | |
| android.applicationVariants.each { variant -> | |
| variant.javaCompile.dependsOn stripPlayServices | |
| } | |
| } | |
| task stripPlayServices << { | |
| def playServiceRootFolder = new File(rootProject.buildDir, "intermediates/exploded-aar/com.google.android.gms/play-services/") | |
| playServiceRootFolder.list().each { versionName -> | |
| def versionFolder = new File(playServiceRootFolder, versionName) |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am qw4z1 on github. | |
| * I am qw4z1 (https://keybase.io/qw4z1) on keybase. | |
| * I have a public key whose fingerprint is BFD0 ADDC 8937 5EF6 5784 2A28 65FD C322 4A91 8FD3 | |
| To claim this, I am signing this object: |
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
| android.applicationVariants.all { variant -> | |
| def appName | |
| //Check if an applicationName property is supplied; if not use the name of the parent project. | |
| if (project.hasProperty("applicationName")) { | |
| appName = applicationName | |
| } else { | |
| appName = parent.name | |
| } | |
| variant.outputs.each {output -> |
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
| func betterLabel() -> ZSWTappableLabel { | |
| let participantsLabel:ZSWTappableLabel = ZSWTappableLabel(frame: CGRect(x: 10, y: 5, width: self.view.bounds.size.width * 0.75, height: 43)) | |
| var par2 = participants | |
| for i in 1...6 { | |
| par2.append(User(id: "Dummy", name: "Test User")) | |
| } | |
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 { Field } from "formik"; | |
| import Label from "./Label"; | |
| import PlaceholderOption from "./PlaceholderOption"; | |
| type PickerProps<K> = { | |
| placeHolder: string; | |
| nameInForm: string; | |
| label: string; | |
| data?: K[]; | |
| mapper: (item: K) => PickerOption; |
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
| package components | |
| import androidx.compose.runtime.Composable | |
| import platform.UIKit.UIColor | |
| @Composable | |
| fun SampleUsageView( | |
| content: @Composable () -> Unit | |
| ): () -> Unit { | |
| // Wraps the composable in a UIViewController and sets the background to .clearColor. |
OlderNewer