This file contains 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
(function () { | |
var ret; | |
for (var i = 0; i < 10; i++) { | |
if (i == 5) { | |
ret = function () { | |
return i; | |
} | |
} |
This file contains 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
(function (a, b, c) { | |
Array.prototype.reverse.apply(arguments); | |
console.log(a, b, c); | |
})(1, 2, 3); |
This file contains 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 = new String('aaa'); | |
var b = new String('aaa'); | |
console.log(a == b); // false | |
var a = 'aaa'; | |
var b = 'aaa'; | |
console.log(a == b); // true |
This file contains 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
(function () { | |
var _window = window; | |
(function () { | |
var window = {}; | |
Object.defineProperty(window, 'location', { | |
get: function () { return _window.location; }, |
This file contains 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
<link rel="import" href="../bower_components/polymer/polymer.html"> | |
<polymer-element name="img-placeholder" | |
attributes="width height src alt"> | |
<template> | |
<img src="http://placehold.it/{{ generatedSrc }}" | |
width="{{ width }}" | |
height="{{ height }}" | |
alt="{{ alt }}"> |
This file contains 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 = { | |
// This should be myFunc: function(a, b) | |
myFunc(a, b) { | |
console.log(a, b); | |
} | |
}; |
This file contains 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
const RedditFeedRowTemplate = ` | |
<style> | |
:host { | |
display: block; | |
} | |
div { | |
display: flex; | |
} | |
div > * { |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am zacharytamas on github. | |
* I am zacharytamas (https://keybase.io/zacharytamas) on keybase. | |
* I have a public key ASAMaqyzP8ZxCgFIIA3lqxgDZGltHe6mHJQi6mnoUNQ4NQo | |
To claim this, I am signing this object: |
This file contains 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
<dom-module id="my-app"> | |
<template> | |
<page-title base-title="My App" page-title="[[pageTitle]]"></page-title> | |
<iron-pages id="pages" attr-for-selected="name" | |
selected="{{selectedPage}}" | |
on-selected-item-changed="_selectedPageElementChanged" | |
on-update-page-title="_updatePageTitle"> | |
This file contains 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
{"lastUpload":"2018-04-30T19:52:03.883Z","extensionVersion":"v2.9.0"} |
OlderNewer