Skip to content

Instantly share code, notes, and snippets.

@mbejda
mbejda / Industries.csv
Last active May 20, 2024 05:42
Compiled list of industries.
Industry
Accounting
Airlines/Aviation
Alternative Dispute Resolution
Alternative Medicine
Animation
Apparel/Fashion
Architecture/Planning
Arts/Crafts
Automotive

Quick start

Tauri is shipped with state management function/feature by default.

Basic usage is quite simple: a variable of State type can be accessed on the tauri commands which you have defined; in other words, "with tauri commands, they'll magically inject state for you," so that once a variable is managed you can inject them directly as additional input when defining the command.

Example Implementation

@prnk28
prnk28 / ObjectCollisionPrediction.cs
Created April 4, 2017 17:56
Predict Object Collision using Unity Physics
protected virtual bool ObjectCollisionPrediction(GameObject n)
{
// Get Objects
MovingObject existing = GameObject.FindWithTag("Obstacle").GetComponent<MovingObject>();
MovingObject next = n.GetComponent<MovingObject>();
// Append names of the objects b/c they are from a pool
string existingName = existing.name.Substring(existing.name.Length - 2);
string nextName = next.name.Substring(next.name.Length - 2);
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 20, 2024 05:40
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.btn{display:inline-block;width:22px;height:22px;vertical-align:middle;background-color:transparent;background-size:contain !important;}
#X{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA7CAYAAAAn+enKAAAABGdBTUEAALGPC/xhBQAAAYRpQ0NQSUNDIHByb2ZpbGUAACiRfZE9SMNAHMVfU0uLVBTMIOKQoTrZRUUcSxWLYKG0FVp1MLn0C5q0JCkujoJrwcGPxaqDi7OuDq6CIPgB4uzgpOgiJf4vKbSI8eC4H+/uPe7eAUKryjSzLwZoumWkE3Epl1+Vgq8IQIQfQwjJzKwnM4tZeI6ve/j4ehflWd7n/hwDasFkgE8ijrG6YRFvEM9uWnXO+8QiK8sq8TnxpEEXJH7kuuLyG+eSwwLPFI1sep5YJJZKPaz0MCsbGvEMcUTVdMoXci6rnLc4a9UG69yTvzBc0FcyXKc5hgSWkEQKEhQ0UEEVFqK06qSYSNN+3MM/6vhT5FLIVQEjxwJq0CA7fvA/+N2tWZyecpPCcSDwYtsf40BwF2g3bfv72LbbJ4D/GbjSu/5aC5j7JL3Z1SJHwOA2cHHd1ZQ94HIHGHmqy4bsSH6aQrEIvJ/RN+WB4Vugf83trbOP0wcgS10t3wAHh8BEibLXPd4d6u3t3zOd/n4AP+xykrvEBfIAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAHdElNRQfoBRQENiXkSZEZAAAAGXRFWHRDb21tZW
volatile int NbTopsFan;
int Calc;
int hallsensor = 2;
void rpm ()
{
NbTopsFan++;
}
void setup()
{
pinMode(hallsensor, INPUT);
@mfyz
mfyz / take-backup.sh
Last active May 20, 2024 05:39
External SSD Backup Script
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Run command below in terminal:
#
#
# sudo sh /Volumes/ExtremeSSD/Backup/Take-Backups.sh
#
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@bkanhu
bkanhu / beginners_ubuntu.md
Last active May 20, 2024 05:38
A Beginners Guide on Things To Do After Installing Ubuntu.

Beginners Ubuntu

A Beginners Guide To Things To Do After Installing Ubuntu.

1. Check For Updates

sudo apt update && sudo apt upgrade

2. Enable additional repositories for more software

Ubuntu has several repositories from where it provides software for your system. Enabling all these repositories will give you access to more software and proprietary drivers.

@diego3g
diego3g / settings.json
Last active May 20, 2024 05:33
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 14,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [80, 120],
"extensions.ignoreRecommendations": true,
"typescript.tsserver.log": "off",
"files.associations": {
@szaydel
szaydel / dummyprog.go
Created September 11, 2015 19:03
Access StdIn of Exec'd process with Golang
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, What's your favorite number?")
var i int
fmt.Scanf("%d\n", &i)