- Different kinds of applications nowadays
- Focus on solving new problems
- We can store queries just like any other object (JSON)
- Replication: vertical scaling x Sharding: horizontal scaling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang s-exp syntax/module-reader | |
(planet rodolfo/ratematica/language) | |
#:read ratematica-read | |
#:read-syntax ratematica-read-syntax | |
(require (prefix-in ratematica- "../parser.rkt")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2012/03/11 Rodolfo Carvalho | |
# Small demo showing how two bots connected with the same JID | |
# (and different resources) can communicate using xmpppy | |
import xmpp | |
import random | |
from getpass import getpass | |
from time import sleep | |
from threading import Thread, Event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
;; Summarizes a sequence of things | |
(define (summarize seq) | |
(foldl -append-element '() seq)) | |
(define (-append-element el lst) | |
(match lst | |
['() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
;; Experiment with persistent continuations | |
(require db) | |
;; read-char* : like read-char but ignores \r and \n | |
(define (read-char* [in (current-input-port)]) | |
(let ([v (read-char in)]) | |
(case v | |
[(#\newline #\return) (read-char* in)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mongo | |
MongoDB shell version: 2.0.4 | |
connecting to: test | |
> doc = {_id: 42, name: "propedeutica", power: 0.92} | |
{ "_id" : 42, "name" : "propedeutica", "power" : 0.92 } | |
> db.foobar.insert(doc) | |
> db.foobar.ensureIndex({name: 1}) | |
> db.foobar.find({name: "propedeutica"}).explain() | |
{ | |
"cursor" : "BtreeCursor name_1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"database/sql" | |
"encoding/binary" | |
_ "github.com/mattn/go-sqlite3" | |
"log" | |
) |
Usage
- Run
collectwords.py
with file paths as arguments to build a database of words. - Run
spellcheck.py
to mark misspells. - Use
sqlite3
shell or anything else to output misspelled words to a file. - Go through the file eliminating false positives.
- Search through the codebase and fix typo by typo :-)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from django_demo.wsgi import application as django_app | |
from falcon_demo.hello import app as falcon_app | |
falcon_prefix = r'/falcon' | |
random_prefix = r'/random' | |
def random_app(environ, start_response): | |
return random.choice([falcon_app, django_app])(environ, start_response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "foobar", | |
"kind": "List", | |
"apiVersion": "v1beta3", | |
"name": "foobar", | |
"items": [ | |
{ | |
"apiVersion" : "v1beta3", | |
"kind": "Service", | |
"metadata" : { |
OlderNewer