Skip to content

Instantly share code, notes, and snippets.

View horacioh's full-sized avatar
💪
hustling

Horacio Herrera horacioh

💪
hustling
View GitHub Profile
@horacioh
horacioh / Webapp-flexbox-Layout.markdown
Created October 21, 2013 21:38
A Pen by Horacio Herrera.
@horacioh
horacioh / Flexbox-Center-fixed-Content.markdown
Created October 22, 2013 00:34
A Pen by Horacio Herrera.
@horacioh
horacioh / gist:8916967
Created February 10, 2014 14:33
add class to animate and remove class onAnimationEnd. Took it from http://daneden.github.io/animate.css/
/*dependency on animate.css
#animationSandbox = element to be animated
.js--triggerAnimation = button to animate element
.js--animations = input select with animations
*/
function testAnim(x) {
$('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
$(this).removeClass();
});
};
@horacioh
horacioh / gist:288ef2ebd0319007a7f9
Last active October 11, 2017 16:59
Uninstall & Install and app using adb on multiple devices connected via USB
function uninstallApp {
echo "===== Uninstalling "$PACKAGE_NAME" on target "$1
adb -s $1 shell pm clear $PACKAGE_NAME
adb -s $1 uninstall $PACKAGE_NAME || { exit -3; }
}
function updateAndLaunchApp {
echo "===== Installing "$PACKAGE_NAME" on target "$1
adb -s $1 install -r cordova/platforms/android/ant-build/$APP_NAME-debug.apk || { exit -4; }
echo "===== Launching "$PACKAGE_NAME" on target "$1
function getTweets() {
var promise = new Parse.Promise();
var Tweets = Parse.Object.extend("Tweets");
var query = new Parse.Query(Tweets);
//GET SEARCH URL HERE: https://dev.twitter.com/rest/public/search
var urlLink = "SEARCH_URL_HERE";
query.descending("id_str");
//query.ascending("id_str");
query.limit(1);
@horacioh
horacioh / .block
Last active June 2, 2017 08:23
FEM: Exercise 1
license: mit
@horacioh
horacioh / .block
Created June 1, 2017 18:54
fresh block
license: mit
@horacioh
horacioh / .block
Last active June 2, 2017 17:48
FEM: Exercise 2
license: mit
@horacioh
horacioh / .eslintrc
Last active November 18, 2017 19:11
ReactNative-Starter Steps
{
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"prettier/react"
],
}
@horacioh
horacioh / App.js
Last active April 1, 2018 22:44
RN Scaffold : MyApp/src/app/App.js
// MyApp/src/app/App.js
// @flow
import * as React from 'react'
import { Font } from 'expo'
import { isSignedIn } from '../auth/utils/auth'
import { createPrivateRootNavigator, createPublicRootNavigator } from './navigators'
type State = {
fontLoaded: boolean,