This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unity specific .gitattributes | |
* text=auto | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
# Unity YAML | |
*.anim -text merge=unityyamlmerge diff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
[ExecuteInEditMode] | |
public class VRNightVision : MonoBehaviour { | |
private Material material; | |
private Camera cam; | |
[Tooltip("Grain size in pixel. Should be greater than 1 with supersampling.")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from Crypto.Cipher import _Blowfish | |
from struct import pack | |
def encrypt(infilepath, outfilepath, key): | |
""" Encrypt the specified file with the specified | |
key and output to the chosen output file.""" | |
size = os.path.getsize(infilepath) |