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 example; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class CustomStringSplit { | |
public static void main(String[] args) { | |
String string = "Key1==value1; key2==val;ue2;key3==value3"; | |
String separator = ";"; |
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
httpd -t |
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
controller method: | |
#image_url: full URL for your image. | |
def pixel | |
#do whatever tracking you need. | |
render :text => open(image_url, "rb").read, :content_type => "image/png" and return | |
end |
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 com.osamadwairi; | |
public class SimpleThread { | |
public static void main(String[] args) throws InterruptedException { | |
Printer p1 = new Printer("1"); | |
Printer p2 = new Printer("2"); | |
Printer p3 = new Printer("3"); | |
Printer p4 = new Printer("4"); | |