Skip to content

Instantly share code, notes, and snippets.

View yaelahky's full-sized avatar
🎯
Focusing

Ananda Rizky Yuliansyah yaelahky

🎯
Focusing
  • Indonesia
View GitHub Profile
let latMin = 0,
latMax = 0,
longMin = 0,
longMax = 0,
latSum = 0,
longSum = 0
halfResult.forEach(item => {
if (latMax == 0 && latMin == 0 && longMin == 0 && longMin == 0) {
latMax = item.latitude;
@yaelahky
yaelahky / palindrome.js
Created October 15, 2019 04:17
Tes No 2 Indoxxi Backend Developer
let hasil = [];
isPalindrome = (word) => {
let kata = word.replace(" ","");
for (i = 0; i < kata.split('').length; i++) {
kata.split('').forEach((item, index) => {
let pointer = i+1
let a = kata.substr(index, pointer)
if (a.split('').length == pointer){

Keybase proof

I hereby claim:

  • I am yaelahky on github.
  • I am yaelahky (https://keybase.io/yaelahky) on keybase.
  • I have a public key ASDw-up0qyBHaQ56IgsmUaTxJBEeeQPCgjfSVZ89ZMeFXAo

To claim this, I am signing this object:

'use strict'
/*
|--------------------------------------------------------------------------
| Routes
|--------------------------------------------------------------------------
|
| Http routes are entry points to your web application. You can create
| routes for different URL's and bind Controller actions to them.
|
'use strict'
const User = use('App/Models/User');
class AuthController {
async accountCheck({request, auth, response}){
try {
let account = await auth.getUser();
response.status(200).json({"id": account.id, "username": account.username });
@yaelahky
yaelahky / .env
Created April 21, 2019 07:13
.env
HOST=192.168.0.34 //gunakan ip lokal anda
PORT=3333
NODE_ENV=development
APP_URL=http://${HOST}:${PORT}
CACHE_VIEWS=false
APP_KEY=TBWFKrZPj7UWxmmC0zycZ1eDKOnSSaCD
DB_CONNECTION=mysql //gunakan mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=root