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
//RCTListViewManger.h | |
#import <UIKit/UIKit.h> | |
@interface RCTNativeListView : UIView | |
@property (nonatomic) NSArray * colors; | |
@end | |
-------------------------------------------------------------------------------- | |
//RCTListViewManger.m |
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
package com.musicapp; | |
import android.annotation.TargetApi; | |
import android.app.Notification; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; |
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
function main(input) { | |
input=input.split(/\s+/); | |
var output = 1; | |
var init = input[1]; | |
for(var i = 1; i < input[0]; i++){ | |
if(temp < input[i + 1] ){ | |
output++; | |
} | |
temp = input[i + 1]; | |
} |
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
const CACHE_NAME = 'whatsappweb-cache-v9'; | |
const { assets } = global.serviceWorkerOption; | |
const urlsToCache = ['./', './index.html', ...assets]; | |
self.addEventListener('install', event => { | |
console.log('Service Woker Started'); | |
event.waitUntil( | |
caches.open(CACHE_NAME).then(cache => { | |
console.log('Opened cache'); |
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
{ | |
"git.enableSmartCommit": true, | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"editor.fontFamily": "Avenir Light, Monaco, 'Courier New', monospace", | |
"editor.fontSize": 13, | |
"eslint.enable": true, | |
"eslint.autoFixOnSave": true, |
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
[ | |
{ | |
"title": "100", | |
"symbol": "💯", | |
"keywords": | |
"hundred points symbol symbol wow wow win win perfect perfect parties parties" | |
}, | |
{ | |
"title": "1234", | |
"symbol": "🔢", |
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, { PureComponent } from 'react'; | |
import { View, Text } from 'react-native'; | |
// No Need to Import Loading and error component every where | |
import withCommonQuery from './hoc/withCommonQueries'; | |
import GET_LINEITEMS from './query/LineItem/GET_LINEITEMS'; | |
import GET_DELIVERABLE_LIST from './query/Deliverables/GET_DELIVERABLE_LIST'; | |
import GET_PROJECTROLE from './query/ProjectRoles/GET_PROJECTROLE'; | |
class Dummy extends PureComponent { |
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 from 'react'; | |
import { graphql, compose } from 'react-apollo'; | |
// Common Loading Component | |
import LoadingComponent from './../components/Loader'; | |
// Common Error Component | |
import ErrorComponent from './../components/ErrorComponent'; | |
const withCommonQueries = ({ queries }) => SuccessComponent => { | |
const CommonQueryComponent = props => { | |
try { |
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, { PureComponent } from 'react'; | |
import { View, Text } from 'react-native'; | |
import { graphql, compose } from 'react-apollo'; | |
import ErrorComponent from './components/ErrorComponent'; | |
import LoadingComponent from './components/Loader'; | |
import GET_LINEITEMS from './query/LineItem/GET_LINEITEMS'; | |
import GET_DELIVERABLE_LIST from './query/Deliverables/GET_DELIVERABLE_LIST'; | |
import GET_PROJECTROLE from './query/ProjectRoles/GET_PROJECTROLE'; |
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
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": false, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended", |
OlderNewer