TODO
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
gem build docbookrx.gemspec | |
gem install docbookrx-1.0.0.dev.gem |
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
. Open actions prompt: `ctrl +shif |
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 CouchbaseLiteSwift | |
class DatabaseManager { | |
private static var privateSharedInstance: DatabaseManager? | |
var database: Database | |
let DB_NAME = "travel-sample" | |
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 class Row extends React.Component { | |
render() { | |
return ( | |
<View> | |
<TextInput | |
onSubmitEditing={() => { | |
this.secondInput.focus(); | |
}/> | |
<TextInput | |
ref={(input) => { |
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
lazy var database: Database = { | |
let path = Bundle.main.path(forResource: self.DB_NAME, ofType: "cblite2")! | |
if !Database.exists(withName: self.DB_NAME) { | |
do { | |
try Database.copy(fromPath: path, toDatabase: self.DB_NAME, withConfig: nil) | |
} catch { | |
fatalError("Could not copy database") | |
} | |
} | |
do { |
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 { | |
ListView, | |
StyleSheet, | |
Text, | |
TextInput, | |
View | |
} from 'react-native'; | |
import Row from './Row'; |
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
#!/usr/bin/env bash | |
OUTPUT_FILE=${1} | |
if [ "${1}" = "starter-project" ]; then | |
echo "starter" | |
elif [ "${1}" = "final-project" ]; then | |
echo "final" | |
else | |
echo "Error: the output file must be called starter-project or final-project" | |
fi |
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
public class MainActivity extends SplashActivity { | |
public static int ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE = 5469; | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
checkPermission(); | |
} |
NewerOlder