Skip to content

Instantly share code, notes, and snippets.

View israellias's full-sized avatar

Israel israellias

  • Sublime
  • Santa Cruz, Bolivia
  • 08:32 (UTC -12:00)
  • X @israellias
View GitHub Profile
@israellias
israellias / pulse-livescore-and-leaderboard.md
Created June 11, 2026 17:03
Masaco: livescore + leaderboard mechanics

Pulse: How predictions stay private, lock at kickoff, and turn into a live leaderboard

TLDR

The whole "predictions, scores, leaderboard" flow is already built and self-policing. Nobody needs to flip a switch on matchday. In short:

  • Your predictions are private until kickoff. You only ever read your own picks. The leaderboard reveals other people's picks for a match the exact instant that match kicks off, not a second before.
  • Bonuses (champion, top scorer, etc.) reveal all at once, at the tournament's very first kickoff, and they lock at that same moment.
  • You cannot edit a prediction after kickoff. The database itself rejects the change, not just the app.
  • Live scores come from an automatic job that checks the real results every minute during matches and writes them in.
@israellias
israellias / README.md
Last active May 2, 2026 23:05
Claude Code hook: decorate git worktrees with per-branch VSCode status-bar colors and hide local .vscode/settings.json changes from git (skip-worktree)

Claude Code worktree decorator

A tiny hook for Claude Code that makes parallel git worktree sessions visually distinguishable in VSCode.

When you start a Claude Code session inside a linked worktree (typically via claude --worktree), this hook:

  1. Picks a deterministic color from a 10-color palette based on the branch name (same branch → same color, on every machine).
@israellias
israellias / notebook.ipynb
Last active October 21, 2025 04:18
d66c85df70e000a5e0785a84504529a1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@israellias
israellias / votos_nulos.md
Last active August 6, 2025 02:44
Votos nulos

Sí. La primera victoria del MAS fue en 2005 (Evo Morales) y los blancos+nulos fueron lo bastante altos como para que, si se hubieran convertido casi todos en votos válidos contra el MAS, éste no llegara al 50% y la elección pasara al Congreso (que era la regla entonces si no había mayoría absoluta). ([Wikipedia][1], [Wikipedia][2], [SciELO Mexico][3])

Números clave (2005)

  • MAS: 1.544.374 votos = 53,74% de los votos válidos.
  • Votos en blanco: 124.046 (3,99% del total emitido).
  • Votos nulos: 104.570 (3,37% del total emitido).
  • Blanco+nulo: 228.616 (≈7,36% del total emitido). ([Wikipedia][1])

¿Ese 7,36% “habilitó” la victoria en primera vuelta?

What we are storing

Below is a detailed specification of what we are scraping, processing, showing in sublime cards, using in embeddings

  • Preview, details what is being extracted from our quick detection engine.
  • Scraping, is the process of getting the data from the source.
  • Processing, is the process of transforming the data into a format that can be used by the application.
  • Sublime cards, details what's being shown in the cards.
  • Embeddings, details what fields are being used to create embeddings.
// rooms
[
{
"ulid": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Sala Azul",
"color": "#0000FF",
"creator": "players/XXXXZ3NDEKTSV4RRFFQ69GXXXX",
"players": [
"players/01ARZ3NDEKTSV4RRFFQ69G5FAV",
"players/01ARZ3NDEKTSV4RRFFQ69G5FAV",

Sublime is the knowledge tool that actually helps you make stuff 🧠

Get ready with the Sublime Codebase

This guide describes how to setup the backend for Sublime. Below is a list of the apps that make up Sublime as a product.

If you're wondering why startupy appears in some instructions, it's because of our former name. Even our backend domain is startupy.world 🌏

@israellias
israellias / platzi_boxes.rb
Last active December 28, 2018 16:07
Platzi - Reto 8
# Platzi - Reto 8 Diciembre 23
# @author: @israellias
# ruby_version: 2.5.3
#regalaconocimiento
module Model
class Box < Struct.new(:name, :money, :weight)
end
class Combination < Struct.new(:boxes)
@israellias
israellias / helper_method_builder.rb
Created May 14, 2018 21:41
override handle_list method of ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder class
class ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder
# Extract from gems/actionpack-5.2.0/lib/action_dispatch/routing/polymorphic_routes.rb#HelperMethodBuilder class
# @param [Array] list
def handle_list(list)
record_list = list.dup
record = record_list.pop
args = []
<?php
public class FirstApp {
private $app;
public function getApp(){
return $this->app;
}