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 greet = "Hello World" | |
| function sayHello() { | |
| console.log(greet) | |
| var greet = "Hello world again from inside the function" | |
| console.log(greet) | |
| } |
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 greet = "Hello World" | |
| function sayHello() { | |
| var greet; | |
| console.log(greet) | |
| var greet = "Hello world again from inside the function" | |
| console.log(greet) | |
| } |
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
| function sayHello() { | |
| console.log(greet) | |
| } |
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 sayHello = function() { | |
| console.log(greet) | |
| }; |
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 greet = "hello world" | |
| function sayHi() { | |
| sayHello() | |
| var sayHello = function() { | |
| console.log(greet) | |
| } | |
| } |
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 greet = "hello world" | |
| function sayHi() { | |
| sayHello() | |
| function sayHello() { | |
| console.log(greet) | |
| } | |
| } |
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
| React Google Maps | |
| by @tomchentw | |
| Getting started | |
| Samples | |
| Geojson | |
| Fork me on GitHub | |
| Map data ©2015 Google |
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
| class Node | |
| attr_accessor :value, :next_node_in_stack | |
| def initialize(value, next_node_in_stack) | |
| @value = value | |
| @next_node_in_stack = next_node_in_stack | |
| end | |
| end |
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 SearchRetailers = React.createClass({ | |
| getInitialState: function() { | |
| return { | |
| data: {}, | |
| }; | |
| }, | |
| sendForm:function(formData) { | |
| formData.preventDefault(); | |
| var query = React.findDOMNode(this.refs.search).value.trim(); |
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 fs = require('fs'); | |
| var cities = []; | |
| var underscore = require("underscore"); | |
| var data = fs.readFileSync("public/retailers.json", "utf-8", function(result, error) { | |
| if(!error) { | |
| return result; | |
| } | |
| }); |