Skip to content

Instantly share code, notes, and snippets.

View mf3129's full-sized avatar

Makan Fof mf3129

View GitHub Profile
@Helias
Helias / ply2obj.py
Last active February 11, 2024 06:19 — forked from assafrabin/ply2obj.py
Python script to convert *.ply to *.obj (3D formats)
import os
from os import listdir
from os.path import isfile, join
from argparse import ArgumentParser
from plyfile import PlyData
def parse_args():
parser = ArgumentParser()
@ibraheem4
ibraheem4 / postgres-brew.md
Last active May 4, 2026 04:03
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@vasanthk
vasanthk / System Design.md
Last active May 9, 2026 23:00
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@DashW
DashW / ScreenRecorder.cs
Last active November 12, 2025 14:51
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@taniarascia
taniarascia / index.html
Last active April 5, 2026 06:28
HTML Skeleton file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@donmccurdy
donmccurdy / installing-live-server.md
Last active March 11, 2025 09:39
Installing Node.js live-server

Installing Node.js live-server

The NodeJS live-server package runs a temporary server displaying any HTML/CSS/JS resources in the current folder. It automatically reloads the page in your browser when any of these files change.

OS X

  • Verify that Node.js is installed. If you see anything when you run which npm in a terminal, it is. If not, follow the instructions at nodejs.org to install.
  • Install live-server: npm install -g live-server
  • Move your terminal to where your pages live: cd <path-to-content>
  • Start the server: live-server .
@mdang
mdang / RSPEC.md
Last active July 14, 2022 18:41
Rspec Cheat Sheet

Rspec Cheat Sheet

# Equivalence
expect(target).to eq 1
expect(target).not_to eq 1

expect(user.id).to eq("foo")

expect(user).to be_a(FooApp::User)
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active May 6, 2026 18:15
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help