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 de.unikassel.threeD.misc; | |
import java.awt.Color; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Point; | |
import java.awt.event.*; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
public class Cube3DTest extends JFrame implements MouseListener, MouseMotionListener, |
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
Field[] fields = MaxLearnIterationsStrategy.class.getDeclaredFields(); | |
for (Field f : fields) { | |
Class<?> type = f.getType(); | |
System.out.println(f.getName() + " / " + type.getSimpleName()); | |
try { | |
Class cls = Class.forName(MaxLearnIterationsStrategy.class.getName()); | |
Field fld = cls.getField(f.getName()); | |
fld.setAccessible(true); | |
Object obj = cls.newInstance(); | |
if (f.getType().equals(Integer.class)) { |
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
/** | |
* Projekt ANNtool | |
* | |
* Copyright (c) 2011 github.com/timaschew/jANN | |
* | |
* timaschew | |
*/ | |
package de.unikassel.ann.util; | |
import java.awt.Color; |
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
int soundPin = 8; | |
int ledPin = 6; | |
int min1 = 0; | |
int max1 = 500; | |
int min2 = 100; | |
int max2 = 1000; | |
int zzz = 2; | |
void setup() { |
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
diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
index d73983c..9f8a253 100644 | |
--- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
+++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | |
@@ -598,10 +598,18 @@ class BasicEntityPersister | |
$quotedColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->_class, $this->_platform); | |
$this->quotedColumns[$sourceColumn] = $quotedColumn; | |
- | |
- if ($newVal === null) { |
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
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
//console.log(">>>>>>>>>>>>>>>>>>>>>>>>>> hello from custom toc"); | |
var panel = $("div.panel div.panelHeader"); | |
var panelContent = $("div.panel div.panelContent h2"); | |
if (typeof(panel) != 'undefined' && typeof(panelContent) != 'undefined') { | |
var pages = $(".panelHeader:first-child"); | |
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
CHECK := $(shell shell-script param > /dev/null; echo $$?) | |
ifneq ($(CHECK),0) | |
$(error "error message") | |
endif |
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
<!-- | |
Original snippet is from | |
http://www.communardo.de/home/techblog/2011/05/02/improve-the-confluence-pagetree-macro-functionality/ | |
--> | |
<script type="text/javascript" > | |
AJS.toInit(function ($) { | |
//first save the original pagetree function "origHideEmptyChildrenContainer" | |
var origHideEmptyChildrenContainer = AJS.pagetree.hideEmptyChildrenContainers; | |
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
module.exports = container: | |
page: | |
numbers: [ | |
1 | |
2 | |
3 | |
"four" | |
"five" | |
] | |
one: ["value"] |
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
<script type="text/javascript" > | |
AJS.toInit(function ($) { | |
var list = AJS.$('table.confluenceTable tbody th:contains("#sum")'); | |
list.each(function(index, item) { | |
var elem = AJS.$(item); | |
var parentRow = elem.parent(); | |
var parentTbody = parentRow.parent(); | |
var column = parentRow.find('th').index(elem); | |
var sum = 0; |