Skip to content

Instantly share code, notes, and snippets.

View MateusAquino's full-sized avatar
🐰
Typing all the way to heaven

Mateus MateusAquino

🐰
Typing all the way to heaven
View GitHub Profile
import time
import math
import torch
import taichi as ti
import taichi.math as tm
import tinytex as ttex
from tinycio import fsio
@ILadis
ILadis / PKGBUILD
Last active September 25, 2021 20:44
PKGBUILD for wine-staging with League of Legends fixes and GloriousEggroll patches
pkgname=wine-lol
pkgver=6.16
pkgrel=1
arch=(x86_64)
pkgdesc='A compatibility layer for running Windows programs - Staging branch with League of Legends fixes'
makedepends=('autoconf' 'bison' 'flex' 'make' 'gcc' 'patch' 'pkgconfig' 'vulkan-headers')
depends=(
'fontconfig' 'lib32-fontconfig'
@imAliAzhar
imAliAzhar / emoji-list
Last active January 15, 2023 17:59
Create an Emoji selector menu with Rofi
<span lang="face with tears of joy"> 😂 </span>
<span lang="grinning face with smiling eyes"> 😄 </span>
<span lang="grinning face with sweat"> 😅 </span>
<span lang="face with rolling eyes"> 🙄 </span>
<span lang="smirking face"> 😏 </span>
<span lang="smiling face with halo"> 😇 </span>
<span lang="grinning face"> 😀 </span>
<span lang="squinting face with tongue"> 😝 </span>
<span lang="grinning face with big eyes"> 😃 </span>
<span lang="unamused face"> 😒 </span>
@peteroid
peteroid / unity-arduino-mpu6050.cs
Last active December 16, 2017 12:30
Get the quaternion from arduino output string with filter
// !!! Attention !!!
void initPort (SerialPort port) {
// set this encoding to extend the ascii range
port.Encoding = System.Text.Encoding.GetEncoding(28591);
}
// Take a string and parse the quaternion and corresponding index
// return:
// quat = Quaternion.identity if packet is invalid
// index = -1 if packet is invalid
@jagrosh
jagrosh / WebhookTutorial.md
Last active September 19, 2024 03:24
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
@Vestride
Vestride / encoding-video.md
Last active November 15, 2024 17:57
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>