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
| # Makefile for building Lua on Windows with MSVC | |
| # See ../doc/readme.html for installation and customization instructions. | |
| # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= | |
| # Your platform. See PLATS for possible values. | |
| PLAT= msvc | |
| CC= cl.exe | |
| CFLAGS= /O2 /Wall /DLUA_BUILD_AS_DLL $(SYSCFLAGS) $(MYCFLAGS) |
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 contextlib import contextmanager | |
| import datetime | |
| import hashlib | |
| import inspect | |
| import itertools | |
| import json | |
| import os | |
| from pathlib import Path | |
| import re | |
| import sqlite3 |
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
| import asyncio, tkinter | |
| import ctypes | |
| import math | |
| import threading | |
| from types import coroutine | |
| __all__ = ["ATk"] | |
| if tkinter.TclVersion == 8.6: | |
| try: |
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
| import argparse | |
| import asyncio | |
| import ctypes | |
| import concurrent | |
| from contextlib import AsyncExitStack, ExitStack, asynccontextmanager, closing, contextmanager | |
| import csv | |
| import functools | |
| import inspect | |
| import logging | |
| import os |
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
| # https://github.com/hexpm/hex/pull/727#issuecomment-3165170464 | |
| export HEX_UNSAFE_HTTPS=1; |
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
| defmodule Foo.SimpleRNG do | |
| @moduledoc """ | |
| A simple glue layer to use CTR-mode `:crypto` algorithms with the `:rand` module. | |
| iex> new(:aes_128_ctr, <<0::size(128)>>) | |
| ...> |> :rand.seed() | |
| iex> :rand.uniform(10**10) | |
| 3992083247 | |
| iex> :rand.uniform(10**10) | |
| 4813258075 |
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
| // https://en.wikipedia.org/wiki/List_of_UTC_offsets | |
| const TZLETTER = new Map([ | |
| [0, "Z"], | |
| [60, "N"], | |
| [120, "O"], | |
| [180, "P"], | |
| [210, "P30"], | |
| [240, "Q"], | |
| [300, "R"], | |
| [360, "S"], |
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
| { | |
| // File > Preferences > Settings > User > Terminal > Integrated > Env | |
| "terminal.integrated.env.windows": { | |
| "GIT_EDITOR": "code -w" | |
| } | |
| } |
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
| p code, code[role=presentation] { | |
| font-size: 1.140625em; | |
| } |
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
| // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/escape#return_value | |
| const NEEDS_ESCAPE = new RegExp("(^[0-9A-Za-z]|[,-=<>#&!%:;@~'`\"])|([\\^\\$\\\\\\.\\*\\+\\?\\(\\)\\[\\]\\{\\}\\|\\/])|([\\t\\f\\n\\v\\r\\x20])|(\\s(?<![\\u0000-\\u007f]))|([\\ud800-\\udbff](?=$|[^\\udc00-\\udfff])|[\\udc00-\\udfff](?<=^.|[^\\ud800-\\udbff].))", "gs"); | |
| const CHAR_ESCAPES = { "\u0009": '\\t', "\u000c": '\\f', "\u000a": '\\n', "\u000b": '\\v', "\u000d": '\\r', "\u0020": '\\x20' }; | |
| function _escape(m, hex, backslash, ascii_whitespace, nonascii_whitespace, lone_surrogate) { | |
| if (hex !== undefined) | |
| return `\\x${hex.charCodeAt(0).toString(16).padStart(2, "0")}`; | |
| if (backslash !== undefined) | |
| return `\\${backslash}`; | |
| if (ascii_whitespace !== undefined) |
NewerOlder