Skip to content

Instantly share code, notes, and snippets.

View aaronshaf's full-sized avatar

Aaron Shafovaloff aaronshaf

View GitHub Profile
@aaronshaf
aaronshaf / WebComponents.md
Last active December 18, 2015 00:19
Web Components

Embeddable widgets

HTML imports

<link rel="import" href="import-file.html">

Custom elements

@aaronshaf
aaronshaf / gist:5715972
Created June 5, 2013 18:17
Rough git equivalent to "svn export"
git archive master | tar -x -C ~/somewhere/
@aaronshaf
aaronshaf / canvas-development.md
Last active December 21, 2015 12:59
Canvas Development

"to get the selenium errors locally, you have to use USE_OPTIMIZED_JS=true bundle exec spec spec/selenium/path_to_spec.rb" - stanley

?debug_js=1

bake canvas:compile_assets
asyncTest 'testing the test...', 1, ->
setTimeout (->
equal 1,1
start()
), 50
@aaronshaf
aaronshaf / gist:6405296
Created September 1, 2013 15:48
Install BitTorrent Sync
sudo apt-get install python-software-properties -y
sudo add-apt-repository ppa:tuxpoldo/btsync
sudo apt-get update
sudo apt-get install btsync
<a class="al-trigger al-trigger-gray" role="button" aria-haspopup="true" tabindex="-1" aria-owns="content-1"
{{action 'open'}}>
<i class="icon-settings"></i>
<i class="icon-mini-arrow-down"></i>
<span class="screenreader-only">Settings</span>
</a>
<ul class="canvas-dropdown al-options ui-menu ui-widget ui-widget-content ui-corner-all ui-popup ui-kyle-menu use-css-transitions-for-show-hide" style="display: none;" id="ui-id-2" role="menu" tabindex="0" aria-hidden="true" aria-expanded="false">
<span class="ui-menu-carat" style="left: 71px;"><span></span></span>
var httpProxy = require('http-proxy');
var options = {
changeOrigin: true,
target: {
https: true
}
}
httpProxy.createServer(443, 'www.google.com', options).listen(8001);