Skip to content

Instantly share code, notes, and snippets.

View SmatMan's full-sized avatar
🎒
School

arjun SmatMan

🎒
School
  • Toronto, Canada
  • 18:25 (UTC -04:00)
View GitHub Profile
@Mike-Schvedov
Mike-Schvedov / MouseMovement.cs
Created August 29, 2024 12:37
MouseMovement - Survival Series Episode 1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MouseMovement : MonoBehaviour
{
public float mouseSensitivity = 100f;
float xRotation = 0f;
@Mike-Schvedov
Mike-Schvedov / PlayerMovement.cs
Created August 29, 2024 12:36
PlayerMovement - Survival Series Episode 1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public CharacterController controller;
public float speed = 12f;
public float gravity = -9.81f * 2;
@ppoffice
ppoffice / README.md
Last active March 30, 2025 02:11
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@forslund
forslund / librespot-dev.sh
Last active December 21, 2024 02:42
Building deb package for librespot
# Add deb-src entry for your distribution
sudo echo "deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted multiverse universe" >> /etc/apt/sources.list
sudo apt-get update
# Install pre-requisites
sudo apt-get build-dep -y cargo
sudo apt-get install -y libssl-dev libcurl4-gnutls-dev quilt
# Install cargo-deb to build debin packages through cargo
cargo install cargo-deb
@yanqd0
yanqd0 / dl_requests_tqdm.py
Last active February 4, 2025 23:10
Python requests download file with a tqdm progress bar
import requests
from tqdm import tqdm
def download(url: str, fname: str, chunk_size=1024):
resp = requests.get(url, stream=True)
total = int(resp.headers.get('content-length', 0))
with open(fname, 'wb') as file, tqdm(
desc=fname,
total=total,
According to all known laws of aviation, there is no way a bee should be able to fly.
Its wings are too small to get its fat little body off the ground.
The bee, of course, flies anyway because bees don't care what humans think is impossible.
Yellow, black. Yellow, black. Yellow, black. Yellow, black.
Ooh, black and yellow!
Let's shake it up a little.
Barry! Breakfast is ready!
Coming!
Hang on a second.
Hello?
@derek-schaefer
derek-schaefer / speedtest.sh
Created April 23, 2013 16:13
Test your download speed via the command line with wget.
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip