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
function _remap($method) { | |
if (in_array(strtolower($method), array_map('strtolower', get_class_methods($this)))) { | |
$uri = $this->uri->segment_array(); | |
unset($uri[1]); | |
unset($uri[2]); | |
call_user_func_array(array($this, $method), $uri); | |
} | |
else { | |
redirect('404'); |
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
-moz-box-shadow: 0 1px 3px black; | |
-webkit-box-shadow: 0 1px 3px black; | |
box-shadow: 0 1px 3px black; |
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
function sortbydate($a,$b){ | |
if($a['date']>$b['date']) | |
return 1; | |
else if($a['date']<$b['date']) | |
return -1; | |
return 0; | |
} |
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 | |
/** | |
* Ranking Library | |
* contains alogrithms for story ranking | |
* Basically a PHP Implementation of reddits algorithms | |
* | |
* @author Lucas Nolte <[email protected]> | |
* @since 0.1 | |
* @package Polska Wiadomosc | |
* @subpackage Libraries |
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
@if($__env->yieldContent('messages') != '') | |
<div class="messages"> | |
<h1>Messages</h1> | |
@yield('messages') | |
</div> | |
@endif |
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
$('.unlock-btn').live('click', function(){ | |
$(this).closest('.btn-group').find('.btn-danger').toggleClass('disabled'); | |
$(this).find('i').toggleClass('icon-lock').toggleClass('icon-unlock'); | |
}); |
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 BaseController extends Controller | |
{ | |
/** | |
* Setup the layout used by the controller. | |
* | |
* @return void | |
*/ |
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
$all_ever = \VentureCraft\Revisionable\Revision::where('revisionable_type', 'post') | |
->where('key', 'blog_title') | |
->orderBy('id', 'asc') | |
->get(); |
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 gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var phpunit = require('gulp-phpunit'); | |
var notify = require('gulp-notify'); | |
var gutil = require('gulp-util'); | |
var exec = require('child_process').exec; | |
var sys = require('sys'); | |
var livereload = require('gulp-livereload'); |
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 | |
// Adding this to your app/artisan.php file will | |
// do a quick confirmation that you really do want | |
// to run this command when in production environment | |
if (App::environment() === 'production') { | |
echo "\033[0;33m======== WARNING ========\n"; | |
echo "===== IN PRODUCTION =====\n"; | |
echo "=========================\n"; |
OlderNewer