Skip to content

Instantly share code, notes, and snippets.

View M1n007's full-sized avatar
👽
Working from home

Aminudin M1n007

👽
Working from home
View GitHub Profile
var mysql = require("mysql");
const uuidv4 = require("uuid/v4");
var pool = mysql.createPool({
connectionLimit: 10,
host: "128.199.251.92",
user: "root",
password: "testing",
database: "dashboard_doctor"
});
{
"name": "react-boilerplate",
"version": "3.7.0",
"description": "A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices",
"repository": {
"type": "git",
"url": "git://github.com/react-boilerplate/react-boilerplate.git"
},
"engines": {
"npm": ">=5",
@M1n007
M1n007 / db
Created January 27, 2019 15:28
SELECT s.uuid as _id, d.name as doctor_name, JSON_UNQUOTE(JSON_OBJECT('name', p.name, 'gender', p.gender, 'birth', p.dob)) As patient, CONCAT('[',GROUP_CONCAT(DISTINCT JSON_OBJECT('type', c.type,'contact',c.contact) ) ,']' ) as contact, s.end_time as order_date, pa.status as status FROM patients p
INNER JOIN health_general h ON p.id = h.patient_id
INNER JOIN sessions s ON p.id = s.patient_id
INNER JOIN prescription ps ON s.uuid = ps.session_id
INNER JOIN prescription_actions pa ON ps.id = pa.prescription_id
INNER JOIN doctors d ON s.doctor_id = d.id
INNER JOIN contacts c ON p.id = c.patient_id
import React, { Component } from 'react'
import { TouchableOpacity, ScrollView, Image, ImageBackground, StyleSheet, View } from 'react-native'
import { Content, Body,Text, Icon,
Card, CardItem, Spinner
} from 'native-base'
import { Col, Row } from 'react-native-easy-grid';
import { connect } from 'react-redux'
class promoCard1 extends Component {
renderPromoSlide(){
@M1n007
M1n007 / case
Last active March 5, 2019 17:09
const updateMeta = oldMeta =>
new Promise((resolve, reject) => {
const newMeta_value = [];
const oldMeta_value = [];
const combine_meta = [];
const old_meta = oldMeta.filter(({ meta_key }) =>
meta.includes(meta_key)
);
var jwtDecode = require("jwt-decode");
const config = require("./config/config_serv");
const pool = require("mysql2/promise").createPool(config.configDb);
exports.updateProducts = async (event, context, callback) => {
context.callbackWaitsForEmptyEventLoop = false;
const meta = [
"_visibility",
"_featured",
const fetch = require("node-fetch");
const check = () =>
new Promise((resolve, reject) => {
const data = { email: "amin4udin@mail.com", password: "sadasd" };
fetch("https://panel.niagahoster.co.id/api/guest/client/login", {
method: "POST",
body: JSON.stringify(data),
headers: {
"x-requested-with": "XMLHttpRequest",
const jwtDecode = require("jwt-decode");
const moment = require("moment");
const config = require("./config/config_serv");
const Serialize = require("php-serialize");
const AWS = require("aws-sdk");
const co = require("co");
const url = require("url");
const csv = require("csvtojson");
const s3 = new AWS.S3();
const fileType = require("file-type");
<network-security-config>
<base-config>
<trust-anchors>
<!-- Trust preinstalled CAs -->
<certificates src="system" />
<!-- Additionally trust user added CAs -->
<certificates src="user" />
</trust-anchors>
</base-config>
</network-security-config>