Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #include <time.h> // Robert Nystrom | |
| #include <stdio.h> // @munificentbob | |
| #include <stdlib.h> // for Ginny | |
| #define r return // 2008-2019 | |
| #define l(a, b, c, d) for (i y=a;y\ | |
| <b; y++) for (int x = c; x < d; x++) | |
| typedef int i;const i H=40;const i W | |
| =80;i m[40][80];i g(i x){r rand()%x; | |
| }void cave(i s){i w=g(10)+5;i h=g(6) | |
| +3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u |
| (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 = () => { |
| { | |
| "mongod_post44": { | |
| "title": "MongoDB 4.4 Log format", | |
| "description": "New log format beginning with MongoDB 4.4", | |
| "url": "https://docs.mongodb.com/manual/reference/log-messages/index.html#structured-logging", | |
| "json": true, | |
| "file-pattern": ".*mongodb.log", | |
| "line-format": [ | |
| { "field": "__timestamp__" }, | |
| " ", |
| #!/usr/bin/env python3 | |
| # _*_ coding:utf-8 _*_ | |
| import ctypes | |
| import os | |
| from ctypes import windll, wintypes | |
| from typing import Optional | |
| NULL: int = 0 |
| # https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
| [metadata] | |
| name = {name} | |
| version = file: {name}/_version.txt | |
| author = Martin Larralde | |
| author_email = [email protected] | |
| url = https://github.com/althonos/{name} | |
| description = {description} | |
| long_description = file: README.md |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| // How to download telegram sticker images | |
| /* | |
| 1. Go to Telegram Web; | |
| 2. Open console (F12); | |
| 3. Paste the code below in the console and press Enter; | |
| 4. Open your stickers menu and make sure you see the sticker pack you want to download (so Telegram will load it). | |
| 5. At the console paste and run "downloadStickers()" any time you want to download a pack. | |
| 6. [Convert .webm to another format](http://www.freewaregenius.com/convert-webp-image-format-jpg-png-format/); | |
| 7. Happy hacking. |
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |