Skip to content

Instantly share code, notes, and snippets.

View yangyang5214's full-sized avatar
🎯
Focusing

beer yangyang5214

🎯
Focusing
View GitHub Profile
@jl2
jl2 / gpxparse.c
Created May 7, 2010 05:14
Parse GPX file using libxml2
/* gpxparse.c
Copyright (c) 2010, Jeremiah LaRocco [email protected]
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
@simonw
simonw / wget.md
Created December 9, 2016 06:38
Recursive wget ignoring robots
$ wget -e robots=off -r -np 'http://example.com/folder/'
  • -e robots=off causes it to ignore robots.txt for that domain
  • -r makes it recursive
  • -np = no parents, so it doesn't follow links up to the parent folder
@fooleap
fooleap / use-amap-api-to-show-running-line.html
Last active December 18, 2023 09:29
高德地图 API 显示跑步路线
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.3, user-scalable=no" />
<title>跑步路线地图</title>
<style>
html,body, #map{
margin: 0;