Skip to content

Instantly share code, notes, and snippets.

View tamaspap's full-sized avatar

Tamás Pap tamaspap

  • Cluj-Napoca, Romania
View GitHub Profile
@tamaspap
tamaspap / install-phantomjs.sh
Created October 1, 2016 12:54
Install phantomjs on ubuntu 14.04
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
## system wide
sudo ln -s /usr/local/share/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
phantomjs -v
.nav {
height: 30px;
&__list {
list-style: none;
&__item {
float: left;
&--featured {
color: #e86ea4;
}
}
.nav {
&__list {
&__item {
&--featured {
}
}
}
}
.nav {
@at-root #{&}__list {
@at-root #{&}__item {
@at-root #{&}--featured {}
}
}
}
.block {} /* represents a higher level of abstraction or component */
.block__element {} /* represents a descendent of .block */
.block--modifier {} /* represents a different state or version of .block. */
.nav {}
.nav__list {}
.nav__list__item {}
.nav__list__item--featured {}
@tamaspap
tamaspap / uploaderjs-basic-demo.html
Created June 25, 2014 11:01
UploaderJS - Basic demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Uploader Demo</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/>
<style>
.uploader-button {
position: relative;
overflow: hidden;
@tamaspap
tamaspap / gist:3accf35a2b057d050846
Created June 17, 2014 18:25
Setup LAMPP on Ubuntu
// LAMP
sudo apt-get install tasksel
sudo tasksel install lamp-server
//CURL + Composer + mcrypt
sudo apt-get install curl php5-curl php5-mcrypt
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
//activate mod_rewrite + mcrypt