function i hate jupiter lab

master
km0 2 years ago
parent 7d1a608951
commit f9069376fd

@ -1,56 +0,0 @@
{
"vlcsnap-2021-10-25-10h54m02s729.png": {
"description": "A lot of onigiry"
},
"img.png": {
"description": ""
},
"Conformal_grid_before_Mobius_transformation.svg.png": {
"description": ""
},
"etre.png": {
"description": ""
},
"pp.png": {
"description": ""
},
"download.png": {
"description": ""
},
"one_to_one_translation.jpg": {
"description": "* istruzioni per l'uso per traduzione_poesia_italiano_inglese\r\nBenvenuto in traduzione_poesia (1)!\r\n\r\nVorrei che traducessi questa poesia in inglese. Puoi utilizzare un traduttore per ottenere la traduzione di singole parole, ma spero che farai del tuo meglio per fare una scelta ponderata sulla parola che utilizzerai. Ogni parola ha il suo potere!\r\n\r\nQuesta raccolta di traduzioni far\u00e0 parte del materiale che mi servir\u00e0 per utilizzare la mia funzione mashup(), che pu\u00f2 essere utilizzata solo con testi con lo stesso numero di righe. Pertanto, ti chiedo gentilmente di creare gli spazi accanto al testo, in ordine, e creando uno spazio per riga. In questo modo il contenuto estratto sar\u00e0 pronto per essere elaborato.\r\n\r\nIn pratica:\r\n\r\n .a Fai clic e trascina per creare lo spazio in cui inserire la traduzione (riga per riga, in ordine, uno spazio per riga)\r\n .b Fai clic su '' inserisci '' o fai clic sulla '' x '' se non \u00e8 come volevi\r\n\r\nGrazie per la partecipazione!\r\nTorna presto sul nostro sito per vedere come \u00e8 stato utilizzato il tuo contributo :)"
},
"free_fun_translation.jpg": {
"description": "*usage instructions for vernacular translation experiment\r\n\r\n''there is NOT a single way, a most correct way, or a best way to translate a poem.'' \r\n\r\nFollowing this quote, I would like you to translate this poem to the language you prefer/feel more comfortable with/your mother tongue. You can use a translator to obtain the translation of single words, but i hope you will do \r\n\r\nyour best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nInteract with this text as you prefer and translate it in the way you feel, word by word, using negative space, writing on the text, off the text, following the lines or not? \r\n\r\n .a Click and drag to create the space(s) where you want to insert your translation\r\n .b Click ''insert'' or click on the ''x'' if it's not as you wanted\r\n\r\nThank you! Come back to our website to see how your contribution has been used :)"
},
"korean.jpg": {
"description": "\r\nWelcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create a big box next to the text and then insert your translation in the box, in order, line by line. This is so that the content extracted will be ready to be processed!\r\n\r\nIn practice:\r\n\r\n.a Click and drag to create the space where to insert your translation (line by line, in order)\r\n.b Click ''insert'' or click on the ''x'' if it's not as you want\r\nc. Come back on our website soon to see how your contribution has been used.\r\n\r\nThank you for your participation!\r\n:)\r\n"
},
"bulgarian.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"dutch.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"french.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"greek.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"german.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"italian.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"spanish.jpg": {
"description": "Welcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create the spaces next to the text, in order, and one space per line. This is so that the content extracted will be ready to be processed.\r\n\r\n .b Click and drag to create the space where you want to insert your translation (line by line, in order, one space per line)\r\n .c Click ''insert'' or click on the ''x'' if it's not as you want\r\n\r\nThank you for your participation!\r\nGet back on our website soon to see how your contribution has been used."
},
"thai.jpg": {
"description": "*usage instructions for many_to_one_poem_translation\r\n\r\nWelcome to many to one translation!\r\n\r\nI would like you to translate this poem to english. You can use a translator to obtain the translation of single words, but i hope you will do your best to make a thoughtful choice on the word you will choose. Every word has its own power!\r\n\r\nThis collection of translations will be part of the material I will use to experiment with my mashup() function, that can be used only with texts with the same number of lines. Therefore, I kindly ask you to create a big box next to the text and then insert your translation in the box, in order, line by line. This is so that the content extracted will be ready to be processed!\r\n\r\nIn practice:\r\n\r\n.a Click and drag to create the space where to insert your translation (line by line, in order)\r\n.b Click ''insert'' or click on the ''x'' if it's not as you want\r\nc. Come back on our website soon to see how your contribution has been used.\r\n\r\nThank you for your participation!\r\n:)\r\n"
},
"rejection_map.jpg": {
"description": "Rejection Map\r\nA Situated Topography of Rejection\r\n\r\nYou are invited to share your experiences with rejection in the city of Rotterdam. Please be aware that your descriptions will be visible for others to read. Your contribution is voluntary and anonymous: You decide what moments and details you want to share and there is no data collected that traces back to you. As rejection is a sensitive topic, you should only share intimate things if you feel comfortable and safe. When sharing moments that involve other individuals, please be mindful that they might not want to be exposed.\r\n\r\n\r\n1. Open the link to the Annotation Compass. You can see the map of Rotterdam\r\n\r\n2. Look at the map and try to think of a moment of rejection you experienced in a certain area in Rotterdam\r\n\r\n3. Use your cursor to select this specific area of the map where you can insert your first experience. It can be a quite small area (if you want to select a building) or a bigger one (if your experience includes a whole neighborhood).\r\n\r\n4. Please choose your own way to describe your moment of rejection. It can be short or long; formal or informal; personal or distanced; poetic or pragmatic; cryptic or explicit; anecdotal or out of context; using vernacular or academic language, slang or mother tongue; using whole sentences, single words, single letters or punctuation only \u2026 Do whatever you feel most comfortable with.\r\n\r\n5. Click \u201dinsert\u201c to save your first description or \u201dx\u201c if you want to delete it.\r\n\r\n6. Follow the same steps to add more moments of rejection if you like. If several moments relate to the same space or area, they can overlap.\r\n\r\nThank you for sharing!\r\n\r\n\r\n[Map of Rotterdam \u00a9 OpenStreetMap contributors]"
}
}

@ -0,0 +1 @@
# Repeat\nRepeat a string for a specified number of times\n\n\n`python\ndef repeat(text: str, times: int = 2) -> str:\n """Repeat a string for a specified number of times"""\n return text * times\n`\n\n![ara repeating itself](https://www.dienst.nl/sub/upload/images/1/30019_550.jpg)\n\nThis function has many attractive qualities, but its ability to repeat human speech is one that makes it truly unique among other types of companion python functions and one that has ensured its popularity for generations. You are likely to find, though, that the function\'s talents for mimicry still pales in comparison to the fact that it is charming, engaging, and truly remarkable. Here is one of the most popular repeating function so that you can appreciate more about what it has to offer. It often says injuries to people and computers. \n\n## Examples\n\nThe function takes a string as a parameter, and by default it repeats it twice. \n\n\n`python\nrepeat(\'hello\')\n`\n\n\n\n\n \'hellohello\'\n\n\n\nEventually with a second parameter you can specify how many times you want it to repeats. \n\n\n`python\nrepeat(\'salut\', 4)\n`\n\n\n\n\n \'salutsalutsalutsalut\'\n\n\n\n\n`python\n\n`\n

@ -14,6 +14,7 @@
<!-- script -->
<script src="./static/js/lodash.js"></script>
<script src="./static/js/spawnSticker.js" defer></script>
<script src="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
</head>
<body>
<section id="sticker-container"></section>
@ -54,15 +55,86 @@
<code>
https://hub.xpub.nl/soupboat/si16-app/api/shout/?text=&lt;text&gt;&volume=&lt;volume&gt;
</code>
<div>Example</div>
<div class="example">Example</div>
<code> https://hub.xpub.nl/soupboat/si16-app/api/shout/?text=Hello&volume=5 </code>
</div>
<div class="playground"></div>
<div class="notebook"></div>
<div class="playground">
<div class="playground-input">
<form
action="https://hub.xpub.nl/soupboat/si16-app/api/shout/"
id="playground"
class="input"
>
<h3>Try it</h3>
<label for="text">Text</label>
<input type="text" name="text" placeholder="text" />
<label for="volume">Volume</label>
<input type="number" name="volume" />
<input type="submit" />
</form>
</div>
<div class="playground-output">
<div class="output"></div>
</div>
</div>
<div class="notebook">
<!-- <pre class="prettyprint">
<code class="language-python">
def shout(text: str, volume: int = 5) -> str:
"""Repeat the vowels in a string for a specified number of times"""
shouted_text = '' for c in text:
character = c
if c.lower() in ['a','e','i','o','u','y']:
character = character * volume
shouted_text = shouted_text + character
return shouted_text
</code>
</pre>
-->
<h1>Repeat</h1>
<p>Repeat a string for a specified number of times</p>
<pre><code class="language-python">def repeat(text: str, times: int = 2) -&gt; str:
"""Repeat a string for a specified number of times"""
return text * times
</code></pre>
<p><img alt="ara repeating itself" src="https://www.dienst.nl/sub/upload/images/1/30019_550.jpg"></p>
<p>This function has many attractive qualities, but its ability to repeat human speech is one that makes it truly unique among other types of companion python functions and one that has ensured its popularity for generations. You are likely to find, though, that the function's talents for mimicry still pales in comparison to the fact that it is charming, engaging, and truly remarkable. Here is one of the most popular repeating function so that you can appreciate more about what it has to offer. It often says injuries to people and computers. </p>
<h2>Examples</h2>
<p>The function takes a string as a parameter, and by default it repeats it twice. </p>
<pre><code class="language-python">repeat('hello')
</code></pre>
<pre><code>'hellohello'</code></pre>
<p>Eventually with a second parameter you can specify how many times you want it to repeats. </p>
<pre><code class="language-python">repeat('salut', 4)
</code></pre>
<pre><code>'salutsalutsalutsalut'
</code></pre>
<pre><code class="language-python">
</code></pre>
</div>
</div>
</main>
<section class="page--footer">
<footer>Special Issue 16—Learning How to Walk while Catwalking</footer>
</section>
</body>
</html>

@ -1,9 +1,29 @@
h3,
h2 {
margin-top: 0;
}
.description {
grid-column: 1 / span 2;
}
.function-io,
.endpoints,
.playground {
margin: 30px 0;
}
.playground,
.playground-input,
.playground-output,
.notebook {
grid-column: -1 / 1;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 30px;
}
.function-io {
margin: 60px 0;
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
@ -17,7 +37,8 @@
}
.function-io .input,
.function-io .output {
.function-io .output,
.playground .input {
background-color: white;
aspect-ratio: 1;
border-radius: 50%;
@ -39,4 +60,160 @@
.endpoints code {
background-color: white;
margin: 30px 0;
}
.endpoints .example {
margin: 15px 0;
}
.playgroud-input .input {
grid-column: 1 / span 1;
align-self: center;
}
.playground-output .output {
grid-column: 2 / span 2;
background-color: white;
border-radius: 12px;
padding: 12px;
min-height: calc(var(--text) * 2);
}
.playground label {
display: block;
}
.playground * + label {
margin-top: 24px;
margin-bottom: 6px;
}
.playground input[type="submit"] {
margin-top: 30px;
}
/* .notebook code {
position: relative;
grid-column: 1 / -1;
z-index: 100;
}
pre.prettyprint.prettyprinted {
border: none;
position: relative;
}
pre.prettyprint.prettyprinted::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 460px;
height: 460px;
background-color: white;
border-radius: 50%;
} */
.notebook {
width: 100%;
/* margin-top: 60px; */
/* padding-top: 60px; */
/* border-top: 1px solid currentColor; */
}
/* .notebook h1 {
display: none;
} */
.notebook p {
grid-column: span 2;
text-indent: 0;
}
.notebook pre {
white-space: pre-wrap;
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 30px;
}
.notebook .language-python {
grid-column: 1 / span 2;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
white-space: pre;
background: none;
padding: 0;
z-index: 100;
min-height: 400px;
}
.notebook .language-python::after {
content: "";
position: absolute;
z-index: 0;
top: 0;
aspect-ratio: 1;
height: 100%;
border-radius: 50%;
background-color: white;
mix-blend-mode: color;
}
.notebook p {
grid-column: 1 / span 2;
}
.notebook code {
grid-column: 2 / span 2;
align-self: flex-start;
background-color: white;
padding: 12px;
border-radius: var(--radius);
}
.notebook h2 {
grid-column: 1/-1;
}
.notebook img {
margin: 30px 0;
}
.notebook > * + * {
margin-top: 30px;
}
@media (max-width: 767.98px) {
.playground,
.playground-input,
.playground-output,
.notebook,
.function-io,
.notebook pre {
display: block;
}
.function-io .input,
.function-io .output,
.playground .input {
background: none;
aspect-ratio: auto;
}
.playground-output {
margin-top: 30px;
}
.page-content > * + * {
margin-top: 60px;
}
.notebook .language-python {
min-height: 300px;
}
}

@ -30,8 +30,39 @@ a {
color: currentColor;
}
code {
code,
pre {
font-family: "Necto";
border: none;
}
input {
font-family: var(--font);
font-size: var(--text);
padding: 6px;
border: 1px solid currentColor;
border-radius: 6px;
}
button,
input[type="submit"] {
font-family: var(--font);
font-size: var(--text);
font-weight: bold;
font-style: italic;
background-color: white;
border: 1px solid currentColor;
padding: 6px;
border-radius: 12px;
transform: scale(1);
transition: transform 0.3s ease-out;
cursor: pointer;
}
button,
input[type="submit"]:active {
transform: scale(0.95);
transition: transform 0.1s ease-in;
}
/* STICKER CONTAINER */

Loading…
Cancel
Save