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 FindProxyForURL(url, host) { | |
var site_list = [ | |
"localhost", | |
"127.0.0.1", | |
"ci.inverselink.com", | |
"sentry.inverselink.com" | |
]; | |
if (site_list.includes(host)) { | |
return "SOCKS5 127.0.0.1:8888"; |
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 lazy = function(name, func) { | |
let cached = null; | |
afterEach(function() { | |
delete global[`$${name}`]; | |
cached = undefined; | |
}); | |
Object.defineProperty(global, `$${name}`, { | |
configurable: true, | |
get() { |
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
case "JSXElement": | |
var openingLines = path.call(print, "openingElement"); | |
if (n.openingElement.selfClosing) { | |
assert.ok(!n.closingElement); | |
return openingLines; | |
} | |
var childs = []; | |
var childs2 = []; |
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
window.ReactPerfectScrollComponent = React.createClass | |
displayName: 'ReactPerfectScrollComponent' | |
getDefaultProps: -> | |
suppressScrollX: true | |
includePadding: true | |
componentDidMount: -> | |
$(@getDOMNode()).perfectScrollbar | |
suppressScrollX: @props.suppressScrollX |
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
<% content_for :base_content do %> | |
<h1>Application</h1> | |
<%= yield %> | |
<% end %> |
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
#!/usr/bin/env ruby | |
def find_imports_from root_file | |
imports = [] | |
path = resolve_path root_file | |
return [] unless File.exists? root_file | |
open root_file do |f| | |
import_lines = f.grep(/\@import/) |