View EnumSingleton.java
This file contains 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
public enum EnumSingleton | |
{ | |
_INSTANCE; | |
public static EnumSingleton of() | |
{ | |
return _INSTANCE; | |
} |
View gtk.css
This file contains 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
.notebook tab { | |
background-color: #c0c0c0; | |
color: black; | |
} | |
.notebook tab:active { | |
background-color: #f0f0f0; | |
color: black; | |
} |
View user.php
This file contains 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 | |
$postdata = json_encode(array( | |
array('name'=>'TBIT'), | |
)); | |
$opts = array('http' => | |
array( | |
'method' => 'POST', | |
'header' => 'Content-type: application/json', |
View main.cf
This file contains 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
relayhost = smtp.mandrillapp.com:submission | |
# http://www.zulius.com/how-to/set-up-postfix-with-a-remote-smtp-relay-host/ | |
smtpd_sasl_auth_enable = yes | |
smtpd_sasl_path = smtpd | |
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd | |
smtp_sasl_type = cyrus | |
smtp_sasl_auth_enable = yes | |
smtp_sasl_security_options = noanonymous |
View counter.js
This file contains 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
function counter(colAdd, rowAdd) { | |
var count = 1; | |
var x, y; | |
for (x = move.col + colAdd, y = move.row + rowAdd; | |
isOwnedByCurrentPlayer(x, y); | |
count++, x += colAdd, y += rowAdd) { | |
} | |
for (x = move.col - colAdd, y = move.row - rowAdd; | |
isOwnedByCurrentPlayer(x, y); | |
count++, x -= colAdd, y -= rowAdd) { |
View sphinx.conf.part
This file contains 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
source loppis_posts | |
{ | |
type = mysql | |
sql_host = localhost | |
sql_user = user | |
sql_pass = pass | |
sql_db = loppis_dev | |
sql_port = 3306 # optional, default is 3306 |
View etc-dokuwiki-local.php
This file contains 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 | |
$host = strtolower($_SERVER['HTTP_HOST']); | |
$file['local'] = '/etc/dokuwiki/'.$host.'/local.php'; | |
require_once($file['local']); | |
$prefix = '/var/lib/dokuwiki/'.$host.'/'; | |
$conf['olddir'] = $prefix.'attic'; | |
$conf['cachedir'] = $prefix.'cache'; | |
$conf['lockdir'] = $prefix.'locks'; |
View gist:2820806
This file contains 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
--- wp-lists.dev.js.orig 2009-11-29 11:29:12.000000000 +0100 | |
+++ wp-lists.dev.js 2012-05-28 21:56:43.000000000 +0200 | |
@@ -62,7 +62,7 @@ | |
if ( !s ) { return false; } | |
- if ( !e.is("[class^=add:" + list.id + ":]") ) { return !wpList.add.call( list, e, s ); } | |
+ if ( !e.is("[class^='add:" + list.id + ":']") ) { return !wpList.add.call( list, e, s ); } | |
if ( !s.element ) { return true; } |
View AssertResult.java
This file contains 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 static org.testng.Assert.*; | |
public class AssertResult | |
{ | |
static public void assertSucceeded(Result result) | |
{ | |
assertTrue(result.succeeded(), result.getMessage()); | |
} | |
static public void assertFailed(Result result) |
View Result.java
This file contains 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
public class Result | |
{ | |
public static final Result SUCCESS = new Result(true, ""); | |
private boolean success; | |
private String message; | |
private Result(boolean success, String message) | |
{ | |
this.success = success; |
OlderNewer