Skip to content

Instantly share code, notes, and snippets.

View dendihandian's full-sized avatar

Dendi Handian dendihandian

View GitHub Profile
@dendihandian
dendihandian / miserables.json
Created October 26, 2020 08:47
Graph data collection
{
"nodes": [
{ "id": "Myriel", "group": 1 },
{ "id": "Napoleon", "group": 1 },
{ "id": "Mlle.Baptistine", "group": 1 },
{ "id": "Mme.Magloire", "group": 1 },
{ "id": "CountessdeLo", "group": 1 },
{ "id": "Geborand", "group": 1 },
{ "id": "Champtercier", "group": 1 },
{ "id": "Cravatte", "group": 1 },
@dendihandian
dendihandian / index.html
Last active September 16, 2020 18:25
d3.js v4 force-directed graph example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>D3 Force-Directed Graph Example</title>
<style>
.links line {
stroke: #999;
stroke-opacity: 0.6;
@dendihandian
dendihandian / InfiniteScroll.js
Created August 7, 2020 16:59
React Infinite Scroll Example
import React, { Component } from 'react';
import InfiniteScroll from "react-infinite-scroller";
import axios from 'axios';
class InfiniteScrollApp extends Component {
constructor(props) {
super(props);
this.state = {
books: [],
{
"id": "3b9c2fa6-e957-475f-b1ec-ff1aa9fb375f",
"name": "Development",
"values": [
{
"key": "elasticsearch_server",
"value": "http://localhost:9200",
"description": "",
"type": "text",
"enabled": true
@dendihandian
dendihandian / elasticsearch-examples.postman_collection.json
Last active June 24, 2018 16:09
Elasticsearch requests examples documented as postman collection. Here the env used as well https://gist.github.com/dendihandian/5d91d0ee22fead4fadc2cca482c05904
{
"info": {
"_postman_id": "467b0172-d345-4e3b-9bbb-edc7076ae771",
"name": "Elasticsearch Examples",
"description": "Elasticsearch Version: 6.3\n\nHow to install elasticsearch: https://blog.drizzersilverberg.com/2018/06/06/memulai-elasticsearch/\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Shop",