Skip to content

Instantly share code, notes, and snippets.

View MinhazAbtahi's full-sized avatar

Minhazul Arefin Abtahi MinhazAbtahi

View GitHub Profile
@runewake2
runewake2 / HologramShader.shader
Created August 17, 2017 05:28
A sample hologram shader built as a part of World of Zero during this video: https://youtu.be/vlYGmVC_Qzg
// Hologram Shader built for World of Zero
Shader "World of Zero/Hologram"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Color", Color) = (1, 0, 0, 1)
_Bias("Bias", Float) = 0
_ScanningFrequency ("Scanning Frequency", Float) = 100
@MinhazAbtahi
MinhazAbtahi / mailer.py
Created July 14, 2016 04:37 — forked from dbieber/mailer.py
Send an email through Gmail programmatically using Python's smtplib. Code modified from http://kutuma.blogspot.com/2007/08/sending-emails-via-gmail-with-python.html
#!/usr/bin/python
# Adapted from http://kutuma.blogspot.com/2007/08/sending-emails-via-gmail-with-python.html
import getpass
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email import Encoders
import os
@JISyed
JISyed / MoveCameraInertia.cs
Last active August 31, 2022 09:26
Similar to MoveCamera.cs (https://gist.github.com/JISyed/5017805), except with inertia. This makes the camera gradually come to a smooth stop when stopping the camera movement.
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement
// for using the mouse displacement for calculating the amount of camera movement and panning code.
using UnityEngine;
using System.Collections;
public class MoveCamera : MonoBehaviour
{
//
@JISyed
JISyed / MoveCamera.cs
Last active September 4, 2025 14:47
Camera movement script in Unity3D. Supports rotating, panning, and zooming. Attach to the main camera. Tutorial explaining code: http://jibransyed.wordpress.com/2013/02/22/rotating-panning-and-zooming-a-camera-in-unity/
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement
// for using the mouse displacement for calculating the amount of camera movement and panning code.
using UnityEngine;
using System.Collections;
public class MoveCamera : MonoBehaviour
{
//
// VARIABLES