Skip to content

Instantly share code, notes, and snippets.

View alan-andrade's full-sized avatar
💻

Alan Andrade alan-andrade

💻
View GitHub Profile
@alan-andrade
alan-andrade / pacer.m
Created November 9, 2013 21:20
XCode gists
- (void) testStartPacer{
[self.pacer onStart:^{
STAssertTrue([self.pacer isRunning], @"Timer should be running after calling start method");
}]
[self.pacer start];
}
@alan-andrade
alan-andrade / Karmapoints.md
Last active December 24, 2015 05:19
Ideas para el Rails Rumble

Karma points

Analizar repositorios contra sentiments API. : ) Community Karma

curl -u "alanandrade" https://api.github.com/repos/marqeta/marqeta.com/pulls/comments?since=2013-09-20T20:24:26Z
curl https://api.github.com/repos/alanandrade/embeddable-chats/comments
@alan-andrade
alan-andrade / ActiveRecord.md
Last active December 21, 2015 15:18
My notes on trying to understand how Active record works.

ActiveRecord 3.2

Base

This class wraps all the other ActiveRecord Modules into one so that you can inherit from it and get a Class persisted by a DB.

One of the main things that happen when you Inherit from Base, is to check for STI (single table inheritance).

@alan-andrade
alan-andrade / latency.txt
Created October 26, 2015 06:31 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
typedef NSUInteger LLWorkoutIndex;
typedef enum : LLWorkoutIndex {
LLFitTestExperience = 0,
LLBMIExperience = 1,
LLScriptedExperience = 7,
} LLWorkoutExperince;
@interface LLExperience : NSObject
+ (LLWorkoutIndex)indexForWorkoutExperience:(LLWorkoutExperince)experience;
@end

Catalog and Workflows

A Catalog describes functions, ins & outs of the workflow. So, in order to have a workflow, we need catalog.

A catalog is a vector of maps which must be compsed with onyx keywords :onyx/name, :onyx/plugin, etc.

A workflow could be think as a place where the structure of a computation is isolated.

Catalog and Workflows

A Catalog describes functions, ins & outs of the workflow. So, in order to have a workflow, we need catalog.

A catalog is a vector of maps which must be compsed with onyx keywords :onyx/name, :onyx/plugin, etc.

@alan-andrade
alan-andrade / parser.swift
Last active September 14, 2015 06:57
Fragile Parser
typealias C = (Int, Int)
typealias P = Int
typealias N = Int
typealias T = String
typealias Source = Dictionary<P, Box>
func ==(lhs: C, rhs: C) -> Bool {
var ((lx, ly), (rx, ry)) = (lhs, rhs)
return (lx == rx) && (ly == ry)
}

How to be a great software engineer ?

I've been asking myself this question for the past 6 months. I thought I'd find answers in books or people would tell me, but no luck. News is, none of that got me a precise answer. In fact, when I interviewed my friends, I was expecting to find my course, but more questions came up instead. I let the enigmas sink in my head and I kept my ears open. This is what I believe now:

There's no such thing as being "great". Being great is a paradox in

Mision

"Brindar el apoyo necesario a nuestros clientes"

Creo que decir "el apoyo necesario" no suena muy alentador. Podemos cambiarlo para decir algo mas atractivo. por ejemplo: "Brindamos apoyo profesional"

Pienso que es obvio que tus clientes son quienes vas ayudar entonces podemos quitarlo para ser mas concisos.