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
Find: ^(\W+public void .*?)_([A-Z]{1})([a-zA-Z]*)_([A-Z]{1})([a-zA-Z]*)\(\) \{$ | |
Replace: $1_\l$2$3_\l$4$5() { | |
This will cause all texts like this: | |
" public void method1_DoThisDoThat_ReturnThisReturnThat() {" | |
be relaced with: | |
" public void method1_doThisDoThat_returnThisReturnThat() {" |
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 edu.princeton.cs.algs4.WeightedQuickUnionUF; | |
/** | |
* Created by leolink on 11/24/16. | |
*/ | |
public class Percolation { | |
private static final int UNOPENED = 0b000; | |
private static final int OPENED = 0b001; | |
private static final int CONNECTED_TOP = 0b010; | |
private static final int CONNECTED_BOTTOM = 0b100; |
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 | |
################################################################## | |
# Open Atlassian Stash pull request from command line. | |
# (opens the default browser at the proper URL with data prefilled) | |
# | |
# It infers current branch name, repo name, current user name, from git config. | |
############################### CONFIG ########################### | |
URL_PREFIX="https://YOU_GIT_DOMAIN.com/your/project/path/compare/commits?commits&" |
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 net.leolink.android.rxbus; | |
import android.support.annotation.IntDef; | |
import android.support.annotation.NonNull; | |
import android.util.SparseArray; | |
import java.lang.annotation.Retention; | |
import java.util.HashMap; | |
import java.util.Map; |
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 android.content.Context; | |
import android.support.annotation.Nullable; | |
import android.support.v4.view.PagerAdapter; | |
import android.support.v4.view.ViewPager; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* {@link ViewPager} that wraps current page's height |
OlderNewer