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 { | |
createAppContainer, | |
} from 'react-navigation'; | |
import { | |
createStackNavigator, | |
} from 'react-navigation-stack'; | |
import { Provider } from 'mobx-react'; | |
const stores = { |
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
"use strict" | |
function Main(input) { | |
let lines = input.split('\n'); | |
let A = lines[0].split(' '); | |
console.log(summation(A)); | |
console.log(product(A)); | |
} | |
function summation(a) { |
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
"use strict" | |
function Main(input) { | |
let lines = input.split('\n'); | |
let A = lines[0].split(' '); | |
console.log(summation(A)); | |
console.log(product(A)); | |
} | |
function summation(a) { |
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 language = require('@google-cloud/language'); | |
async function isPositive(text) { | |
// If you want to know detail of LanguageServiceClient, | |
// See also | |
// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values | |
const lsclient = new language.LanguageServiceClient(); | |
const document = { | |
content: text, |
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
static void someMethod() { | |
List<SObject> sobjs = [ | |
SELECT | |
Id, | |
Name, | |
AccountId, | |
Account.Name, | |
SomeCustom__r.Id, | |
SomeCustom__r.Name | |
FROM |
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 { | |
createAppContainer, | |
} from 'react-navigation'; | |
import { | |
createStackNavigator, | |
} from 'react-navigation-stack'; | |
const stack = createStackNavigator( | |
{ |
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 { | |
Keyboard, | |
} from 'react-native'; | |
import { | |
View, | |
Button, | |
Text, | |
Textarea, | |
} from 'native-base'; |
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 { | |
TouchableHighlight, | |
View, | |
Text, | |
} from 'react-native'; | |
import withCommonProps from './withCommonProps'; | |
class SomeComponent extends React.Component { |
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 * as Localization from 'expo-localization'; | |
import { StackActions, NavigationActions } from 'react-navigation'; | |
import lodash from 'lodash'; | |
const withCommonProps = (WrappedComponent) => { | |
class HOC extends React.Component { | |
getLanguageCode = () => { | |
return Localization.locale.split('-')[0]; | |
} |
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 { StackActions, NavigationActions } from 'react-navigation'; | |
import { | |
TouchableHighlight, | |
View, | |
Text, | |
} from 'react-native'; | |
class SomeScreen extends React.Component { |