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 helloJava8; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
public class LambdaExpr { | |
public static void main(String[] args) throws IOException { |
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
// direct translation for https://gist.github.com/sauron/9773864 | |
public class Example { | |
public static void main(String[] args) { | |
System.out.println(hash("leepadg")); | |
System.out.println(unhash(680131659347L)); | |
} | |
static String letters = "acdegilmnoprstuw"; |
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
#!/bin/bash | |
## | |
if [ $# -lt 2 ] | |
then | |
echo "usage $0 <old> <new>" | |
exit -1 | |
fi | |
old=$1 |
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
import java.util.Arrays; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
List<Integer> data = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); | |
System.out.println("Sum of Even Numbers: " |
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
import java.util.Arrays; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) { | |
List<Integer> data = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); | |
System.out.println("Sum of Even Numbers: " |
This file has been truncated, but you can view the full file.
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
Jul 28 13:49:21 localhost opendirectoryd[123]: opendirectoryd (build 382.20.2) launched - installer mode | |
Jul 28 13:49:21 localhost opendirectoryd[123]: Logging level limit changed to 'notice' | |
Jul 28 13:49:21 localhost opendirectoryd[123]: Initialize trigger support | |
Jul 28 13:49:21 localhost opendirectoryd[123]: created endpoint for mach service 'com.apple.private.opendirectoryd.rpc' | |
Jul 28 13:49:21 localhost opendirectoryd[123]: set default handler for RPC 'reset_cache' | |
Jul 28 13:49:21 localhost opendirectoryd[123]: set default handler for RPC 'reset_statistics' | |
Jul 28 13:49:21 localhost opendirectoryd[123]: set default handler for RPC 'show' | |
Jul 28 13:49:21 localhost opendirectoryd[123]: starting endpoint for service 'com.apple.private.opendirectoryd.rpc' | |
Jul 28 13:49:21 localhost configd[113]: adding com.apple.SystemConfiguration.InterfaceNamer | |
Jul 28 13:49:21 localhost configd[113]: adding com.apple.SystemConfiguration.SCNetworkReachability |
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
root@android:/data/data/com.myapps.intents/files # l | |
-rw-rw---- u0_a46 u0_a46 12 2013-07-05 23:02 mode_private.txt | |
-rw-rw--w- u0_a46 u0_a46 10 2013-07-05 23:02 mode_world.txt |
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
# Orders Aggregator | |
class BreadType | |
attr_accessor :type | |
def initialize(type) | |
@type = type | |
end | |
def eql?(other) | |
@type = other.type |
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
#! /bin/bash | |
if [ $# -lt 2 ] | |
then | |
echo "Usage $(basename "$0") <module name> <module jar>" | |
echo -e "\n(You might need to backup your files before use)" | |
exit 1 | |
fi | |
if [ ! -d 'modules' ]; then | |
echo "Invalid jboss7 dir, should run from inside jboss7 dir." |
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
#! /bin/bash | |
if [ $# -lt 2 ] | |
then | |
echo "Usage $(basename "$0") <module name> <dependency module name>" | |
echo -e "\n(You might need to backup your files before use)" | |
exit 1 | |
fi | |
if [ ! -d 'modules' ]; then |
OlderNewer