Skip to content

Instantly share code, notes, and snippets.

# SpecLedger Telegram Bot — User Guide
## Overview
The SpecLedger Telegram Bot bridges your team's Telegram conversations with your GitHub-hosted specs and issues. Use it to capture meeting decisions directly into specs, create issues from discussions, and get notified when specs change — all without leaving Telegram.
---
## Getting Started
---
title: "Spec-Driven Development: The Guide for AI-Augmented Teams"
slug: "spec-driven-development"
publishedAt: ""
updatedAt: ""
author: "nathan"
category: "guides"
status: written
---
# Install Docker
curl -sSL https://get.docker.com/ | sh
# Install Compose
curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
{
"swagger": "2.0",
"info": {
"title": "FixFit API",
"description": "Promote healthy lifestyle in a fun way!",
"version": "1.0.0"
},
"host": "api.fixfit.com",
"schemes": [
"https"
from django.conf import settings
import elasticsearch
from elasticsearch.helpers import scan
from zopim.util.es_lib import BulkIndexerV2
bulk = BulkIndexerV2()
es1 = elasticsearch.Elasticsearch(['esproxy.zopim.net:80'])
es2 = elasticsearch.Elasticsearch(settings.ES_HOSTS)

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import sys
N = int(sys.stdin.readline())
radiuses = [int(i) for i in sys.stdin.readline().replace('\n', '').split(' ')]
print radiuses
M = int(sys.stdin.readline())
points = []
for i in range(M):
points.append(
[int(i) for i in sys.stdin.readline().replace('\n', '').split(' ')]
@binhngoc17
binhngoc17 / union_find.py
Created December 14, 2014 15:43
Use combinations & Union Find Algo
from itertools import combinations
N,l = map(int,raw_input().split())
sets = []
idx = dict((i, i) for i in range(N))
for i in xrange(l):
a,b = map(int,raw_input().split())
@binhngoc17
binhngoc17 / memoi.py
Created December 13, 2014 09:37
Example of using memorization
memo_array = {}
def stringReductionHelper(a):
if len(a) == 1:
memo_array[1] = (a, 1)
return memo_array[1]
if memo_array.get(len(a[:-1])):
prevChar, prevNum = memo_array.get(len(a[:-1]))
else:
prevChar, prevNum = stringReductionHelper(a[:-1])
@binhngoc17
binhngoc17 / fibo.py
Created December 13, 2014 04:19
Calculating Fibonacci number
import sys
A, B, N = [int(i) for i in sys.stdin.readline().split(' ')]
a_n = A
a_n_1 = B
t = 2
while t < N:
i = a_n