Skip to content

Instantly share code, notes, and snippets.

@steven2358
steven2358 / ffmpeg.md
Last active May 10, 2024 20:57
FFmpeg cheat sheet
@Composable
fun MainScreen() {
Column(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.surface),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
AnimatedBorderCard(
@miguelmota
miguelmota / rsa_util.go
Last active May 10, 2024 20:54
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 10, 2024 20:54
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

param(
[parameter(Mandatory)]
$user,
[System.Management.Automation.SwitchParameter]
$delete,
[string]
$yourUsername,
/*
* This script fetches all color styles from a Figma team/document.
*
* Dependencies:
*
* - node-fetch
*
* Due to a limitation in the Figma /styles endpoint, we need to use a
* document for actually using the colors in a color grid 🙄That's why
* we're both fetching from /styles and /files below.
@stevebauman
stevebauman / RouteServiceProvider.php
Last active May 10, 2024 20:50
Throw exception on Eloquent model binding name mismatch
<?php
namespaced App\Providers;
use RuntimeException;
use Illuminate\Support\Facades\Route;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Routing\ImplicitRouteBinding;
class RouteServiceProvider extends ServiceProvider
@dsample
dsample / README.md
Last active May 10, 2024 20:47
ASCII art diagrams

ASCI art characters for creating diagrams

Characters:

Single line

  • ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
  • ASCII code 192 = └ ( Box drawing character single line lower left corner )
  • ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
  • ASCII code 194 = ┬ ( Box drawing character single line horizontal down )
@AlBannaTechno
AlBannaTechno / GEOVIA Surpac Resoueces.md
Created November 25, 2019 15:56
GEOVIA Surpac Videos & Books
[many tutorials]https://www.youtube.com/user/agosie/playlists

[from beginner to advanced] : https://www.youtube.com/watch?v=7nqM2P6vXb4&list=PLXjEkCD7CwxhaBdtzgnqaOVooUse0o2se

[From Beginner to advanced for Surpac 6.6.2+] : https://www.youtube.com/watch?v=YPBPIuUIIhg&list=PL_7hR7sVzPsLZrdcKX3bixt3zfZ2PhOxd

[modern tutorials] : https://www.youtube.com/watch?v=L2Y477QS8RY&list=PLeMIZhmqTIlCH_ZQJtNNRarqbvTRRlwEs