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
var app = angular.module('myApp', ['ngGrid', 'ui.bootstrap']); | |
app.controller('MyCtrl', function($scope, $window) { | |
$scope.percentage = 65; | |
$scope.myData = [ | |
{ name : "Moroni", age: 50}, | |
{ name : "Tiancum", age: 43}, | |
{ name : "Jacob", age: 27}, |
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
.hi-icon-effect-6 .hi-icon { | |
box-shadow: 0 0 0 4px rgba(255,255,255,1); | |
transition: background 0.2s, color 0.2s; | |
} | |
.no-touch .hi-icon-effect-6 .hi-icon:hover { | |
background: rgba(255,255,255,1); | |
color: #64bb5d; | |
} |
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
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script> | |
</head> | |
<body> | |
<div id="div1">Div 1</div> | |
<div id="div2">Div 2</div> | |
<div id="div3">Div 3</div> | |
<img src="http://brand.jquery.org/resources/jquery-mark-light.gif" /> | |
</body> |
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
class DriverJSError < StandardError; end | |
AfterStep do |scenario, step| | |
errors = page.driver.browser.manage.logs.get(:browser) | |
.select {|e| e.level == "SEVERE" } | |
.map(&:message) | |
.to_a | |
if errors.any? | |
message = errors.map(&:message).join("\n\n") |
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
# remap prefix to Control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# quick pane cycling |
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
# Some `ls` shortcuts | |
alias ll="ls -laG" # ls vertically and with more info in a table/column layout | |
alias lscount="ls -1 | wc -l" # count files/folders in current directory | |
# resize tmux window up|down | |
alias tmuxup="tmux resize-p -U 5" | |
alias tmuxdown="tmux resize-p -D 5" | |
alias tmuxleft="tmux resize-p -L 5" | |
alias tmuxright="tmux resize-p -R 5" |