Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
unity and python is all a man needs

Badjano badjano

💭
unity and python is all a man needs
View GitHub Profile
View Effective_Engineer.md

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@ditzel
ditzel / MeshDestroy.cs
Created Aug 19, 2019
MeshDestroy => Put it on a game object with a mesh filter and renderer. Make sure to have read/write enabled on fbx import
View MeshDestroy.cs
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeshDestroy : MonoBehaviour
{
private bool edgeSet = false;
private Vector3 edgeVertex = Vector3.zero;
private Vector2 edgeUV = Vector2.zero;
@tobek
tobek / get-image-urls.js
Last active Jun 22, 2022
Save images from chrome inspector/dev tools network tab
View get-image-urls.js
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/
@xero
xero / irc.md
Last active Jun 21, 2022
irc cheat sheet
View irc.md

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@jc-torresp
jc-torresp / raspberry-pi-plex-server.md
Last active Jun 16, 2022
Setup a Raspberry Pi Plex Media Server (Including external storage media and Windows to Raspbian migration)
View raspberry-pi-plex-server.md

Raspberry Pi Plex Server

Installation

Ensure our operating system is entirely up to date:

sudo apt-get update
sudo apt-get upgrade
View ppm.py
#!/usr/bin/env python
import math
import pygame
import random
import rtmidi
from rtmidi.midiconstants import *
import time
TAU = 2 * math.pi
View gist:1e8ebe8cdf4921623ccad834a17f12a8
//@version=4
// CIRCLES:
// - LITTLE: They appear at all WaveTrend wave crossings
// - GREEN: The wavetrend waves are at the oversold level and have crossed up (bullish)
// - RED: The wavetrend waves are at the overbought level and have crossed down (bearish)
// - PURPLE: Appear when a bullish or bearish divergence is formed and WaveTrend waves crosses at overbought and oversold points
// - GOLD: When RSI is below 20, WaveTrend waves are below or equal to -80 and have crossed up (DONT BUY WHEN GOLD CIRCLE APPEAR)
// - None of these circles are certain signs to trade. It is only information that can help you.
//
// I am not an expert trader or know how to program pine script as such, in fact it is my first indicator only to study and all the code is copied and modified from other codes that are published in TradingView.
@jrh-spg
jrh-spg / diskclone.sh
Last active Nov 17, 2021
Disk Cloner Script that uses dd to clone disks
View diskclone.sh
#!/bin/bash
# https://asciinema.org/a/6LZefsbvLjgsuwQHOnQsBEaSj
IF=notset
OF=notset
BS=128M
CURDIR=$(dirname $(realpath -s $0))
SCRIPT=`basename "$0"`
if [[ ! -f /usr/bin/pv ]]; then
echo "pv is not installed. Please install pv and try again"
View gist:94bf9defe05c0ceee976
# __ __
# / \ / \
# \__/ | |
# __ | | __
# / \______| | ________ ________ __| |__ ________
# | ______ | / __ \ / _____| |__ __| / _____|
# | | \__/ | / \ | | |_____ | | | |_____
# | | __ | | | | \_____ \ | | \_____ \
# | | / \ | \__/ | _____| | | |__ _____| |
# \__/ \__/ \________/ |________/ \_____| |________/
@bchanudet
bchanudet / readme.md
Last active Aug 19, 2021
Framebuffer on ST7735s (1.44inch LCD HAT)
View readme.md

Enable modules in Kernel

In raspi-config

Enable SPI under "Interfacing options"

Add modules

$ sudo nano /etc/modules