This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM i386/ubuntu:18.04 | |
WORKDIR /app | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
build-essential \ | |
binutils \ | |
gdb \ | |
gcc-multilib \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; !代表alt +代表shit键 | |
!q:: Send !{f4} | |
!w:: Send ^w | |
!c:: Send ^c | |
!v:: Send ^v | |
!x:: Send ^x | |
!z:: Send ^z | |
!l:: Send ^l | |
!f:: Send ^f | |
!t:: Send ^t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
let rsshub_host = 'https://rsshub.app'; | |
let cnblog = 'https://www.cnblogs.com/'; | |
let csdn = 'https://blog.csdn.net/'; | |
let jianshu_user = '/jianshu/user/'; | |
let zhihu_user = '/zhihu/people/activities/'; | |
let zhihu_collection = '/zhihu/collection/'; | |
let bilibili_user = '/bilibili/user/video/'; | |
let jike_topic = '/jike/topic/'; |
Raymond Hettinger's professional at doing code review and architecture review
P vs. NP. Pythonic vs. Non-Pythonic.
- Golden rule of PEP-8: PEP-8 onto yourself. PEP 8 is style guide, not a law book.
- Care about intelligibility, not simply visually better
- Transforming (Java) API to pythonic ones
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
Summary of GDB commands for x86-64 Systems
Reformated from http://csapp.cs.cmu.edu/3e/docs/gdbnotes-x86-64.txt
NewerOlder