Skip to content

Instantly share code, notes, and snippets.

View eabait's full-sized avatar

Esteban S. Abait eabait

View GitHub Profile
@eabait
eabait / poller.js
Created July 2, 2012 15:26
REST Service Poller based on Web Workers and XMLHttpRequest object
var Ajax = {
httpRequest : null,
initXmlHttpObject : function() {
'use strict';
if (XMLHttpRequest) { // Chrome, Mozilla, Safari, ...
this.httpRequest = new XMLHttpRequest();
} else
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.1",
"creator": {
"name": "WebPagetest",
"version": "18.02"
},
"browser": {
"name": "Chrome",
This file has been truncated, but you can view the full file.
{
"log": {
"version": "1.1",
"creator": {
"name": "WebPagetest",
"version": "18.02"
},
"browser": {
"name": "Chrome",
@eabait
eabait / charting.libraries.md
Last active July 13, 2017 04:34
Charting Libraries
@eabait
eabait / app-perf.md
Created May 28, 2016 22:23 — forked from larahogan/app-perf.md
Native app performance metrics

Native app performance metrics

This is a draft list of what we're thinking about measuring in Etsy's native apps.

Currently we're looking at how to measure these things with Espresso and Kif (or if each metric is even possible to measure in an automated way). We'd like to build internal dashboards and alerts around regressions in these metrics using automated tests. In the future, we'll want to measure most of these things with RUM too.

Overall app metrics

  • App launch time - how long does it take between tapping the icon and being able to interact with the app?
  • Time to complete critical flows - using automated testing, how long does it take a user to finish the checkout flow, etc.?
  • Battery usage, including radio usage and GPS usage
  • Peak memory allocation
@eabait
eabait / index
Created December 26, 2013 17:12
A more complex Backbone.Tree example to show: redefinition of template methods using a Mixin, and use of composite views with the action property
<DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Tree examples</title>
<meta name="viewport" content="width=device-width">
</head>
<body>
@eabait
eabait / js_environment
Last active January 1, 2016 05:29
JavaScript environment setup for Mac OSX
Installed Tools
Chrome
Skype
Sublime
Sublime plugins
* Package control. https://sublime.wbond.net/installation
* SublimeLinter
Environments
@eabait
eabait / Preferences.sublime-settings
Created October 27, 2012 18:05
Sublime user preferences
{
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
"use_tab_stops": true,
@eabait
eabait / svn.removeAll.sh
Created September 4, 2012 19:02
Bash aliases
alias svn.removeAll="find . -name .svn -type d -exec rm -Rf {} \;" #recursively removes all .svn folders in current dir and subfolders
alias rmdsstores="find . -name *.DS_Store -type f -exec rm {} \;" #remove all .DS_Store files from the current directory up
@eabait
eabait / shh_login
Created August 14, 2012 18:05
SSH little snippet
ssh -i pathToPemFile user@hostnameorIP -L 8888:localhost:22