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
public class Demo { | |
public static void main(String[] args) { | |
System.out.println("Syntax Highlighting in Blog Demo."); | |
} | |
} |
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
public class MyFirstGistClass { | |
public void wishTabWorks() { | |
System.out.println("while coding java, instead tab, use three spaces!"); | |
} | |
} |
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.io.File; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import javax.xml.stream.XMLStreamException; | |
import org.apache.axiom.om.OMAbstractFactory; | |
import org.apache.axiom.om.OMAttribute; | |
import org.apache.axiom.om.OMDocument; | |
import org.apache.axiom.om.OMElement; |
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.blog.oguzhan.axis2.handler; | |
import org.apache.axis2.AxisFault; | |
import org.apache.axis2.context.MessageContext; | |
import org.apache.axis2.handlers.AbstractHandler; | |
import org.apache.log4j.Logger; | |
public class SampleHandler extends AbstractHandler{ | |
private Logger logger = Logger.getLogger(SampleHandler.class); |
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
/** | |
* A no non-sense preclusive method | |
* for converting Turkish alphabet specific characters | |
* into English counterparts. | |
* | |
* @param turkishContent non-null String possible includes turkish specific characters | |
* | |
* @return equivalent of input string in English alphabet | |
* | |
* @throws IllegalArgumentException if parameter is null |
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.blog.oguzhan.charutil; | |
/** | |
* This class provides utility methods for converting char | |
* to its decimal-octal-hexadecimal equivalent integer values in String representations. | |
* | |
* @author oguzhan.acargil | |
* */ | |
public class CharUtil { |
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.blog.oguzhan.charutil; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class ConventionConverter { | |
public static void main(String[] args) { | |
String[] output = camelCaseToUnderline(new String[]{"abc","aBc","abC","abCD"}); | |
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; | |
public class CipherTextTools { | |
public static void main(String[] args) { | |
String[] seperated = seperateCipher("igxcshavc4eslykamah71j8o0es7myk1", 8); | |
System.out.println(Arrays.toString(seperated)); | |
} | |
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.io.FileWriter; | |
import java.io.IOException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
public class Generator { | |
final protected static char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray(); | |
final static String LINE_SEPARATOR = System.getProperty("line.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
#!/usr/bin/python | |
import os | |
# lint --check UnusedResources . > C:\lint.txt | |
# extract unused resource file paths from lint.txt to candidates.txt | |
# honestly I used excel :) | |
prefix = 'C:\\Users\\myuser\\git\\my-project-repo\\my-web-project' | |
print(prefix) | |
print(os.path.exists(prefix)) |
OlderNewer