Skip to content

Instantly share code, notes, and snippets.

View fachryansyah's full-sized avatar
🌑
code in the darkness

Muhammad Fahriansyah fachryansyah

🌑
code in the darkness
  • Depok City, Indonesia
View GitHub Profile
import React, { Component } from 'react'
import {
View,
StyleSheet,
Dimensions,
Text,
Image,
ScrollView
} from 'react-native'
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 = []
@fachryansyah
fachryansyah / Steganografi.go
Last active January 2, 2021 14:13
Hidding Message Steganografi
// 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:
const { fork } = require('child_process');
const data = [
{
email: "[email protected]",
password: '123'
},
{
email: "[email protected]",
password: '123'
/**
*
* @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';
@fachryansyah
fachryansyah / bash.sh
Created May 6, 2021 20:11
Create Project
$ npm install -g foton-cli
$ foton create --project test-ci-cd
@fachryansyah
fachryansyah / bash.sh
Created May 6, 2021 20:15
Push Project
$ cd existing_folder
$ git init
$ git remote add origin <proyek-origin-kalian>
$ git add .
$ git commit -m "Initial commit"
$ git push -u origin master
variables:
DB_HOST: "1999.99.99.999"
DB_PORT: "1337"
DB_NAME: "testing"
stages:
- testing
- build
- deploy
script:
- echo 'Running a test'
- npm install
- npm run test