Skip to content

Instantly share code, notes, and snippets.

View insyri's full-sized avatar
🚴
...faster

insyri insyri

🚴
...faster
View GitHub Profile
@spudbean
spudbean / gist:1558257
Last active August 1, 2025 22:47
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@scokmen
scokmen / HttpStatusCode.ts
Created April 25, 2017 11:10
Typescript Http Status Codes Enum
"use strict";
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body
// https://docs.microsoft.com/en-us/javascript/api/@azure/keyvault-certificates/requireatleastone
export type RequireAtLeastOne<T> = {
[K in keyof T]-?: Required<Pick<T, K>> &
Partial<Pick<T, Exclude<keyof T, K>>>;
}[keyof T];
export type ExampleOne = RequireAtLeastOne<{
optionOne: string;
optionTwo: string;
}>
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active August 4, 2025 01:17
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
// There are two ways you can do this, the first being using a globals.d.ts file.
// Here, you would specify types like this..
// .d.ts
namespace NodeJS {
interface ProcessEnv {
SUPER_SECRET_TOKEN: string;
}
}
local http_request = require('./http.lua')
local API = {}
local API_KEY = require('./apikey.lua')
local API_URL = 'https://api.strafes.net/v1/'
local API_HEADER = { {'Content-Type','application/json'}, { 'api-key', API_KEY } }
local t=tostring
local r=function(n,nd) return tonumber(string.format('%.' .. (nd or 0) .. 'f', n)) end
local GAMES={BHOP=1,SURF=2,[1]='bhop',[2]='surf'}