Hello, //world//
This file contains 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
;Launch Command Prompt From Anywhere | |
;CTRL+ALT+T (Linux style Terminal) | |
^!t:: | |
CmdFolder := "C:\Path\To\Default\Dir" | |
IfWinActive ahk_class CabinetWClass | |
{ | |
; This is required to get the full path of the file from the address bar | |
WinGetText, full_path, A | |
; Split on newline (`n) |
This file contains 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
import sys | |
import os | |
def we_are_frozen(): | |
# All of the modules are built-in to the interpreter, e.g., by py2exe | |
return hasattr(sys, "frozen") | |
def module_path(): | |
encoding = sys.getfilesystemencoding() | |
if we_are_frozen(): |
This file contains 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
$ pyperformance compare benchmarks/gh-91054.json benchmarks/gh-91054-baserev.json -O table | |
gh-91054.json | |
============= | |
Performance version: 1.0.6 | |
Report on Linux-5.15.0-1022-aws-x86_64-with-glibc2.31 | |
Number of logical CPUs: 72 | |
Start date: 2022-11-28 21:33:26.652340 | |
End date: 2022-11-28 22:52:43.947737 |
This file contains 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
3.12-baseline.20230424.1.json | |
============================= | |
Performance version: 1.0.7 | |
Report on Linux-5.15.0-1033-aws-x86_64-with-glibc2.31 | |
Number of logical CPUs: 72 | |
Start date: 2023-04-24 16:20:46.174823 | |
End date: 2023-04-24 17:56:34.787522 | |
3.12-defer-task-name-format.20230424.1.json |
This file contains 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
Benchmarks with tag 'apps': | |
=========================== | |
Benchmark hidden because not significant (4): 2to3, docutils, html5lib, tornado_http | |
Benchmarks with tag 'math': | |
=========================== | |
+----------------+---------------------------+----------------------------+ | |
| Benchmark | 3.12-full-base.20230429.2 | 3.12-full-defer.20230429.2 | |
This file contains 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
# build it with ASAN | |
clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer test.cpp -o test |
This file contains 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
#include "Python.h" | |
PyObject* get_message(PyObject* self, PyObject* args) { | |
PyObject* message = PyUnicode_FromString("hello from extension"); | |
return message; | |
} | |
static PyMethodDef hello_methods[] = { | |
{"get_message", | |
get_message, |