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 links = []; | |
var quotes = []; | |
var tempUrl = []; | |
var infos = []; | |
var maxLinks = 10; | |
var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss'; | |
var newUrl; | |
var x = require('casper').selectXPath; |
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 quotes = 0; | |
var maxLinks = 5; | |
var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss'; | |
var x = require('casper').selectXPath; | |
var fs = require('fs'); | |
var utils = require('utils'); | |
var casper = require('casper').create({ | |
verbose: true, |
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
language: php | |
php: | |
- 5.3.3 | |
- 5.3 | |
- 5.4 | |
- 5.5 | |
before_script: | |
- composer --prefer-source install |
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
# from http://jwage.com/post/30490205475/a-cool-script-for-running-phpunit-tests-in-parallel | |
#!/bin/bash | |
NUM=0 | |
QUEUE="" | |
MAX_NPROC=2 # default | |
REPLACE_CMD=0 # no replacement by default | |
USAGE="A simple wrapper for running processes in parallel. | |
Usage: `basename $0` [-h] [-r] [-j nb_jobs] command arg_list | |
-h Shows this help | |
-r Replace asterix * in the command string with argument |
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
# Based on https://gist.github.com/fernandoaleman/5083680 | |
# Start the old vagrant | |
$ vagrant init ubuntu_saucy | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on |
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
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Domain</th> | |
<th class="visible-lg">Url</th> | |
<th>Position</th> | |
<th>Google PageRank/ Alexa PageRank</th> | |
<th>Actions</th> | |
</tr> | |
</thead> |
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
## Common bash function | |
alias sudo="sudo " # Hack, for sudo an aliases | |
alias ls="ls --color" | |
alias l="ls -lh --color" | |
alias ll="ls -lh --color" | |
alias lla="ll -a --color" | |
alias df="df -h" |
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
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
. /etc/bash_completion | |
fi | |
if [ -d $HOME/.rbenv/bin ]; then | |
PATH="$HOME/.rbenv/bin:$PATH" |
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
python version: | |
from bs4 import BeautifulSoup | |
import requests | |
r = requests.get("http://www.google.fr/search?num=100&q=scrapping") | |
data = r.text |
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
<?php | |
namespace Foo\Bar\BazBundle\Util; | |
abstract class BaseManager | |
{ | |
protected $em; | |
protected $class; |