Skip to content

Instantly share code, notes, and snippets.

@seanh
seanh / gist:3414107
Created August 21, 2012 09:54
Basic Orientation to CKAN (for developers)

Basic Orientation to CKAN (for developers)

Some of the most important layers in the CKAN code architecture, going from lowest-level up to highest-level:

##Database

CKAN uses SQLAlchemy (http://www.sqlalchemy.org/) to handle communication between CKAN source code and the PostgreSQL database (http://www.postgresql.org/).

Model

@sloria
sloria / bobp-python.md
Last active November 14, 2024 15:01
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 11, 2024 22:46
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@pmarkun
pmarkun / tedxanhangabau-politicahacker.md
Last active September 30, 2015 19:51
TEDx Anhangabau - Política Hacker

TEDx Anhangabau - Política Hacker

SLIDE 1 - Hackday na CCD

  • Quem sou? Pedro Markun, hacker e ativista pela transparência e outra forma de fazer politica em tempo integral.
  • E estou aqui para contar a história de um Laboratório, um Laboratório Hacker que a gente esta montando dentro do Congresso Nacional. No coração do poder legislativo.
  • A minha história com transparência e dados abertos vai começar mais ou menos em Outubro de 2009. Quando 120 pessoas se reuniram na extinta Casa de Cultura Digital - ali na Barra Funda - para realizar o primeiro Transparência Hackday.
  • Hoje, você chuta uma árvore e caem 10 hackathons. Estamos planejando inclusive uma segunda edição aqui pra Câmara. Mas naquela época não era bem assim... e eu e a Daniela, minha sócia, tivemos que ouvir do Claudio Abramo - presidente da Transparência Brasil - que isso nunca ia dar certo e que o governo nunca ia abrir os dados.
  • Mas enfim, o evento rolou e dele surgiu uma comunidade - a Transparência Hacker - que cresceu e hoje te
@wkjagt
wkjagt / audio-book-reader.md
Last active April 12, 2024 14:18
How I built an audio book reader for my nearly blind grandfather

#How I built an audio book reader for my nearly blind grandfather

Tweet this - Follow me

Last year, when visiting my family back home in Holland, I also stopped by my grand-parents. My grand-father, now 93 years old, had always been a very active man. However, during the presceding couple of months, he'd gone almost completely blind and now spent his days sitting in a chair. Trying to think of something for him to do, I suggested he try out audio books. After finally convincing him -- he said audio books were for sad old people -- that listening to a well performed recording is actually a wonderful experience, I realized the problem of this idea.

####The problem with audio devices and the newly blind. After my first impulse to jump up and go buy him an

@tuffacton
tuffacton / streamlit_colab.ipynb
Last active March 7, 2024 05:47
Colaboratory Notebook that hosts a streamlit app and creates an ngrok https tunnel for access.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.