Skip to content

Instantly share code, notes, and snippets.

View thuongleit's full-sized avatar
🔥

Thuong Le thuongleit

🔥
View GitHub Profile
@thuongleit
thuongleit / EMOJI_REGEX
Created October 4, 2018 07:52
Regex to match all supported emojis within patterns
"(^[\\u20a0-\\u32ff\\ud83c\\udc00-\\ud83d\\udeff\\udbb9\\udce5-\\udbb9\\udcee\\ud83e\\udd10-\\ud83e\\udd9f]{1,2}$)"
@thuongleit
thuongleit / tmux-cheatsheet.markdown
Created June 25, 2017 14:39 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@thuongleit
thuongleit / WalmartlabsParseService.java
Created September 30, 2016 10:44
Parse Service class helps searching and getting product information and returns sorted list
@Singleton
public class WalmartlabsParseService implements ParseService {
private static final String API_KEY = "-----------------";
private final RetrofitService mService;
@Inject
public WalmartlabsParseService(@NonNull WalmartlabsParseService.RetrofitService service) {
mService = service;
@thuongleit
thuongleit / CameraPresenter.java
Created September 30, 2016 10:36
CameraPresenter class helps search products by code (QRCode/barcode) via Amazon, Walmart, ...
class CameraPresenter implements CameraContract.Presenter {
private CameraContract.View mView;
private final ProductRepository mRepository;
private Subscription mSubscription = Subscriptions.empty();
CameraPresenter(@NonNull CameraContract.View view, @NonNull ProductRepository repository) {
mView = view;
mRepository = repository;
}
@thuongleit
thuongleit / launch_sublime_from_terminal.markdown
Created July 14, 2016 14:08 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@thuongleit
thuongleit / .gitignore
Last active June 21, 2016 06:08
.gitignore template for using in Android project (Android Studio IDE)
# Built application files
build/
# Gradle files
.gradle/
!gradle/wrapper/gradle-wrapper.jar
# Crashlytics configuations
com_crashlytics_export_strings.xml