Skip to content

Instantly share code, notes, and snippets.

View lnsoso's full-sized avatar

lnsoso lnsoso

  • Beijing
View GitHub Profile
@tylermorganwall
tylermorganwall / submarine_cable_map.R
Last active July 6, 2024 21:07
Submarine Cable Map Dataviz
library(geojsonsf)
library(sf)
library(rayrender)
#Data source: https://github.com/telegeography/www.submarinecablemap.com
cables = geojson_sf("cable-geo.json")
cablescene = list()
counter = 1
for(i in 1:length(cables$geometry)) {
@TheJLifeX
TheJLifeX / 00-hand-gesture-recognition.gif
Last active June 28, 2024 06:57
Simple Hand Gesture Recognition Code - Hand tracking - Mediapipe
00-hand-gesture-recognition.gif
@LaughingLeader
LaughingLeader / meta.lsx
Last active September 7, 2023 08:12
Origin multiplayer limit override for Divinity: Original Sin 2: Definitive Edition. Right click Raw -> Save Link As, then place this file at "Divinity Original Sin 2\DefEd\Data\Mods\DivinityOrigins_1301db3d-1f54-4e98-9be5-5094030916e4\meta.lsx". Make the folders as needed. The "NumPlayers" value is the player limit.
<?xml version="1.0" encoding="UTF-8" ?>
<save>
<header version="2" />
<version major="3" minor="6" revision="2" build="0" />
<region id="Config">
<node id="root">
<children>
<node id="Dependencies">
<children>
<node id="ModuleShortDesc">
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
--[[ config
root = "./"
listen = "127.0.0.1:8786"
redisaddr = "127.0.0.1:6379[1]"
dbfile = root .. "backup.db"
thread = 4
logger = nil
harbor = 1
@khsing
khsing / fix_phone_labels.py
Created December 11, 2013 08:40
被QQ通讯录搞花了通讯录的标签,用该脚本修复一下
#!/usr/bin/python
# coding:utf-8
import sys
from AddressBook import *
from pprint import pprint
MAPPING = {
u'工作传真': kABPhoneWorkFAXLabel,
u'住宅传真': kABPhoneHomeFAXLabel,
@fengmk2
fengmk2 / svn-to-git.md
Last active March 23, 2018 10:45
从 svn 迁移到 gitlab svn to git

从 svn 迁移到 gitlab

找出所有提交者

$ svn log --xml | grep author | sort -u | perl -pe 's/.>(.?)<./$1 = /'

手动设置对应关系 users.txt

@jakeonrails
jakeonrails / Ruby Notepad Bookmarklet
Created January 29, 2013 18:08
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active July 17, 2024 14:20
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@summic
summic / post-receive.sh
Created January 2, 2013 11:26
post-receive
#!/bin/sh
#
cd "/var/www/domain.com/" || exit
unset GIT_DIR
echo "git status info:"
git status
echo "*************************************";