- It's where to look for things.
- Javascript has function scope only.
- There are 2 predominant modules:
- Lexical scope: building example - goes up one level looking for there. The top of the building is the global scope
- Dynamic scope:
this
example. Moves to any level of the building as if it were looking for an address.
- Cheating scope:
eval
andwith
(bad mechanisms, avoid it).
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
.u-hidden { | |
display: none!important | |
} | |
.u-brandColor { | |
color: #e10d33!important | |
} | |
.u-block { | |
display: block!important | |
} | |
.u-textCenter { |
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
https://d2guulkeunn7d8.cloudfront.net/assets/branded/instacart_components-57a4a4a40d019edabc669ce55d1c0bed.css | |
@keyframes skeleton-item-loading { | |
0% { | |
background-position: -468px 0 | |
} | |
100% { | |
background-position: 468px 0 | |
} |
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 App; | |
App = (function() { | |
var catchDom, dom, events, functions, initialize, st, subscribeEvents; | |
dom = {}; | |
st = { | |
body: "body", | |
frmParsley: ".frm-parsley" | |
}; | |
catchDom = function() { |
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
<!DOCTYPE html "-//w3c//dtd xhtml 1.0 transitional //en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<!--[if gte mso 9]><xml> | |
<o:OfficeDocumentSettings> | |
<o:AllowPNG/> | |
<o:PixelsPerInch>96</o:PixelsPerInch> | |
</o:OfficeDocumentSettings> | |
</xml><![endif]--> |
- Instalar Adobe Flash Player
sudo apt-get install pepperflashplugin-nonfree
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* ${2:Descripción del módulo} | |
* @submodule ${3:nombre_del_modulo} | |
* @main ${1:default} | |
* @author ${4:Nombre del Autor} | |
*/ | |
yOSON.AppCore.addModule("${3:nombre_del_modulo}", function(Sb){ |