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 | |
declare(strict_types=1); | |
namespace DanBettles\Marigold\Utils; | |
use function array_replace; | |
use function pathinfo; | |
use const null; |
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
@import "compass/css3/transform"; | |
@mixin vertically-centre-descendant($descendant-selector, $descendant-position: relative) { | |
@include transform-style(preserve-3d); | |
position: relative; | |
#{$descendant-selector} { | |
@include transform(translateY(-50%)); | |
position: $descendant-position; | |
top: 50%; |
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 | |
/** | |
* @author Dan Bettles <[email protected]> | |
* | |
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/uk/ by-nc-sa | |
*/ | |
if ( ! defined('BASEPATH')) | |
{ | |
exit('No direct script access allowed'); |
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 | |
/** | |
* Active_resource_model is a simple, GET-only version of Rails' ActiveResource | |
* (http://api.rubyonrails.org/classes/ActiveResource/Base.html) for CodeIgniter. | |
* | |
* Only JSON data sources are supported at present. Active_resource_model requires the CodeIgniter "curl" library | |
* (http://getsparks.org/packages/curl/show). | |
* | |
* Copy this file into application/models and then add "Active_resource_model" to the models array in | |
* application/config/autoload.php. |
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
#!/bin/sh | |
TEMP_DIR="/tmp/jsmin" | |
SRC_FILENAME="http://www.crockford.com/javascript/jsmin.c" | |
SRC_BASENAME="jsmin.c" | |
BIN_BASENAME="jsmin" | |
BIN_DIR="/bin" | |
mkdir $TEMP_DIR | |
cd $TEMP_DIR |