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
// DOCUMENTATION FAIL: | |
/** | |
* Alias for {@link #set(Object)} | |
*/ | |
@Override | |
public void set(T value) { | |
setValue(value); | |
}; |
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
package v6ak.util; | |
import java.util.Comparator; | |
public final class NaturalComparator { | |
private static final Comparator<? extends Comparable<?>> instance = new Comparator<Comparable<Object>>(){ | |
public int compare(Comparable<Object> o1, Comparable<Object> o2) { | |
if( o1==null || o2==null ){ | |
throw new NullPointerException("Comparing null values is not supported!"); |
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 | |
final class v6_Variable{ | |
private $val; | |
public function set($val){ | |
$this->val = $val; | |
} | |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef int boolean; | |
///////////// abstract CharProcessor /////////////////////////////////// | |
typedef struct _CP{ // abstract | |
/*public abstract*/ struct _CP* (*nextFunction) (struct _CP *this, char c, FILE *out); | |
/*public virtual*/ void (*destroyFunction) (struct _CP *this); | |
/*private field*/ boolean canBeFinal; |
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
package v6.micro.platforms; | |
public final class Platform { | |
private static final String JP_PREFIX = "JP-"; | |
private Platform() {} | |
public static boolean isA200OrHigher() { | |
return isA200OrHigher(System.getProperty("com.sonyericsson.java.platform")); |
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
@sh "%~pd0port.sh" %* |
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 | |
/** | |
* Representation of enumerated grid column. | |
* | |
* @author Vít Šesták 'v6ak' | |
* @copyright Copyright (c) 2010 Vít Šesták | |
* @license New BSD License | |
* @package Nette\Extras\DataGrid | |
*/ |
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
<keybind key="W-t"> | |
<action name="Execute"> | |
<startupnotify> | |
<enabled>true</enabled> | |
<name>qwitch tint</name> | |
</startupnotify> | |
<command>~/bin/switchTray</command> | |
</action> | |
</keybind> |
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 | |
// PHP fragment | |
// Code creates a multicomponent in Nette. The code is a bit ugly. | |
protected function createComponent($name){ | |
$PFX = 'rating'; | |
$PFXLEN = strlen($PFX); | |
if(substr($name, 0, $PFXLEN === $PFX){ | |
return $this->createRating($name, substr($name, $PFXLEN)); | |
} |
OlderNewer