Skip to content

Instantly share code, notes, and snippets.

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 19, 2024 11:00
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@EvieePy
EvieePy / bot_example.py
Last active April 19, 2024 10:58
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
@Hakky54
Hakky54 / openssl_commands.md
Last active April 19, 2024 10:58 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@sindresorhus
sindresorhus / esm-package.md
Last active April 19, 2024 10:56
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@BobbyESP
BobbyESP / libs.versions.toml
Created April 29, 2023 10:05
A very complete TOML file for Android Development mainly thought for the new Jetpack Compose framework
[versions]
accompanist = "0.29.2-rc"
androidGradlePlugin = "7.4.2"
androidxComposeBom = "2023.01.00"
androidxComposeCompiler = "1.4.6"
androidxCore = "1.10.0-rc01"
androidMaterial = "1.9.0-alpha02"
androidxAppCompat = "1.7.0-alpha02"
androidxActivity = "1.7.1"
markdownDependency = "0.3.2"
@l1997i
l1997i / NotesOnLaTeX.md
Last active April 19, 2024 10:53
My notes for LaTeX

LaTeX 学习笔记

Author:李 理

部分代码来源于网络,所有原创文章采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。

常规操作

插入图片、图注和引用

@hootlex
hootlex / laravellocal.md
Last active April 19, 2024 10:52
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@tluyben
tluyben / s-expression.ts
Created July 5, 2023 08:57
simple s-expression parser for typescript
export function parse(lisp: string) {
const lexer = /"[^"]*"|\(|\)|[^\s()]+/g;
const ts = lisp.match(lexer)!;
let i = 0
const rec = () => {
let prg: any = undefined
while (i < ts.length) {
if (ts[i] === '(') {
if (!prg) {
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown