View artisan.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";
# -*- coding: utf8 -*-
import json
import urllib2
import urllib
import sys
import os
from argparse import ArgumentParser
from collections import defaultdict
View BaseController.php
class BaseController extends Controller
* Setup the layout used by the controller.
* @return void
View gist:6315260
$all_ever = \VentureCraft\Revisionable\Revision::where('revisionable_type', 'post')
->where('key', 'blog_title')
->orderBy('id', 'asc')
View unlock_delete.js
$('.unlock-btn').live('click', function(){
View view.blade.php
@if($__env->yieldContent('messages') != '')
<div class="messages">
View Ranking.php
* Ranking Library
* contains alogrithms for story ranking
* Basically a PHP Implementation of reddits algorithms
* @author Lucas Nolte <>
* @since 0.1
* @package Polska Wiadomosc
* @subpackage Libraries
View custom sort.php
function sortbydate($a,$b){
return 1;
else if($a['date']<$b['date'])
return -1;
return 0;
View Box shadow.css
-moz-box-shadow: 0 1px 3px black;
-webkit-box-shadow: 0 1px 3px black;
box-shadow: 0 1px 3px black;
View method 404 catch
function _remap($method) {
if (in_array(strtolower($method), array_map('strtolower', get_class_methods($this)))) {
$uri = $this->uri->segment_array();
call_user_func_array(array($this, $method), $uri);
else {