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(){new app.Autocompleter}).call(this) |
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
%head | |
... | |
%link{rel: 'canonical', href: "http://[MyDomain].com#{request.path}"} |
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
# Do nothing, silently, when window.open is called | |
window.open = () -> |
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
module CapybaraSessionFactory | |
class SessionAlreadyDefined < StandardError; end | |
class SessionNotDefined < StandardError; end | |
# Parse a capybara session mode, which has the form | |
# "[driver]:[session_name]:[application_id]" | |
# | |
class CapybaraModeParser |
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
// Generated by CoffeeScript 1.8.0 | |
var turboReload; | |
turboReload = function() { | |
var browserCompatibleDocumentParser, documentParser, url; | |
browserCompatibleDocumentParser = function() { | |
var createDocumentUsingDOM, createDocumentUsingParser, createDocumentUsingWrite, e, testDoc, _ref; | |
createDocumentUsingParser = function(html) { | |
return (new DOMParser).parseFromString(html, 'text/html'); | |
}; |
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
# Fetches stories from Hacker News and stores them in an sqlite db. | |
# | |
# Uses a thread pool of 25 works to do the http requests to make things | |
# faster. | |
# | |
# Usage: | |
# python fetch_hn_stories 1 1000 | |
# | |
from hackernews import HackerNews |
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
import React from 'react' | |
import { createConnector } from '../lib/connector' | |
import DB from './db' | |
import env from '../config/environment' | |
import Logger from './logger' | |
const DebugError = ({error, componentDisplayName}) => | |
<div cl="connect-error-debug"> | |
<div cl="connect-error-message">{error.message}</div> |