This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dog = (function () { | |
var nombre = "dog"; | |
var setName = function (newName) { | |
nombre = newName; | |
}; | |
var speak = function () { | |
console.log('[' + nombre + ']: woof!'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nombre; | |
function setName; | |
function speak; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dog = (function () { | |
// execution context: dog's module | |
var nombre = "dog"; | |
var setName = function (newName) { | |
nombre = newName; | |
}; | |
var speak = function () { | |
console.log('[' + nombre + ']: woof!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(dog.nombre) // undefined | |
with (dog) { | |
try { | |
console.log(nombre) // error | |
} catch(error) { | |
console.log('nombre is not defined even inside the with (dog)'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = (function () { | |
// "this" se refiere a la función instantánea anónima | |
this.x = 100; | |
var a = 1; | |
var showX = function () { | |
// el valor de "this" depende de quién | |
// invoque a esta función | |
console.log(this.x); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( 'body' ).append($('<div>').load('lol.html')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Es una p ́ | |
agina web en la que los estudiantes pueden explorar los archivos de | |
varios “casos hist ́ | |
oricos”, luego de leer cartas, ver fotograf ́ıas, y explorar todo | |
tipo de “evidencias”, deber ́ | |
an responder a varias preguntas planteadas, respecto | |
al contexto, sucesos y modo de vida de la ́epoca. | |
Las respuestas a estas preguntas no siempre ser ́an obvias, muchas veces | |
estar ́ | |
an ocultas impl ́ıcitamente en detalles que podr ́ıan pasar desapercibidos por |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun purge-pdf () | |
(interactive) | |
(progn | |
(goto-char 1) | |
;; párrafos a salto auxiliar | |
(while (search-forward-regexp "\\([.\)]\\)\\($\\)\\([^\-]\\)" nil t) | |
(goto-char (match-end 0)) | |
(insert "ZOMGZALIENZ")) | |
;; saltos dentro del párrafo | |
(goto-char 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Es una página web en la que los estudiantes pueden explorar los archivos de varios ``casos históricos'', luego de leer cartas, ver fotografías, y explorar todo tipo de ``evidencias'', deberán responder a varias preguntas planteadas, respecto al contexto, sucesos y modo de vida de la época. | |
Las respuestas a estas preguntas no siempre serán obvias, muchas veces estarán ocultas implícitamente en detalles que podrían pasar desapercibidos por los jugadores. Por esta razón, es necesario que el jugador explore la evidencia, y preste mucha atención a todos los pequeños detalles.(Swan y Hofer, s.f.) | |
Debido a que el jugador concluye la respuesta a las preguntas planteadas, es mucho más probable que el aprendizaje sea significativo.(CommonSense, s.f.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# thanks to Ocaso Protal! http://stackoverflow.com/questions/14704274/how-to-write-shell-script-for-finding-number-of-pages-in-pdf | |
n_pages=$(pdfinfo $1 | grep Pages | awk '{print $2}'); | |
page_width=$(pdfinfo $1 | grep "Page size" | awk '{print($3)}'); | |
page_width=$(echo "$page_width/2" | bc); | |
odd_file="tmp-$1-odd.pdf"; | |
even_file="tmp-$1-even.pdf"; |