Skip to content

Instantly share code, notes, and snippets.

defmodule TrelloBurndown.SprintController do
use TrelloBurndown.Web, :controller
alias TrelloBurndown.Sprint
def index(conn, _params) do
sprints = Repo.all(from s in Sprint, preload: [:team])
render(conn, "index.json", sprints: sprints)
end
@MikaAK
MikaAK / FilterService.ts
Last active May 27, 2016 01:55 — forked from icfantv/FilterService.ts
Subject Observer Example
import {Observer} from 'rxjs/Observer';
import {BehaviorSubject} from 'rxjs/BehaviorSubject';
interface IFilter {
name: string,
tags: CollectionMatcher
}
export class FilterService {
private _filters = new BehaviorSubject<IFilter>({
@MikaAK
MikaAK / big-o.md
Created April 25, 2022 18:28 — forked from PJUllrich/big-o.md
Big-O Time Complexities for Elixir Data Structures

Big-O Time Complexities for Elixir data structures

Map [1]

Operation Time Complexity
Access O(log n)
Search O(log n)
Insertion O(n) for < 32 elements, O(log n) for >= 32 elements [2]
Deletion O(n) for < 32 elements, O(log n) for >= 32 elements