Skip to content

Instantly share code, notes, and snippets.

View tanduong's full-sized avatar

Tan Duong tanduong

View GitHub Profile
<html ng-app="buttons">
<div button-group>
<div button-main>
<div>Main</div>
</div>
<div button-item>
<div>Item 1</div>
</div>
<div button-item>
<div>Item 2</div>
@tanduong
tanduong / Shortcuts
Last active August 29, 2015 14:22
Shortcuts
Tmux
=================
Create new session
tmux new -s <session name>
Suspend session:
Ctrl + b + z
Attach session:
var Dropdown;
Dropdown = (function() {
function Dropdown($el, options) {
this.options = options;
this.$el = $el;
this.setup()
};
Dropdown.prototype.defaults = {
# turn on webkit driver debug
$webkit_debug = false
$wait_time = 5
$use_chrome_instead_of_firefox = true
def set_webkit_driver()
if $webkit_debug
Capybara.javascript_driver = :webkit_debug
else
Capybara.javascript_driver = :webkit