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
### DML ### | |
# Keyspace Name | |
keyspace: stresscql | |
# The CQL for creating a keyspace (optional if it already exists) | |
keyspace_definition: | | |
CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; | |
# Table name |
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
// phantomjs code to log in to Amazon | |
// based on the code from this Stackoverflow answer: http://stackoverflow.com/questions/9246438/how-to-submit-a-form-using-phantomjs | |
// I'm injecting jQuery so this assumes you have jquery in your project directory | |
var page = new WebPage(), testindex = 0, loadInProgress = false; | |
page.onConsoleMessage = function(msg) { | |
console.log(msg); | |
}; |
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
#!/bin/bash | |
# Run this on This AMI on AWS: | |
# https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#LaunchInstanceWizard:ami=ami-b36981d8 | |
# You should get yourself a fully working GPU enabled tensorflow installation. | |
cd ~ | |
# grab cuda 7.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 i18n, { | |
LanguageDetectorAsyncModule, | |
Services, | |
InitOptions, | |
} from 'i18next'; | |
import {initReactI18next} from 'react-i18next'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import * as RNLocalize from 'react-native-localize'; | |
const languageDetector: LanguageDetectorAsyncModule = { |
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 {SafeAreaView, StyleSheet, View, Text, StatusBar} from 'react-native'; | |
// Localization.ts code can be found here: https://gist.github.com/naishe/a6d9ea9d23214875ac176b63387ab833 | |
import './localization'; | |
import {useTranslation} from 'react-i18next'; | |
declare const global: {HermesInternal: null | {}}; | |
const App = () => { | |
const {t} = useTranslation(); |
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
export default { | |
ok: 'OK', | |
cancel: 'Cancel', | |
}; |
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 i18n, { | |
LanguageDetectorAsyncModule, | |
Services, | |
InitOptions, | |
} from 'i18next'; | |
import {initReactI18next} from 'react-i18next'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import * as RNLocalize from 'react-native-localize'; | |
import en from './en'; | |
import hi from './hi'; |
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 { | |
StyleSheet, | |
Text, | |
View, | |
TouchableOpacity, | |
Dimensions, | |
} from 'react-native'; | |
import {useTranslation} from 'react-i18next'; |
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
interpolation: { | |
escapeValue: false, | |
format: function (value: any, format?: string, lng?: string) { | |
switch (format) { | |
case 'flags': | |
if ( | |
typeof value !== 'number' || | |
value < 1 || | |
!Number.isInteger(value) |
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, {Component} from 'react'; | |
import App from './App'; | |
import codePush from 'react-native-code-push'; | |
class AppWrappedInCodePush extends Component { | |
render() { | |
return <App />; | |
} | |
} |
OlderNewer