Skip to content

Instantly share code, notes, and snippets.

View bedeabza's full-sized avatar

D Badea bedeabza

  • Bucharest, Romania
View GitHub Profile
var config = require('../../config'),
common = require('../common'),
menu = require('../components/menu'),
ptor = browser,
user = config.users.admin;
browser.driver.manage().window().setSize(1300, 900);
browser.get(config.url('/'));
describe("Unauthenticated", function() {
@bedeabza
bedeabza / assert.css
Last active January 5, 2016 11:16
JS Simple Assert
.assertions {
list-style-type: none;
margin: 0;
padding: 0;
border-top: 1px solid #000;
background-color: #fff;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
@bedeabza
bedeabza / hexhsl.php
Created April 11, 2014 12:10
PHP Hex to HSL and HSL to Hex conversion
function hexToHsl($hex) {
$hex = array($hex[0].$hex[1], $hex[2].$hex[3], $hex[4].$hex[5]);
$rgb = array_map(function($part) {
return hexdec($part) / 255;
}, $hex);
$max = max($rgb);
$min = min($rgb);
$l = ($max + $min) / 2;
<?php
class Octi extends Human implements Troll, Fisherman
{
private $cellPhone;
private $fishingStick;
private $trollStack;
protected $brain;
protected $actsAs = array(
'project_manager' => array()
@bedeabza
bedeabza / iframeception.php
Created August 22, 2012 07:55
I can't believe I haven't done this until now :))
<iframe src="iframeception.php?<?= rand(0,1000) ?>" width="99%" height="99%"></iframe>
@bedeabza
bedeabza / test_capabilities.php
Last active October 7, 2015 10:18
Capabilities test for Webstars CMS
<?php
/**
* Webstars Application
*
* This file tests the capabilities of the web server to insure that a Zend Framework CMS will run smoothly
*
* @category WS
* @package WS
* @copyright 2005-2010 WebstarsLTD (http://www.webstarsltd.com/)
*/