Skip to content

Instantly share code, notes, and snippets.

@salarcode
salarcode / BluetoothPermissions.Android.cs
Last active April 17, 2024 00:00
MAUI Bluetooth Permission Declaration (for Android)
// IMPORTANT: Put this file in `Platforms/Android/` directory.
using Microsoft.Maui.ApplicationModel;
using System.Collections.Generic;
/// <summary>
/// MAUI Bluetooth Permission Decleration (for Android).
/// </summary>
/// <remarks>
/// IMPORTANT: Put this file in `Platforms/Android/` directory.
/// </remarks>
@kouaml
kouaml / hello.c
Last active April 16, 2024 23:58
Mon hello world
int main()
{
printf("Hello world")
return 0;
}
@TCHIMOGUIO
TCHIMOGUIO / hello.c
Last active April 16, 2024 23:57
mon hello word
int main()
{
printf("hello world");
return 0;
}
@chetan
chetan / yardoc_cheatsheet.md
Last active April 16, 2024 23:49
YARD cheatsheet
@no-defun-allowed
no-defun-allowed / selling-lisp-by-the-pound.org
Last active April 16, 2024 23:42
Selling Lisp by the pound

Selling Lisp by the Pound

“Paper late!” cried a voice in the crowd,

“Old man dies!” The note he left was signed,

‘Old Kiczales’ - it seems he’s drowned!

@pebbie
pebbie / su.py
Last active April 16, 2024 23:42
Implementation of document binarization algorithm by (Bolan Su et al, 2010)
"""
author: Peb Ruswono Aryan
Binarization Algorithm by Su et al.
@inproceedings{Su:2010:BHD:1815330.1815351,
author = {Su, Bolan and Lu, Shijian and Tan, Chew Lim},
title = {Binarization of Historical Document Images Using the Local Maximum and Minimum},
booktitle = {Proceedings of the 9th IAPR International Workshop on Document Analysis Systems},
series = {DAS '10},
@TallonRain
TallonRain / config.fish
Last active April 16, 2024 23:42
Set up Fish Shell to use gpg-agent as the SSH agent for Yubikeys and other smart cards
# Add these contents to ~/.config/fish/config.fish
# If using Brew, config.fish is located in /usr/local/Cellar/fish/[version]/etc/fish/
# Generally recommend using the installer from https://fishshell.com instead of brew
# to avoid version updates overwriting the config file
# Start or re-use a gpg-agent.
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -e SSH_AUTH_SOCK
@lopspower
lopspower / README.md
Last active April 16, 2024 23:38
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@Klerith
Klerith / templateSlice.js
Last active April 16, 2024 23:36
Cascaron para crear Redux Slices rápidamente
import { createSlice } from '@reduxjs/toolkit';
export const templateSlice = createSlice({
name: 'name',
initialState: {
counter: 10
},
reducers: {
increment: (state, /* action */ ) => {
//! https://react-redux.js.org/tutorials/quick-start