Skip to content

Instantly share code, notes, and snippets.

View hynra's full-sized avatar
🎯

Hendra Permana hynra

🎯
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"access_token": "public_token",
"expires_in": 3599,
"refresh_token": "refresh_token",
"token_type": "Bearer",
"userId": "us_id"
}
VERSION NAME SOURCE STATUS DATABASE STATUS STATUS STAGING STATUS PRODUCTION DESCRIPTION
1582614286362 update_permission_user_public_table_global_wallet_accounts Present Present Success Failed FATA[0019] apply failed: [already-exists] 'delete' permission on "multirater_bank_questions" for role "organization-hr-admin" already exists ($.args[0].args) File: '1582778305881_update_permission_organization-hr-admin_public_table_multirater_bank_questions/up.yaml' { "permission": { "filter": { "multirater_bank_group": { "company": { "_eq": "X-Hasura-Org-Id" } } } }, "role": "organization-hr-admin", "table": { "name": "multirater_bank_questions", "schema": "public" } }
const Redis = require("ioredis");
const client = (Config.isSentinel === 'true') ? new Redis({
sentinels: Config.sentinels,
name: "mymaster"
}) : new Redis({
host: Config.redis.host,
port: Config.redis.port,
password: Config.redis.password
});
uploadVideo = (e, order, sectionId) => {
const userData=reactLocalStorage.getObject("userData");
const react = this
const tempFile = e.target.files[0]
if(this.state.createLessonTitle == "" ||
this.state.createLessonSummary == "" ||
this.state.createLessonTitle == null ||
this.state.createLessonSummary == null){
this.setState({
{
"rc": "0000",
"status": "Sukses",
"elapsed_time": "0.40760397911072 seconds",
"message": {
"0": {
"kode": "PAYKAI",
"nama_produk": "Bayar Tiket KAI",
"kategori_produk": "RESERVASI",
"kategori_sub": "KERETA API",
// Java
public class FirebaseInstanceIDService extends FirebaseInstanceIdService {
private final String TAG = this.getClass().getSimpleName();
private Context context;
@Override
public void onTokenRefresh() {
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
sendTokenToServer(refreshedToken);
@hynra
hynra / PopulateProduct.js
Created November 9, 2016 10:21
Grouping product berdasarkan kategori
var _jsn = [{
"nominal": "0",
"price": "0",
"product_code": "BPJSKS",
"product_name": "BPJS Kesehatan",
"product_category": "BPJS"
}, {
"nominal": "5000",
"price": "5050",
"product_code": "SN5",