Skip to content

Instantly share code, notes, and snippets.

View aleksanderreksc's full-sized avatar

Aleksander Rekść aleksanderreksc

View GitHub Profile
@itspriddle
itspriddle / phpunit.rb
Created April 17, 2013 01:56
Install PHPUnit on OS X Mountain Lion using Homebrew
require 'formula'
class Phpunit < Formula
homepage 'http://www.phpunit.de/manual/current/en/index.html'
url 'http://pear.phpunit.de/get/phpunit.phar'
sha1 '7aaa26086ddf7cd0c517d7f52b74a53a7a1d7e29'
version 'HEAD'
def install
bin.install "phpunit.phar" => "phpunit"
@papoms
papoms / change-referrer.demo.phantom.js
Created August 26, 2012 17:03
Try to overwrite window.document.referrer from within phantomjs / onInitialized
var page = require('webpage').create();
page.onConsoleMessage = function (msg) {
console.log('From Page Console: '+msg);
};
page.onInitialized = function() {
page.evaluate(function () {
"use strict";
//The Referrer we want to set
@itszero
itszero / kb-ipad.html
Created May 14, 2011 11:44
CSS iPhone Keyboard Clone
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Keyboard</title>
<style type="text/css">
#keyboard {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #9199A4), color-stop(50%, #7D8591), color-stop(100%, #535C69));
border-radius: 10px;
background-color: #9199A4;