Skip to content

Instantly share code, notes, and snippets.

@hkneptune
hkneptune / eclipse-java-clean-formatter-15.xml
Last active January 9, 2019 05:50
Eclipse Java Clean Formatter
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="15">
<profile kind="CodeFormatterProfile" name="Clean Formatter" version="15">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
@hkneptune
hkneptune / google-photos-search-tips.md
Last active June 11, 2017 03:16
Google Photos Search Tips

Search by Date Range

For example, the photos that are taken on May 1, 2014 will be shown in the result.

from 20140501 to 20140502

For example, the photos that are taken from April 30, 2014 to May 1, 2014 will be shown in the result.

from 20140501
@hkneptune
hkneptune / atom.io
Created December 19, 2016 17:05
Recommended Atom.io Packages
atom-beautify
chinese-translator
file-icons
highlight-line
highlight-selected
linter
linter-annotations
minimap
minimap-bookmarks
minimap-highlight-selected
@hkneptune
hkneptune / ProgressInformation.java
Created December 19, 2016 16:51
Zip4j Library Archive Progress Information
import java.io.File;
import java.util.ArrayList;
import net.lingala.zip4j.core.ZipFile;
import net.lingala.zip4j.exception.ZipException;
import net.lingala.zip4j.model.ZipParameters;
import net.lingala.zip4j.progress.ProgressMonitor;
import net.lingala.zip4j.util.Zip4jConstants;
/**