Skip to content

Instantly share code, notes, and snippets.


Ayat Maulana ayatmaulana

  • Cirebon, Indonesia
Block or report user

Report or block ayatmaulana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 239042304234
tar xf Python-3.7.0.tar.xz
cd Python-3.7.0
make -j 4
sudo make altinstall
sudo apt-get update -y
sudo apt-get install build-essential cups mongodb cmake libcups2-dev libcupsimage2-dev tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev -y
View gist:ff34a1f2149d0c954228c10917bc3f8d
"_id" : ObjectId("5d22b146deff6bc314d3a195"),
"questionandanswer" : [
"isCorrect" : "wrong",
"question" : {
"Score" : 1.0,
"QuizCategoryID" : 1.0,
"UpdatedAt" : "2019-07-07T13:12:37Z",
"Question" : "Berapakah tenor maksimal untuk produk Mobil Baru pada Program DAEP?",
View participantabsen.json
"_id" : ObjectId("5d18787ef02e063f7d29feb8"),
"agenda" : {
"model" : {
"id" : 18,
"createdat" : ISODate("2019-06-30T06:15:27.000Z"),
"updatedat" : ISODate("2019-06-30T07:33:52.000Z"),
"deletedat" : null
"name" : "Makan",

PouchDB sebagai alternative LocalStorage pada Browser

Salah satu limitasi pada LocalStorage pada browser adalah dia hanyalah sebuah key - value storage yang di simpan dalam browser dan juga hanya bisa menyimpan tipe data String saja, tidak bisa menyimpan data Array maupun Object, sehingga apabila developer ingin menyimpan tipe data tersebut kedalam LocalStorage, developer harus mengubahnya terlebih dahulu kedalam bentuk JSON String, dan tentunya dari hal tersebut menjadikan kita sebagai developer menjadi tidak bebas atau leluasa dalam menyimpan data pada local storage.

Dengan limitasi tersebut tentunya membuat proses development menjadi sedikit terhambat, maka dari itu kita sebagai developer membutuhkan suatu alat yang powerful, yang bisa membuat kita menjadi lebih bebas dalam urusan menyimpan data.

View pouchdb
# PouchDB sebagai alternative LocalStorage pada Browser
> PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the browser.
> PouchDB was created to help web developers build applications that work as well offline as they do online.
It enables applications to store data locally while offline, then synchronize it with CouchDB and compatible servers when the application is back online, keeping the user's data in sync no matter where they next login.
> (source:
# Licensed under the 3-clause BSD license:
# Copyright (c) 2014, Alfred Klomp
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
ayatmaulana / provider.php
Created Mar 10, 2019
check indonesia provider by phone number
View provider.php
$providerList = [
"telkomsel" => [
View egift
You can’t perform that action at this time.