1
0

6 Ревизии 64b1209202 ... 462c4a5c81

Автор SHA1 Съобщение Дата
  Getty Ritter 462c4a5c81 fire and majesty преди 2 години
  Getty Ritter 924363697d add calvino quote преди 2 години
  Getty Ritter 0fb7c7dea9 add tiki bar quip преди 2 години
  Getty Ritter c8b8b4d98c add basic scripts преди 2 години
  Getty Ritter c040097c47 markdown the quotes преди 2 години
  Getty Ritter 02c1f5b4ac add baudrillard quote преди 2 години

+ 0 - 1
.gitignore

@@ -1,3 +1,2 @@
 lib
-bin
 bazel-*

+ 8 - 0
bin/add-quip

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+UUID=$(uuidgen)
+printf "content: |\n   ...\nid: $UUID\n" >quips/$UUID
+if [ ! $EDITOR quotes/$UUID ]; then
+   rm quips/$UUID
+fi
+rm -f "quips/${UUID}~"

+ 8 - 0
bin/add-quote

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+UUID=$(uuidgen)
+printf "content: |\n   ...\nauthor: ...\nid: $UUID\n" >quotes/$UUID
+if [ ! $EDITOR quotes/$UUID ]; then
+   rm quotes/$UUID
+fi
+rm -f "quotes/${UUID}~"

+ 2 - 0
main.py

@@ -103,6 +103,7 @@ def main():
     quips = []
     for uuid in Path.list('quips'):
         q = Quip.from_file(Path.data('quips', uuid))
+        q.content = markdown.markdown(q.content)
         quips.append(q)
         with Path.write('quips', uuid, 'index.html') as f:
             f.write(Template.main({
@@ -129,6 +130,7 @@ def main():
     quotes = []
     for uuid in Path.list('quotes'):
         q = Quote.from_file(Path.data('quotes', uuid))
+        q.content = markdown.markdown(q.content)
         quotes.append(q)
         with Path.write('quotes', uuid, 'index.html') as f:
             contents = Template.quote({'quotelist': [q]})

+ 2 - 0
quips/b15f7d1e-52dd-4178-8e79-f63c7cc4aef6

@@ -0,0 +1,2 @@
+id: b15f7d1e-52dd-4178-8e79-f63c7cc4aef6
+content: One can't break the laws of physics, but you _can_ be civilly disobedient towards them.

+ 2 - 0
quips/bb5ef0b3-e953-4861-a16a-341c2df135d1

@@ -0,0 +1,2 @@
+content: You have become a creature of fire and majesty. I am sorry for where you are, and I hope you become violent and magnificent.
+id: bb5ef0b3-e953-4861-a16a-341c2df135d1

Файловите разлики са ограничени, защото са твърде много
+ 4 - 0
quotes/1d8162f5-d6ec-43e3-a038-6b1bd44e4535


Файловите разлики са ограничени, защото са твърде много
+ 10 - 0
quotes/62c8c196-e890-4a6f-9b16-cfa13f0ba491