brew install selenium-server-standalone chromedriver
git clone [email protected]:theintern/intern.git
cd intern
git checkout geezer
npm install --production
ln -s .. node_modules/intern
curl https://gist.github.com/neonstalwart/6630466/raw/f0e4e4efbefa40c746f7c68e2bb4fa0dd5215047/selftest.local.intern.js > tests/selftest.local.intern.js
java -jar /usr/local/opt/selenium-server-standalone/selenium-server-standalone-2.35.0.jar -p 4444 &
node node_modules/intern/runner.js config=tests/selftest.local.intern
This file contains hidden or 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
Būkim draugais tik šiąnakt | |
Galim nebūti rytoj | |
Mes per trumpai gyvenam | |
Kad per ilgai apie tai galvoti | |
Būkim draugais kurie neišduoda | |
Prašo per daug - grąžina mažai | |
Būkim tokie, kurie supranta paguodą | |
Būkim draugais ir apsikeiskim laiškais | |
Būkim draugais… |
This file contains hidden or 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
###### | |
# Author: Marcello de Sales ([email protected]) | |
# Description: Create Create Environment Variables in EC2 Hosts from EC2 Host Tags | |
# | |
### Requirements: | |
# * Install jq library (sudo apt-get install -y jq) | |
# * Install the EC2 Instance Metadata Query Tool (http://aws.amazon.com/code/1825) | |
# | |
### Installation: | |
# * Add the Policy EC2:DescribeTags to a User |
This file contains hidden or 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
provider "aws" { | |
alias = "prod" | |
region = "us-east-1" | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
} | |
resource "aws_s3_bucket" "origin_blakesmith_me" { | |
provider = "aws.prod" |
This file contains hidden or 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
wget http://download.virtualbox.org/virtualbox/4.3.18/VBoxGuestAdditions_4.3.18.iso | |
sudo mkdir /media/iso | |
sudo mount -o loop VBoxGuestAdditions_4.3.18.iso /media/iso | |
cd /media/iso/ | |
sudo ./VBoxLinuxAdditions.run |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Sources: | |
# | |
# http://askubuntu.com/questions/334691/make-command-not-working-for-installing-shairport | |
# https://github.com/abrasive/shairport | |
# | |
sudo apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libao-dev libio-socket-inet6-perl libwww-perl avahi-utils pkg-config |
This file contains hidden or 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
// example how to use variable inside of CSS property name | |
.pv(@p,@v) | |
{ | |
-:~`";@{p}:@{v}".replace(/'/g,"")`; | |
} | |
#container { | |
.pv('border-radius',10px); | |
} |
This file contains hidden or 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
.rounded-corners (@radius: 5px) { | |
border-radius: @radius; | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
} | |
#header { | |
.rounded-corners; | |
} |
This file contains hidden or 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
/* Less.js function which generates prefixes any CSS property */ | |
.pf(@prop, @value){ | |
-:~`";"+"@{prop}:@{value};-webkit-@{prop}:@{value};-moz-@{prop}:@{value};-o-@{prop}:@{value};-ms-@{prop}:@{value}".replace(/'/g,"")`; | |
} | |
#container { | |
.pf('border-radius', 10px); | |
.pf('transform', 'rotate(7deg)'); | |
.pf('transition','all 1s ease-in-out'); | |
.pf('box-shadow','2px 2px 5px 0 rgba(0,0,0,.6)'); |
This file contains hidden or 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 mapObj = { | |
data: {}, | |
_getBlock: function(i,j){ | |
return this.data[i * this.elW + j]; | |
}, | |
blockSize: {w:0,h:0}, | |
width: 0, | |
height: 0, | |
elW:0, | |
elH:0, |
NewerOlder