Skip to content

Instantly share code, notes, and snippets.

View csuzhangxc's full-sized avatar

Cody (Xuecheng) Zhang csuzhangxc

View GitHub Profile
@noelbundick
noelbundick / LICENSE
Last active March 30, 2025 13:12
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@crmccreary
crmccreary / AESCipher.py
Created May 20, 2013 02:17
Encryption using pycrypto, AES, and PKCS5 padding
from Crypto.Cipher import AES
from Crypto import Random
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-ord(s[-1])]
class AESCipher:
def __init__( self, key ):
"""
@timaschew
timaschew / ColorHelper.java
Created September 28, 2011 22:18
creating a colormap: number -> color (gradient: blue to red)
/**
* Projekt ANNtool
*
* Copyright (c) 2011 github.com/timaschew/jANN
*
* timaschew
*/
package de.unikassel.ann.util;
import java.awt.Color;