Ler e entender um pouco desse artigo. https://wiki.c2.com/?FeynmanAlgorithm
- Reconhecer como você pensa
- Descrever métodos que você usa para pensar
- Entender métodos diferentes de pensar
- Fazer perguntas sobre tudo(incluindo sobre perguntas)
Ler e entender um pouco desse artigo. https://wiki.c2.com/?FeynmanAlgorithm
defmodule Mergesort do | |
def merge_sort([]), do: [] | |
def merge_sort(list) do | |
list | |
|> Enum.map(fn x -> [x] end) | |
|> merge_lists() | |
end | |
def merge_lists([list]), do: list |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
Crystal 0.9.1 with Kemal
require "kemal"
ws "/" do |socket|
socket.on_message do |message|
end
package main | |
import ( | |
"log" | |
"os" | |
"sync" | |
"github.com/rjeczalik/notify" | |
) |
import falcon | |
import falcon.testing as testing | |
QUOTE = (u"\nI've always been more interested in\n" | |
u'the future than in the past.\n' | |
u'\n' | |
u' ~ Grace Hopper\n\n') | |
class ThingsResource(object): | |
def on_get(self, req, resp): |
# Based on https://djangosnippets.org/snippets/2283/ | |
from django.db import transaction | |
from django.db.models import get_models, Model | |
from django.contrib.contenttypes.generic import GenericForeignKey | |
@transaction.atomic | |
def merge_model_objects(primary_object, alias_objects=None, keep_old=False): | |
""" | |
Use this function to merge model objects (i.e. Users, Organizations, Polls, |
# Inspired by the following sentence that I ran across this morning: | |
# | |
# "f_lineno is the current line number of the frame - writing to | |
# this from within a trace function jumps to the given line | |
# (only for the bottom-most frame). A debugger can implement a | |
# Jump command (aka Set Next Statement) by writing to f_lineno." | |
# | |
# https://docs.python.org/2/reference/datamodel.html | |
# | |
# There is an older implementation of a similar idea: |
import time | |
import urllib2 | |
from datetime import datetime | |
def do_dave(): | |
while 10 < datetime.now().hour < 15: | |
time.sleep(5) | |
urllib2.urlopen('http://www.reddit.com/') | |
1 | |
1 1 | |
1 2 1 | |
1 3 3 1 | |
1 4 6 4 1 | |
1 5 10 10 5 1 | |
1 6 15 20 15 6 1 | |
1 7 21 35 35 21 7 1 | |
1 8 28 56 70 56 28 8 1 |