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:
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; |
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){ |
I hereby claim:
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 }); |
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 |