Skip to content

Instantly share code, notes, and snippets.

@andreydelpozo2
andreydelpozo2 / gist:4ea9d84857d370e0577e522b201116ae
Created January 12, 2025 23:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
Two pointers: one input, opposite ends
```python3
def fn(arr):
left = ans = 0
right = len(arr) - 1
while left < right:
# do some logic here with left and right
if CONDITION:

Unity has changes how to create server build in 2021

Building from script

replace:

if (serverBuild)
    buildOptions |= BuildOptions.EnableHeadlessMode;
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active January 13, 2025 00:11
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@dpaluy
dpaluy / .cursorrules
Last active January 13, 2025 00:11
CursorAI for Rails
# General Ruby Styling
PREFER_RUBY_SYNTAX: >
- Use Ruby 3.x syntax
- Use snake_case for methods and variables
- Use CamelCase for classes and modules
- Use SCREAMING_SNAKE_CASE for constants
- Prefer string interpolation over concatenation
- Use modern hash syntax: { key: value }
- Use double quotes only when interpolation is needed
/*
** Buggy-Mouse.ahk - Fix a buggy mouse. Stop it from double-clicking when you try to single-click.
**
** NOTE: Please use this URL when linking to Buggy Mouse: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse
**
** Updated: Thu, Nov 1, 2012 --- 11/1/12, 10:19:19am EDT
** Location: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse
**
** Keywords: mouse double clicks when I click once
** Keywords: mouse double clicks when I single click
@dennie170
dennie170 / README.md
Created September 10, 2024 18:51
Install Home Assistant OS (HAOS) on Raspberry Pi 5 with M.2 NVME drive

Install HAOS on Raspberry Pi 5 with M.2 NVME drive

In order to get Home Assistant OS running on a Raspberry Pi with an NVME drive, we have to take a slight detour. Here are the steps I took to get it fully working.

Prerequisites

  1. Raspberry Pi 5
  2. PCIe NVME SSD hat
  3. M.2 PCIe NVME SSD
  4. Micro SD card reader in your computer
@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active January 13, 2025 00:06
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@supercleanse
supercleanse / email_template.php
Created August 19, 2015 19:57
The default email template for MemberPress
<html style="font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; padding: 20px; position: relative; text-align: center; background-color: #efefef;">
<head>
<meta http-equiv="Content-Type" content="text/html;UTF-8" />
</head>
<body style="background-color: #efefef;">
<div id="header-pad" style="width: 680px; height: 5px; padding 0; margin: 0 auto; text-align: left;">
</div>
<?php echo $body; ?>
<div id="footer-pad" style="width: 680px; height: 50px; padding 0; margin: 0 auto; text-align: left;">
</div>
@bradland
bradland / script_base.rb
Last active January 13, 2025 00:00
Base Ruby shell scripting template. Uses std-lib only; parses options; traps common signals.
#!/usr/bin/env ruby
# frozen_string_literal: true
require "ostruct"
require "optparse"
require "bigdecimal"
require "csv"
require "pry"
## Embedded ScriptUtils library; because, scripting!