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 | |
| OLDIFS=$IFS | |
| IFS=$'\n' | |
| echo "Starting gallery..." | |
| DIRECTORIES=$(find -type d) | |
| # loop over all subdirectories | |
| for d in $DIRECTORIES | |
| do | |
| pushd $d |
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
| <div id="testbild"></div> | |
| <script type="text/javascript">//<!-- | |
| var img = document.createElement('img'); | |
| img.src = 'http://tilli.me/privacyimg/einbild.png'; | |
| document.getElementById('testbild').appendChild(img); | |
| //--></script> |
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
| private static final DateFormat FORMAT_HOURS = loadDateFormat(); | |
| ... | |
| ObjectTuple[] tuples = new ObjectTuple[] { | |
| new ObjectTuple(myObject.getThisAttribute("attr1"), myObject.get("firstkeyA"), myObject.get("firstkeyB")), | |
| new ObjectTuple(myObject.getThisAttribute("attr2"), myObject.get("secondkeyA"), myObject.get("secondkeyB")), | |
| new ObjectTuple(myObject.getThisAttribute("attr3"), myObject.get("thirdkeyA"), myObject.get("thirdkeyB")), | |
| }; |
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.kopis.camel.model; | |
| import org.apache.camel.dataformat.bindy.annotation.CsvRecord; | |
| import org.apache.camel.dataformat.bindy.annotation.DataField; | |
| @CsvRecord(separator = ",") | |
| public class CsvBean { | |
| @DataField(pos = 1) | |
| private String first; | |
| @DataField(pos = 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
| (ns clj-testtest.core) | |
| (defn foo | |
| [a b] (str a ":" b)) | |
| (defmacro mfoo | |
| [a b] `(str ~a ":" ~b)) | |
| (defn gen-foo | |
| [a b c] (defn a [b c] (str b ":" c))) |
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 msg "Hallo Welt") | |
| (println msg) |
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
| (println "Hallo, Welt!") |
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
| var huk; | |
| function xchat_plugin_init() | |
| { | |
| huk = xchat_hook_server("PRIVMSG", XCHAT_PRI_NORM, "growlify", NULL); | |
| } | |
| function growlify(from, command, nickname, message) | |
| { | |
| var me = xchat_get_info("nick"); |
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.kopis.wave.robot; | |
| import java.util.logging.Logger; | |
| import com.google.wave.api.AbstractRobotServlet; | |
| import com.google.wave.api.Blip; | |
| import com.google.wave.api.Event; | |
| import com.google.wave.api.RobotMessageBundle; | |
| import com.google.wave.api.TextView; | |
| import com.google.wave.api.Wavelet; |
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 java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileReader; | |
| import java.io.IOException; | |
| public class Grep { | |
| public static void main(String[] args) throws IOException { | |
| if(args.length != 2) { | |
| System.err.println("Wrong parameter count!"); | |
| System.err.println("USAGE:\tjava Grep pattern file"); |