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
<?php | |
/* | |
Copyright (C) 2012 Kasper F. Brandt | |
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: |
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
a1="function a() { p='a1=\"'+a1.replace(/\\\\/g,'\\\\\\\\').replace(/\"/g,'\\\\\"')+'\"; a2=\"'+a2+'\";'+a1+a2;"; | |
a2="document.write('<script>' + p + '</'+'script>');document.write('<script>' + p + '</'+'script>')}a()"; | |
function a() { | |
p='a1="'+a1.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"; a2="'+a2+'";'+a1+a2; | |
document.write('<script>' + p + '</'+'script>'); | |
document.write('<script>' + p + '</'+'script>') | |
}a() |
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
# Fix all git committer dates to author dates: | |
git filter-branch --env-filter \ | |
'export GIT_COMMITTER_DATE="$(git show --pretty=fuller $GIT_COMMIT | grep "AuthorDate:" | sed -re "s/^AuthorDate:\s+(.*)$/\\1/")"' |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<!-- | |
Brainfuck interpreter in JavaScript | |
Made 2009 by Kasper F. Brandt | |
I hereby release this code (both html and JavaScript) into the public domain | |
--> | |
<html> | |
<head> | |
<title>Brainfuck interpreter</title> |
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
<?php | |
class MetroXpress | |
{ | |
const userAgent = null; | |
private static $monthMap = Array( | |
'januar' => 1, | |
'februar' => 2, | |
'marts' => 3, |
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
#!/usr/bin/python | |
import sys | |
import os | |
from urlparse import urlparse,parse_qs | |
def readChunk(f): | |
get = f.readline() | |
if get == '': | |
raise EOFError() |
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
// StreamTools.h | |
#pragma once | |
#include "StdAfx.h" | |
using namespace System; | |
using namespace System::IO; | |
using namespace System::Runtime::InteropServices; |
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 System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace CCITTFaxFileScan | |
{ | |
class Program |
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
#!/usr/bin/env python | |
import imaplib | |
import email | |
import json | |
import re | |
from getpass import getpass | |
label = "undelivered-mails" | |
username = "[email protected]" | |
addrfilename = 'failed-addresses.txt' |
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
<?php | |
class MySQLException extends Exception | |
{ | |
private $errNo; | |
private $errStr; | |
public function __construct($message = null, $errNo = null, $errStr = null) | |
{ | |
$this->message = $message; | |
$this->errNo = $errNo; |
OlderNewer