Skip to content
Referencias y recursos para el Taller Botánico
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
booots.gif
taller-botanico.pdf

README.md

Taller botánico

Descargar presentación (PDF)

Tracery

Cheap Bots, Done Quick!

Tracery

Gramática sencilla

{
  "animal": ["unicorn", "raven", "sparrow"]
}

Anidamiento

{
  "animal": ["unicorn", "raven", "sparrow"],
  "color": ["orange", "blue", "white"],  
  "sentence": ["The #color# #animal# is happy"]
}

Modificadores

.capitalize


{
  "objects": ["watch", "bike", "book"],
  "origin": "#objects.capitalize#"
}


.capitalizeAll


{
  "objects": ["watch", "bike", "book"],
  "origin": "#objects.capitalizeAll#"
}

.s


{
  "objects": ["watch", "bike", "book"],
  "origin": "#objects.s#"
}

.a


{
  "objects": ["book", "amplifier", "harp"],
  "origin": "#objects.a#"
}

.ed

{
  "verbs": ["bounce", "walk", "buy"],
  "origin": "#objects.ed#"
}

.replace(x,y)

{
  "objects": ["his watch", "his bike"],
  "origin": "#objects.replace(his, her)#"
}

Memoria

{
  "objects": ["watch", "bike", "book"],
  "story": ["I want #object.a#, ok? #object.a#!"],
  "origin": ["#[object:#objects#]story#"]
}

Más difícil todavía

{ 
  "name": ["Fox", "Jedoo"], 
  "story": ["#hero# was #occupation.a#. One day #pronoun# #action#."], 
  "setPronoun": ["[pronoun:she]", "[pronoun:he]"],
   "setOccupation": [ "[occupation:baker][action:baked, decorated cupcakes, iced a cake]", "[occupation:warrior][action:fought a monster, saved a village]"], 
  "origin": ["#[#setOccupation#][#setPronoun#][hero:#name#]story#"] 
}

SVG

{
  "story": "Texto {svg <svg>YOUR SVG CODE</svg>}"
}
{ 
  "story": "Texto {svg <svg xmlns='http://www.w3.org/
           2000/svg' xmlns:xlink='http://www.w3.org/
           1999/xlink' width='1024' height='512'></
           svg>}" 
}

Imágenes

<image width="540" height="380" xlink:href="URL" />
{
  "image": ["url","url2", "url3"],
  "origin": "{svg <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' 
   width='540' height='380'><image width='540' height='380' xlink:href='#image#' /></svg>}"
}

Texto


<text x="256" y="300" font-size="30" stroke="black" stroke-width="1" 
fill="white" text-anchor="middle" style="font-family: Impact">Mi texto</text>

Texto


<text x="256" y="300" font-size="30" stroke="black" stroke-width="1" fill="white"
text-anchor="middle" style="font-family: Roboto">Mi texto</text>
<style type=\"text/css\">@import url(https://fonts.googleapis.com/css?family=Roboto);</style>
</svg>

HTML


<foreignObject x='0' y='0' width='540' height='380'>
  <p xmlns='http://www.w3.org/1999/xhtml' style='width: 100%; color: white; background: black; padding: 20px; margin: 0; font-size:24px;'>
    Hola <strong>mundo</strong>
  </p>
</foreignObject>

JavaScript


<foreignObject x='0' y='0' width='540' height='380'>

  <div xmlns='http://www.w3.org/1999/xhtml'id='date'></div>

  <script>
  
    document.getElementById('date')[0].innerHTML = new Date();

  </script>

</foreignObject>

Etiqueta

– Don’t @mention people who haven’t opted in.
– Don’t follow Twitter users who haven’t opted in.
– Don’t use a pre-existing hashtag.
– Don’t go over your rate limits.

Fuente: Basic Twitter bot etiquette, Darius Kazemi.


Recursos

Texto

Imágenes

Bots en Glitch

Da conocer a tu bot


VIPS

Kate Compton / Galaxy Kate

George Buckenham / v21

Darius Kazemi / tinysubversions


Promo del taller

You can’t perform that action at this time.