Skip to content

Instantly share code, notes, and snippets.

View DrMabuse23's full-sized avatar
🏠
Working from home

Pascal Brewing DrMabuse23

🏠
Working from home
View GitHub Profile
npm install -g grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-cli
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore'
npm ERR! error rolling back [email protected] { [Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore' }
npm ERR! Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore'
npm ERR! { [Error: EACCES, unlink '/usr/local/share/npm/lib/node_modules/grunt-cli/.npmignore']
array('imagefile', 'file', 'types'=>'jpg, gif, png','allowEmpty' => false,'on' => 'create'),
array('imagefile','file','types'=>'jpg, gif, png','allowEmpty' => true,'on' => 'update'),
<?php
/**
* Twig view renderer class file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\helpers;
<?php
namespace app\helpers;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\VarDumper;
/**
* Class Typo
* @author: Pascal Brewing < [email protected] >
<?php
/**
* Twig view renderer class file.
*
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\twig;
{{ typo.pageHeaderTwig('test','test') }}
<?php
namespace app\helpers;
use app\helpers\Typo;
/**
*
*/
class TwigExtensions extends \Twig_Extension
<?php
/**
* Created by PhpStorm.
* User: brewing
* Date: 21.11.13
* Time: 11:40
*/
namespace frontend\components;
@DrMabuse23
DrMabuse23 / Glyph.php
Last active December 28, 2015 23:29
implement Glyphicons
<?php
namespace app\helpers;
/**
* Date: 20.11.13
* Time: 23:00
* Class Glyph
* Create a Glyphicon
*
<div class="tweet">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink() ?>';
tweetmeme_source = '<?php bloginfo('url') ?>/author/<?php the_author_link() ?>';
</script>
<!--[if IE]>
<script type="text/javascript">
onload = function()
{
var theframes = document.getElementsByTagName('iframe');