Skip to content

Instantly share code, notes, and snippets.

View tajoma9x's full-sized avatar
🫡
o pilin wawa!

tajoma9x

🫡
o pilin wawa!
View GitHub Profile
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active March 8, 2026 16:14
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
@akornatskyy
akornatskyy / string_split_with_comma_1.lua
Last active May 24, 2024 00:36
Lua: How to separate string with comma
local function split_with_comma(str)
local fields = {}
for field in str:gmatch('([^,]+)') do
fields[#fields+1] = field
end
return fields
end
@cobyism
cobyism / gh-pages-deploy.md
Last active February 17, 2026 22:18
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).