Skip to content

Instantly share code, notes, and snippets.

View BrunoCaimar's full-sized avatar

Bruno Caimar BrunoCaimar

View GitHub Profile
@BrunoCaimar
BrunoCaimar / educacao.thc.txt
Created October 14, 2015 19:34
Educacao - Teoria Histórico Cultural
Transpondo as considerações acima para a realidade escolar, podemos deduzir que muitos alunos são levados à alienação pela “incapacidade de perceber o objetivo de uma atividade” (LEFFA, 2005, p. 24). Logo,
Em termos do objetivo, tentou-se mostrar que o aluno, da mesma maneira que o operário numa grande linha de montagem, corre o risco de alienar-se da atividade na qual está envolvido quando não consegue estabelecer a relação entre o que faz num determinado momento e o resultado final a que pretende chegar (LEFFA, 2005, p. 29).
http://www.ufrgs.br/psicoeduc/gilvieira/2011/02/02/teoria-historico-cultural-e-aprendizagem-contextualizada/
Alan November about tecnology in education
https://www.youtube.com/watch?t=66&v=NRnex3ZuFo8
"Practice does not make perfect, practice makes permanent"
@BrunoCaimar
BrunoCaimar / javascript_stuff.md
Created October 8, 2015 19:12
Javascript Stuff

The first common temptation is to assume this refers to the function itself. That's a reasonable grammatical inference, at least.

The next most common misconception about the meaning of this is that it somehow refers to the function's scope. It's a tricky question, because in one sense there is some truth, but in the other sense, it's quite misguided.

We said earlier that this is not an author-time binding but a runtime binding. It is contextual based on the conditions of the function's invocation. this binding has nothing to do with where a function is declared, but has instead everything to do with the manner in which the function is called.

this is actually a binding that is made when a function is invoked, and what it references is determined entirely by the call-site where the function is called.

function foo() {

@BrunoCaimar
BrunoCaimar / esri_sql_api.md
Created October 8, 2015 19:04
ArcGIS SQL API links
@BrunoCaimar
BrunoCaimar / dojo_stuff.txt
Last active September 25, 2015 13:59
Dojo - Topic / Events / AMD
-- Topic - Pub/Sub infra
---- topic.subscribe / topic.publish
-- Dojo/On - Events related to objects or DOM
---- dojo.on(target, event, function2handleIt)
---- dojo.on.emit(target, event, params)
---- on.once(t, e, f) - Run just once
AMD
"my/otherModule" is one directory up, so we use "../"
@BrunoCaimar
BrunoCaimar / obter_layer_ids.js
Created September 21, 2015 20:36
LdC - Obter id Layers
for (var item in this._viewerMap._layers) {
console.log(item, this._viewerMap._layers[item].name) ;
}
@BrunoCaimar
BrunoCaimar / geojson.tests.json
Last active September 4, 2015 14:16
GeoJson Tests
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BrunoCaimar
BrunoCaimar / obter_poligono_from_extent.js
Created August 18, 2015 19:20
Obter polígono usando um extent como origem
obter_poligono: function(graphic, commontype)
{
var geometry = graphic.geometry;
var polygon = geometry;
if(geometry.type === "extent")
{
var a = geometry;
polygon = new Polygon(a.spatialReference);
var r=[[a.xmin,a.ymin],