Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| # coding: utf-8 | |
| # Barcode scanner demo for Pythonista | |
| # Based on http://www.infragistics.com/community/blogs/torrey-betts/archive/2013/10/10/scanning-barcodes-with-ios-7-objective-c.aspx | |
| from objc_util import * | |
| from ctypes import c_void_p | |
| import ui | |
| import sound | |
| found_codes = set() |
| # coding=utf-8 | |
| """ | |
| tornado异步爬虫示例 | |
| """ | |
| import time | |
| from datetime import timedelta | |
| from bs4 import BeautifulSoup | |
| from tornado.httpclient import AsyncHTTPClient | |
| from tornado import ioloop, gen, queues |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
| # coding: utf-8 | |
| import json | |
| import re | |
| import requests | |
| # 替换成你自己的经纬度数据 | |
| # 查询方式 打开饿了么官网 -> 开发者模式 -> 输入送餐地址 -> 观察请求 -> 找到经纬度数据 | |
| latitude = 31.23978 | |
| longitude = 121.49968 |
| #!/bin/bash | |
| # | |
| # Created: 2017-07-02 16:20 | |
| # Updated: 2018-02-09 12:23 | |
| # Creator: Ryan Miller | |
| # Website: http://devopsmachine.com/ | |
| # File: /usr/local/bin/set-primary-monitor-pantheon-greeter | |
| # | |
| # Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS. | |
| # |
| Generating random data (100.00MB) | |
| Start benchmark rc4-md5 | |
| Encrypt data in 0.224s | |
| Decrypt data in 0.222s | |
| Start benchmark aes-128-cfb | |
| Encrypt data in 0.599s | |
| Decrypt data in 0.597s | |
| Start benchmark aes-256-cfb |
(NB: adapted from this Ask Ubuntu thread -- tested to work on Ubuntu 16.04 LTS through Ubuntu 22.04 LTS (Jammy).
Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.
Install open-vm-tools and run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !