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
.List { | |
height: 100%; | |
overflow-y: auto; | |
-webkit-overflow-scrolling: touch; | |
} | |
.List__inner { | |
margin: 0; | |
padding: 0; | |
list-style: none; |
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 backgroundColor = '#262626'; | |
var activeColor = 'darkcyan'; | |
var highlightColor = '#152929'; | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', |
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 scrollIntoView(elem) { | |
var elemTop = elem.offset().top, | |
elemBottom = elemTop + elem.height(), | |
viewHeight = window.innerHeight, | |
limitTop = window.scrollY, | |
limitBottom = limitTop + viewHeight, | |
offset = 10; | |
if (elemTop < limitTop) { | |
window.scrollTo(0, elemTop - offset); |
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 vow = require('vow'), | |
request = require('request'), | |
handler = 'http://api.geonames.org/postalCodeLookupJSON?postalcode=6600&country=AT&username=demo'; | |
function getData(remote) { | |
if(remote) { | |
var promise = new vow.promise(); | |
request(remote, function(err, req, body) { |
NewerOlder