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 | |
echo 'blubb'; | |
?> |
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
<ruleset name=”BAK”> | |
<description>BAK coding standard</description> | |
<rule ref=”PEAR”> | |
<exclude name=”Generic.Files.LineLength”/> | |
<exclude name=”PEAR.WhiteSpace.ScopeIndent”/> | |
</rule> | |
<rule ref=”Generic.Functions.OpeningFunctionBraceKernighanRitchie”/> | |
</ruleset> |
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 fizzbuzz; | |
public class FizzBuzz { | |
public String getFizzBuzzValueOf(int number){ | |
if(number % 15 == 0){ | |
return "FizzBuzz"; | |
} | |
if(number % 3 == 0){ | |
return "Fizz"; |
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 fizzbuzz; | |
public class FizzBuzzSequence { | |
private FizzBuzz _fizzBuzz; | |
public FizzBuzzSequence() { | |
_fizzBuzz = new FizzBuzz(); | |
} |
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 fizzbuzz; | |
import java.util.regex.*; | |
import org.junit.Before; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
public class FizzBuzzSequenceTest { | |
private FizzBuzzSequence _fizzBuzzSequence; |
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
// Anzeigen Commit Message von r9238: | |
svn log -r 9238 | |
// Effektive Code differenzen anzeigen +/-: | |
svn diff -c 9238 | |
// anzeigen differenz svn repo / lokal: | |
svn status | |
// lokale Änderungen rückgängig machen: |
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
// (1) Branch my-calc-branch erzeugen | |
svn copy | |
http: //svn.example.com/repos/calc/trunk \ | |
http: //svn.example.com/repos/calc/branches/my-calc-branch \ | |
-m "Creating a private branch of /calc/trunk." | |
// (2) Branch my-calc-branch checkout |
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
class Data { | |
FileStream s; | |
public string FileName { | |
set { s = new FileStream( value, FileMode.Create ); } | |
get { return s.Name; } | |
} | |
} | |
Data d = new Data(); |
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 i = 123; | |
object o = i; // boxing -> type of o is System.Int32 | |
int j = (int)o; // unboxing |
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
document.addEventListener('touchstart', function(event) { | |
for (var property in event.touches[0]) { | |
console.log(property + ": " + event.touches[0][property]); | |
} | |
}, false); |
OlderNewer