Skip to content

Instantly share code, notes, and snippets.

View lipingyang-geoai's full-sized avatar

Liping-GeoAI lipingyang-geoai

View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lipingyang-geoai
lipingyang-geoai / README.md
Created May 2, 2020 20:47 — forked from syntagmatic/README.md
Crossfilter with d3.csv
@lipingyang-geoai
lipingyang-geoai / .gitignore
Created April 28, 2020 22:35 — forked from pdbartsch/.gitignore
U.S. National Parks TopoJSON
*.archive
*.zedstate
@lipingyang-geoai
lipingyang-geoai / .block
Created April 23, 2020 04:55 — forked from mbostock/.block
Zoom to Bounding Box
license: gpl-3.0
redirect: https://observablehq.com/@d3/zoom-to-bounding-box
@lipingyang-geoai
lipingyang-geoai / pune-info.html
Created March 24, 2020 17:45 — forked from answerquest/pune-info.html
Leaflet combine geojson map data with CSV data (working example)
<!DOCTYPE html>
<html>
<head>
<title>Pune Info</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="lib/leaflet.css" /> <!-- original: http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css -->
<link rel="stylesheet" href="lib/leaflet-search.css" />
<link rel="stylesheet" href="lib/leaflet-measure.css">
<link rel="stylesheet" href="lib/leaflet.label.css">
<link rel="stylesheet" href="lib/Control.FullScreen.css" />
@lipingyang-geoai
lipingyang-geoai / SQL Cheat Sheet.md
Created July 9, 2019 16:58 — forked from janikvonrotz/SQL Cheat Sheet.md
SQL Cheat Sheet#SQL#Markdown

SQL languages

DDL is short name of Data Definition Language, which deals with database schemas and descriptions, of how the data should reside in the database.

DML is short name of Data Manipulation Language which deals with data manipulation, and includes most common SQL statements such SELECT, INSERT, UPDATE, DELETE etc, and it is used to store, modify, retrieve, delete and update data in database.

DCL is short name of Data Control Language which includes commands such as GRANT, and mostly concerned with rights, permissions and other controls of the database system.

Datatypes

Text types

@lipingyang-geoai
lipingyang-geoai / gist:d95dbe0e33614bf2f8bafd059bda2e0a
Created May 21, 2019 18:40 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

******************************************************************** Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor********************************************************************

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn
@lipingyang-geoai
lipingyang-geoai / nwxpython.py
Created April 18, 2019 22:09 — forked from shobhit/nwxpython.py
Put Images as Nodes using Networkx and Python
import networkx as nx
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img=mpimg.imread('/home/shobhit/Desktop/shobhit.jpg')
# draw graph without images
G =nx.Graph()
G.add_edge(0,1,image=img,size=0.1)
G.add_edge(1,2,image=img,size=0.05)
G.add_edge(2,3,image=img,size=0.02)
G.add_edge(3,4,image=img,size=0.075)