This file contains 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 | |
class Library { | |
private $CI; | |
public function __construct() { | |
$this->CI =& get_instance(); | |
} | |
} |
This file contains 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 | |
class Model extends CI_Model { | |
public function __construct() { | |
parent::__construct(); | |
} | |
} |
This file contains 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
{ | |
"directory": "assets/vendor", | |
"json": "component.json", | |
"endpoint": "https://bower.herokuapp.com" | |
} |
This file contains 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
{ | |
"version": "0.0.1", | |
"name": "", | |
"description": "", | |
"dependencies": { | |
}, | |
"devDependencies": { | |
} |
This file contains 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 echo file_get_contents('http://bbh-labs.com/feed/'); ?> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title></title> | |
<script src="$MANAGER_WIDGET/Common/af/2.0.0/loader.js"></script> | |
<script src="$MANAGER_WIDGET/Common/API/Widget.js"></script> | |
<style> | |
html, | |
body { |
This file contains 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 data = { | |
'1234': { | |
type: 'start', | |
data: 'hellos' | |
}, | |
'5678': { | |
type: 'stop' | |
}, | |
'9101': { | |
type: 'start', |
This file contains 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
// here we're getting a casper reference using requirejs (since this all runs off nodejs) | |
var casper = require('casper').create(); | |
// now we need to select the airlines | |
var airlines = ['EI', 'BA', 'VS']; | |
casper.start('http://www.kayak.co.uk/#/flights/LON-NYC/2013-01-28/2013-02-04', function() | |
{ | |
// select our first airline | |
this.click('#fs_airlines_' + airlines.shift() + '_only'); |
This file contains 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
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0" /> | |
<title></title> | |
</head> | |
<body> | |
This file contains 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
#!/usr/bin/bash | |
for folder in images/*; do | |
for file in $folder/*.jpg; do | |
convert "$file" -resize 1200 -quality 60 -interlace line -strip ../path/to/dest/$(basename $folder | tr [:upper:] [:lower:])/$(basename ${file// /_} | tr [:upper:] [:lower:]) | |
done | |
done |