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
HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
Content-Security-Policy: default-src 'self' blob: wss: data: https:; img-src 'self' data: https:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: https:; style-src 'self' 'unsafe-inline' data: https:;
Content-Type: text/html;charset=utf-8
rlogid: t6klaook%60b0%3D%3C%3Dsm~ojbnkmcc4%3B(40356%3F2-16ace3e73d1-0x802
Strict-Transport-Security: max-age=31536000
X-EdgeConnect-MidMile-RTT: 18
<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>
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");
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",
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",
@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)
);
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 / 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
{
"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",