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
| script: | |
| - echo 'Running a test' | |
| - npm install | |
| - npm run test |
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
| stages: | |
| - testing | |
| - build | |
| - deploy |
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
| variables: | |
| DB_HOST: "1999.99.99.999" | |
| DB_PORT: "1337" | |
| DB_NAME: "testing" |
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
| $ cd existing_folder | |
| $ git init | |
| $ git remote add origin <proyek-origin-kalian> | |
| $ git add . | |
| $ git commit -m "Initial commit" | |
| $ git push -u origin master |
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
| $ npm install -g foton-cli | |
| $ foton create --project test-ci-cd |
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
| /** | |
| * | |
| * @format | |
| * @flow | |
| */ | |
| import React, { Component } from 'react'; | |
| import { View, Text, StyleSheet, Picker, Dimensions, ScrollView } from 'react-native'; | |
| import { Appbar, TextInput, RadioButton, Checkbox } from 'react-native-paper'; |
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
| const { fork } = require('child_process'); | |
| const data = [ | |
| { | |
| email: "[email protected]", | |
| password: '123' | |
| }, | |
| { | |
| email: "[email protected]", | |
| password: '123' |
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
| // MIT License | |
| // Copyright (c) [2020] [fachryansyah] | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
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
| const solution = (n) => { | |
| let x = [] | |
| let y = [] | |
| for(let j = n; j > 0; j--){ | |
| for(let i = 0; i < j; i++){ | |
| x.push('*') | |
| } | |
| console.log(x.join('')) | |
| x = [] |
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, { Component } from 'react' | |
| import { | |
| View, | |
| StyleSheet, | |
| Dimensions, | |
| Text, | |
| Image, | |
| ScrollView | |
| } from 'react-native' |