Skip to content

Instantly share code, notes, and snippets.

View addicted2sounds's full-sized avatar

Oleg Borys addicted2sounds

View GitHub Profile
public class Main {
public static void main(String[] args) {
System.out.println("Arguments count: " + args.length);
for (int i = 0; i < args.length; i++) {
String type = args[i].matches("[+-]?\\d+") ? "Integer" : "String";
System.out.println(args[i] + " <" + type + ">");
}
}
}
# remove
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
# restore
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Weather {
private double windDirection;
private double windSpeed;
private double temperature;
private PrecipitationTypes precipitations;
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Contact {
private String name;
private String nickname;
private String email;
private String phone;
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Circle {
private double radius;
public double getCircumference() {
return 2 * Math.PI * radius;
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Circle {
private double radius;
public double getCircumference() {
return 2 * Math.PI * radius;
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Contact {
private String name;
private String nickname;
private String email;
private String phone;
package com.company;
/**
* Created by addicted on 27.02.16.
*/
public class Weather {
private double windDirection;
private double windSpeed;
private double temperature;
private PrecipitationTypes precipitations;
package com.company;
public class Main {
private static int iterations = 100000;
private static void testString() {
String str = "";
for (int i = 0; i < Main.iterations; i++) {
str += "x";
}
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/HG6wiAazrTBSPE2vBZzrQORJm+gHqFwl1sVgdITusnrTzXpaFI+AABZLqYRaR5ZoSLMm7OsUoFonJxHJ0lebtmdYr8DzIMuDDMkArLRr1dJusm/nSvZdH2FuVLZDm/47tFIKmMGZsaarNO3TdcYIK0y0/zOXy7VfXKGlDrzCkB7SwJJ6/3G6XZvSa0WGtwCUXSF8TOLak7neoquymtl9wPNfaWHWCbSlp8dZwMgZA6p7hm2RwOoY+cqn0nGA1aOKq/wjaWyu+TBYJakpV8E0LOUmw051mxbSygxz7Ksoumt2Dj/He1G71GmNSEwcCah4ap5uaemxJEyX0iHKbiwT addicted@MiniMac.local