Skip to content

Instantly share code, notes, and snippets.

@wey-gu
wey-gu / .py
Created March 23, 2023 06:32
NebulaGraph_to_NetworkX
# nebulagraph --> networkX
## 从 NebulaGraph 中获得一张图,存储为 pd dataframe
from nebula3.gclient.net import ConnectionPool
from nebula3.Config import Config
import pandas as pd
from typing import Dict
from nebula3.data.ResultSet import ResultSet
@xgdgsc
xgdgsc / pomo_reminder.py
Created September 18, 2017 13:46
pomotodo task switch reminder
import requests
import json
from datetime import datetime, timedelta
import os
if os.name == 'nt':
from win10toast import ToastNotifier
toaster = ToastNotifier()
//from config import *
POMO_URL='https://api.pomotodo.com/1/pomos'

Linux 命令行编辑快捷键

初学者在Linux命令窗口(终端)敲命令时,肯定觉得通过输入一串一串的字符的方式来控制计算是效率很低。 但是Linux命令解释器(Shell)是有很多快捷键的,熟练掌握可以极大的提高操作效率。 下面列出最常用的快捷键,这还不是完全版。

  • 命令行快捷键:
    • 常用:
      • Ctrl L :清屏
  • Ctrl M :等效于回车
@lorenzos
lorenzos / android-screen-to-gif.sh
Last active March 30, 2019 21:00
Captures screen from Android device via ADB and makes a 180x320 GIF
#!/bin/bash
# How to install:
# exo-open "http://developer.android.com/sdk/index.html#Other"
# sudo apt-get install libav-tools imagemagick
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh
# chmod a+x android-screen-to-gif.sh
# Help message
function usage() {