brew install selenium-server-standalone chromedriver
git clone git@github.com: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 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
<?php | |
/* | |
* Search video library by title | |
* @var $title string | |
* @return array List of videos | |
*/ | |
public function search($title) | |
{ | |
$html = $this->gb->get('http://vk.com/video?q='.htmlentities(urlencode($title)).'§ion=search'); |
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
<?php | |
/** | |
* Vk.com video script | |
* - it searches for the movie | |
* - it gets embed code | |
* | |
* @author Sergej Jevsejev | |
* @url http://sjevsejev.blogspot.com | |
*/ |
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
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 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 (marcello.desales@gmail.com) | |
# 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 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 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 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 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 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)'); |
NewerOlder