Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
| export class EventEmitter<Events, K = keyof Events|symbol> { | |
| addListener(event: K, listener: (...args: any[]) => void): this; | |
| on(event: K, listener: (...args: any[]) => void): this; | |
| once(event: K, listener: (...args: any[]) => void): this; | |
| removeListener(event: K, listener: (...args: any[]) => void): this; | |
| removeAllListeners(event?: K): this; | |
| setMaxListeners(n: number): this; | |
| getMaxListeners(): number; | |
| listeners(event: K): Function[]; | |
| emit(event: K, ...args: any[]): boolean; |
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 React from 'react'; | |
| import { | |
| View, | |
| Text, | |
| FlatList, | |
| StyleSheet | |
| } from 'react-native'; | |
| import { ListItem } from 'react-native-elements'; | |
| class Users extends React.Component { |
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
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
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
| /* | |
| * From css-tricks.com | |
| * http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ |
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
| // TODO add <meta-data android:value="GlideModule" android:name="....OkHttpProgressGlideModule" /> | |
| // TODO add <meta-data android:value="GlideModule" tools:node="remove" android:name="com.bumptech.glide.integration.okhttp.OkHttpGlideModule" /> | |
| // or not use 'okhttp@aar' in Gradle depdendencies | |
| public class OkHttpProgressGlideModule implements GlideModule { | |
| @Override public void applyOptions(Context context, GlideBuilder builder) { } | |
| @Override public void registerComponents(Context context, Glide glide) { | |
| OkHttpClient client = new OkHttpClient(); | |
| client.networkInterceptors().add(createInterceptor(new DispatchingProgressListener())); | |
| glide.register(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(client)); | |
| } |