Skip to content

Instantly share code, notes, and snippets.

## Based on: http://code.activestate.com/recipes/577654/
#!/usr/bin/env python
# Send DDE Execute command to running program
from ctypes import POINTER, WINFUNCTYPE, c_char_p, c_void_p, c_int, c_ulong, c_char_p
from ctypes.wintypes import BOOL, DWORD, BYTE, INT, LPCWSTR, UINT, ULONG
import time
# DECLARE_HANDLE(name) typedef void *name;
HCONV = c_void_p # = DECLARE_HANDLE(HCONV)

Keybase proof

I hereby claim:

  • I am macintoxic on github.
  • I am macintoxic (https://keybase.io/macintoxic) on keybase.
  • I have a public key ASDGDz5y_SedcfZukSjXZtGnhZBRNEyhEHAm5nryXiC8sAo

To claim this, I am signing this object:

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://medium.com">
<script type="text/javascript">
window.location.href = "http://medium.com"
</script>
<title>Page Redirection</title>
</head>
@macintoxic
macintoxic / base64.js
Created March 31, 2016 03:17 — forked from whatnickcodes/base64.js
How to Encode and Decode Strings with Base64 in JavaScript
// Create Base64 Object
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=Base64._utf8_encode(e);while(f<e.length){n=e.charCodeAt(f++);r=e.charCodeAt(f++);i=e.charCodeAt(f++);s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=this._keyStr.indexOf(e.charAt(f++));o=this._keyStr.indexOf(e.charAt(f++));u=this._keyStr.indexOf(e.charAt(f++));a=this._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones]
@=""
"SecuritySafe"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"2004"=dword:00000003
"2001"=dword:00000003
@=""
BFS(G, s)
for (para todo )v’ (pertence) V[G] – {s} do
cor[v’] <- BRANCO
d[v’] <- 8
pai[v’] <- NIL
cor[s] <- CINZA
d[s] ? 0
pai[s] <- NIL
#include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <SD.h>
const int chipSelect = 10;
File dataFile;
/* This sample code demonstrates the normal use of a TinyGPS object.
@macintoxic
macintoxic / gist:1552402
Created January 2, 2012 22:27
restore blocks
void RestoreBlocks ()
{
int x;
for (int i = 0; i < ROWS; i++) {