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
#!/bin/sh | |
cd /usr/local/src | |
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
tar xvjpf phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
ln -s /usr/local/src/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
git clone git://github.com/n1k0/casperjs.git | |
cd casperjs | |
git checkout tags/1.0.2 | |
ln -sf /usr/local/src/casperjs/bin/casperjs /usr/local/bin/casperjs |
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
function leo_array_diff($a, $b) { | |
$map = $out = array(); | |
foreach($a as $val) $map[$val] = 1; | |
foreach($b as $val) unset($map[$val]); | |
return array_keys($map); | |
} |
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 mergeTo = [4,5,6]; | |
var mergeFrom = [7,8,9]; | |
Array.prototype.push.apply(mergeTo, mergeFrom); | |
mergeTo; // is: [4, 5, 6, 7, 8, 9] |
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
$ ls -d $PWD/* |
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 | |
require 'google-api/apiClient.php'; | |
require 'google-api/contrib/apiOauth2Service.php'; | |
require 'google-api/contrib/apiDriveService.php'; | |
$pdfFile = 'test.pdf'; | |
// API Console: https://code.google.com/apis/console/ | |
// Create an API project ("web applications") and put the client id and client secret in config.ini. |
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
/* CSS openworlds logo http://openworlds.in.th/ */ | |
@import url(http://fonts.googleapis.com/css?family=Andika); | |
p { | |
margin: 0; | |
padding: 0; | |
font-family: 'Andika', sans-serif; | |
/* This is not the right font. ;P */ | |
font-size: 52px; | |
line-height: 1.2; | |
} |
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
/* Logo of some exhibition http://goo.gl/EK4Yp | |
from https://www.facebook.com/iCAREClub?ref=ts | |
*/ | |
body { | |
font-size: 16px; | |
background-color: #DFE0E2; | |
color: #BA9254; | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: white; | |
background-image: repeating-linear-gradient(-45deg, | |
rgba(255, 0, 0, 1) 25%, | |
transparent 25%, | |
transparent 50%, | |
rgba(0, 0, 255, 1) 50%, |