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
| /** | |
| * Static utility methods for bicycle data-serial mapping. | |
| * | |
| * <p>The PHP code part developer is a motherfucker. | |
| * Rationale for this class is to repair at least some of the damage caused by the fact.</p> | |
| */ | |
| public class BDSM { | |
| .... |
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
| /** | |
| * Static utility methods for bicycle data-serial mapping. | |
| * | |
| * <p>The PHP code part developer is a motherfucker. | |
| * Rationale for this class is to repair at least some of the damage caused by the fact.</p> | |
| */ | |
| public class BDSM { | |
| .... |
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
| package com.abelsky.scrumtimer.util; | |
| import android.util.Base64; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.ObjectInputStream; | |
| import java.io.ObjectOutputStream; | |
| import java.io.Serializable; |
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
| SQLException e; | |
| ... | |
| if (e.getErrorCode() == MysqlErrorNumbers.ER_DUP_ENTRY) { | |
| // UNIQUE constraint violation | |
| } |
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
| @echo off | |
| :: | |
| :: Disables/enables incoming network connections for Java launcher | |
| :: using Windows Firewall. Requires administrative rights. | |
| :: | |
| :: Edit JDK_PATH variable below to specify JDK/JRE installation to be blocked. | |
| :: | |
| set JDK_PATH=C:\Program Files\Java\jdk1.6.0_30 |
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 string | |
| import ConfigParser | |
| class FakeSectionHeader(object): | |
| '''Workaround for config parser to read .properties-style configs''' | |
| def __init__(self, fp): | |
| self.fp = fp | |
| self.sechead = '[' + ConfigParser.DEFAULTSECT + ']\n' |
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
| #!/bin/bash | |
| # | |
| # Searches for a pattern in all SVN changes to a specified file or directory. | |
| # | |
| # Usage: | |
| # ./svn-rev-search.sh <file-name> <pattern> | |
| # | |
| file="$1" | |
| pattern="$2" |
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
| @echo off | |
| set SRC=C:\some-path | |
| set TARGET=\\REMOTE-HOST\other-path | |
| set FILE_LIST=(file1.py file2.py file3.py file4.py) | |
| for %%i in %FILE_LIST% do copy /Y %SRC%\%%i %TARGET% |
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
| def enum(*sequential, **named): | |
| """Creates an enumeration. | |
| Usage: | |
| >>> Numbers = enum('ZERO', 'ONE', 'TWO') | |
| >>> Numbers.ZERO | |
| 0 | |
| """ | |
| enums = dict(zip(sequential, range(len(sequential))), **named) | |
| return type('Enum', (), enums) |
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
| <link rel="alternate" type="application/rss+xml" href="http://url-of-an-rss-feed"> |