Skip to content

Instantly share code, notes, and snippets.

View alan-andrade's full-sized avatar
💻

Alan Andrade alan-andrade

💻
View GitHub Profile

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.

typedef NSUInteger LLWorkoutIndex;
typedef enum : LLWorkoutIndex {
LLFitTestExperience = 0,
LLBMIExperience = 1,
LLScriptedExperience = 7,
} LLWorkoutExperince;
@interface LLExperience : NSObject
+ (LLWorkoutIndex)indexForWorkoutExperience:(LLWorkoutExperince)experience;
@end
@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
@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 / 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 / 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 / keys.js
Last active December 28, 2015 09:29
emberjs test
test('should contain properties declared in the extension', function () {
var beer = Ember.Object.extend({
type: 'ipa'
}).create();
var keys = Ember.keys(beer);
deepEqual(keys, ['type']);
});

Hey Folks !

Since we switched to Crashalytics, we're getting interesting emails of some failures that are happening on our application. None of them are urgent, however, it'd be awesome to consolidate our naming strategy to identify faster the point of failure.

With the refactor, there was a big effort on restructuring the system and split it into subsystems. The project ended up in a great spot and it's now easier to rationalize. In order to move this effort further, I'd like to

Red Axes - The Watkins (as background, melodies, cheerful) Red Axes - Queen Spade (minimal, transitioner) Red Axes - Red River (melancholic melody, long notes) Red Axes - Kicks Out of you (Rough vocals, dry beat, groovy) Red Axes - Too Late To Samba (Techno ish, groove) Red Axes - Pil Sagol (deep light melodic)

Margot - Magico Disco (disco groove, good on its own, deep , nice beat drop)

Moscoman - Devoue (Manfredas Remix) (Strange melody, trippy)

module Migrator
@plan_names = %w(
com.lumosity.mobile.onemonth
com.lumosity.mobileipad.onemonth
com.lumosity.mobile.oneyear
com.lumosity.mobile.recurring.oneyear.20_off
com.lumosity.mobile.recurring.oneyear.25_off
com.lumosity.mobile.recurring.oneyear.35_off
com.lumosity.mobile.recurring.oneyear.40_off
com.lumosity.mobileipad.oneyear