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.wirthedv.tools.developer.interview; | |
import static org.junit.Assert.assertEquals; | |
import java.util.Calendar; | |
import org.junit.Test; | |
public class TestYearMonth { |
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 sample.dcevm; | |
import java.util.Date; | |
public class LongRunning { | |
private final Worker worker; | |
public static void main(String[] args) { |
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
function Set() { | |
this.data = {}; | |
this.add.apply(this, arguments); | |
} | |
Set.prototype = { | |
add: function (key) { | |
this.data[key] = true; | |
}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
</head> | |
<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
import java.math.*; | |
import java.util.concurrent.atomic.*; | |
public class Solution { | |
public String largestNumber(int[] nums) { | |
if (nums == null || nums.length == 0) { | |
return "0"; | |
} | |
List<Integer> sortedNums = new ArrayList<Integer>(nums.length); |
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.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
public class FindCssFilesWithoutLess { | |
public static void main(String[] args) throws IOException { | |
Path filesSrcDir = Paths.get(".\\data"); | |
Files.walk(filesSrcDir) |
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.nio.file.Files | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
import java.util.regex.Pattern | |
fun main(args: Array<String>) { | |
val filesSrcDir = Paths.get(args[0]) | |
val renames: MutableMap<Path, String> = hashMapOf() |
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
$("body").append("<pre></pre>").text($.map($(".file a:has(.glyphicon-download)").toArray(), function(elem) { return elem.href; }).join("\n")) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script> | |
$(function () { | |
var arr = [ | |
{startTime: 3040, duration: 7023, content: "Probing the Future - with Jacque Fresco - Venus Project director", isStartOfParagraph: false}, |
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 groovy.transform.Field | |
@Field int processed = 0; | |
def dir1 = new File(args[0]) | |
def dir2 = new File(args[1]) | |
def diff = compareDirs(dir1, dir2) | |
diff.each { | |
printFileInfo(it.left, dir1, "Left: ") |
NewerOlder