Skip to content

Instantly share code, notes, and snippets.

brew install hhvm --HEAD
==> Installing hhvm from hhvm/hhvm
==> Cloning https://github.com/facebook/hhvm.git
Updating /Users/francisco.estevez/Library/Caches/Homebrew/hhvm--git
==> Checking out branch master
Synchronizing submodule url for 'brotli/src'
Synchronizing submodule url for 'double-conversion'
Synchronizing submodule url for 'fastlz/src'
Synchronizing submodule url for 'fatal'
Synchronizing submodule url for 'folly/src'
@FranciscoE-Hudl
FranciscoE-Hudl / ItemTouchHelper.java
Created January 10, 2017 20:50
ItemTouchHelper.java
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@FranciscoE-Hudl
FranciscoE-Hudl / gist:fff0bb4a568e89e4096e4f425e01d3bf
Created November 15, 2016 00:31
Uninstall XQuartz.app from OSX Yosemite/El Capitan/Sierra
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist && \
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist && \
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz && \
sudo pkgutil --forget org.macosforge.xquartz.pkg && \
rm -rf ~/.serverauth* && rm -rf ~/.Xauthorit* && rm -rf ~/.cache && rm -rf ~/.rnd && \
rm -rf ~/Library/Caches/org.macosforge.xquartz.X11 && rm -rf ~/Library/Logs/X11
@FranciscoE-Hudl
FranciscoE-Hudl / android_lifecycle_recommendations.md
Created February 17, 2016 12:15 — forked from kaushikgopal/android_lifecycle_recommendations.md
Notes on opportune moments to do "stuff" in the Android Lifecycle
  • In general you want to try and put things in onStart and onStop for logical start and stops.

Activity

onCreate

  • Dagger inject self into graph
  • setContentView(R.layout.xxx)
  • Butterknife.bind(this)
@FranciscoE-Hudl
FranciscoE-Hudl / gist:4150fadcb9f1d1090230
Last active August 29, 2015 14:26 — forked from konmik/gist:6ac725fa7134402539c4
Dagger 2 injection with inheritance
/**
* This class allows to inject into objects through a base class,
* so we don't have to repeat injection code everywhere.
*
* The performance drawback is about 0.013 ms per injection on a very slow device,
* which is negligible in most cases.
*
* Example:
* <pre>{@code