(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// https://www.notion.so/blog/data-model-behind-notion | |
enum BlockType { | |
Heading, | |
Callout, | |
Toggle, | |
Text, | |
Image, | |
OrderedList, | |
TodoList, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 1, 'Puerto Almirante', 1); | |
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 2, 'Barriada Guaymí', 1); | |
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 3, 'Barrio Francés', 1); | |
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito`, `ref_province`, `id_corregimiento`, `corregimiento`, `ref_distrito`) VALUES (1, 'Bocas del Toro', 1, 'Almirante', 1, 4, 'Nance de Riscó', 1); | |
INSERT INTO `vista_corregimientos`(`id_provincia`, `provincia`, `id_distrito`, `distrito` |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onInput, onClick) | |
import Char exposing (..) | |
import Tuple exposing (first, second) | |
main = | |
Html.beginnerProgram | |
{ model = model | |
, view = view |
function sizeInMB(string) { | |
return (string.length * 2) / (1024 * 1024); | |
} | |
function addKeySizeToTotal(runningTotal, key) { | |
// Used as Array.reduce callback | |
return sizeInMB(localStorage[key]) + runningTotal; | |
} | |
function logLocalStorageKeySize(key) { |
function remind { | |
echo Example: remind \"Go to grocery store\" 12/15/2013 10:00:00PM | |
osascript - "$1" "$2" "$3" <<END | |
on run argv | |
set stringedAll to date (item 2 of argv & " " & item 3 of argv) | |
tell application "Reminders" | |
make new reminder with properties {name:item 1 of argv, due date:stringedAll } | |
end tell | |
end run | |
END |
/* | |
Copyright (c) 2010 Aza Raskin | |
http://azarask.in | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the |
%html | |
%head | |
%title= 'iCal to CSV converter' | |
%script(type='text/javascript' src='https://rawgit.com/mozilla-comm/ical.js/master/build/ical.js') | |
:javascript | |
// Adapted from http://www.html5rocks.com/en/tutorials/file/dndfiles/ | |
function handleFileSelect(evt) { | |
var reader = new FileReader(); | |
reader.onload = function (e) { | |
var comp = new ICAL.Component(ICAL.parse(e.target.result)[1]); // result == ['icalendar', data] |
# Damerau–Levenshtein distance (Wikipedia) implementation | |
# Found in http://stackoverflow.com/questions/11919065/sort-an-array-by-the-levenshtein-distance-with-best-performance-in-javascript | |
# Answer by user http://stackoverflow.com/users/305319/james-westgate | |
levDist = (s, t) -> | |
d = [] #2d matrix | |
# Step 1 | |
n = s.length | |
m = t.length |