- find all necessary files here - https://gist.github.com/maxivak/05847dc7f558d5ef282e
import re, csv | |
from time import sleep, time | |
from random import uniform, randint | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.common.action_chains import ActionChains | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.common.exceptions import NoSuchElementException |
<?php | |
class MyModel extends Eloquent { | |
public function getSql() | |
{ | |
$builder = $this->getBuilder(); | |
$sql = $builder->toSql(); | |
foreach($builder->getBindings() as $binding) | |
{ |
/** | |
* | |
* Javascript color conversion | |
* http://www.webtoolkit.info/javascript-color-conversion.html | |
* | |
**/ | |
function HSV(h, s, v) { | |
if (h <= 0) { h = 0; } | |
if (s <= 0) { s = 0; } |
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |