Skip to content

Instantly share code, notes, and snippets.

View thijsdezoete's full-sized avatar

Thijs de Zoute thijsdezoete

View GitHub Profile
@sukima
sukima / XORCipher.js
Last active May 9, 2024 23:49
A Super simple encryption cipher using XOR and Base64 in JavaScript
// XORCipher - Super simple encryption using XOR and Base64
//
// Depends on [Underscore](http://underscorejs.org/).
//
// As a warning, this is **not** a secure encryption algorythm. It uses a very
// simplistic keystore and will be easy to crack.
//
// The Base64 algorythm is a modification of the one used in phpjs.org
// * http://phpjs.org/functions/base64_encode/
// * http://phpjs.org/functions/base64_decode/
@Tehnix
Tehnix / PyObjc System Icon.py
Created January 14, 2013 11:43
A quick example of showing a tray icon using the pyobjc bindings (OS X)
import objc, re, os
from Foundation import *
from AppKit import *
from PyObjCTools import NibClassBuilder, AppHelper
# poach one of the iSync internal images to get things rolling
status_images = {'idle':'/Users/tehnix/Desktop/dropboxstatus-pause-lep.png'}
start_time = NSDate.date()
@pierot
pierot / FBFlashBridge-0.4.js
Created May 31, 2011 14:55
FBFlashBridge-0.4.js
/*
* fbFlashBridge - Facebook Connect Flash Bridge
*
* Open source under the GNU Lesser General Public License (http://www.opensource.org/licenses/lgpl-license.php)
* Copyright © 2010 Pieter Michels
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.