This file contains hidden or 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 Feed_Controller extends Base_Controller | |
{ | |
public $layout = 'layouts.feed'; | |
public function get_index() | |
{ | |
$records = Record::where_deleted(0) | |
->order_by('updated_at', 'desc') |
This file contains hidden or 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 upload_image($options = array()) | |
{ | |
$defaults = array( | |
'bucket' => 'socialdueling', | |
'sizes' => array('small' => 150, 'medium' => 300), | |
'input_name' => 'image', | |
'file_path' => 'storage/work/', | |
'return_value' => '', | |
'storage_path' => 'uploads/', |
This file contains hidden or 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
Event::listen('404', function() | |
{ | |
$username = URI::segment(1); | |
$user = User::where_username($username) | |
->where_type('account') | |
->first(); | |
if ($user != null) { | |
if ($user->username != '') { |
This file contains hidden or 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
public function post_create() | |
{ | |
ignore_user_abort(true); | |
set_time_limit(0); | |
Log::go('user can start browsing or whatever cause they aren't here anymore'); | |
Log::go('uploading file to S3 because flash sucks'); | |
} |
This file contains hidden or 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 uploader = (function(){ | |
var r = Resumable({ | |
target: '/upload/stream', | |
chunkSize: 1*1024*1024, | |
query: { | |
serie_id: {{ $serie->id }} | |
} | |
}), |
This file contains hidden or 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
<div class='btn-group row-fluid'> | |
<a class='btn btn-success btn-large' href='#pay-with-share' data-toggle='modal'> | |
Pay with a Tweet or Share | |
</a> | |
</div> | |
<div class='modal hide fade' id='pay-with-share'> | |
<div class='modal-header'> | |
<button type='button' class='close' data-dismiss='modal' aria-hidden='true'>×</button> |
This file contains hidden or 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 Focus_Controller extends Base_Controller | |
{ | |
public function post_test() | |
{ | |
dd('post'); | |
} | |
public function get_test() |
This file contains hidden or 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
<script type="text/javascript"> | |
(function() { | |
var delay; | |
delay = function(ms, func) { | |
return setTimeout(func, ms); | |
}; | |
toastr.options = { | |
positionClass: 'toast-bottom-left' |
This file contains hidden or 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 c = $('.focus-container'), | |
Focus = (function(window, document, undefined) { | |
var s = { | |
alphaContacts: {}, | |
clearTagsBtn: '.focus-clear-tags-btn', | |
contact: null, | |
contacts: {}, | |
contactsAlphaBtn: $('.focus-alpha-contacts-btn'), | |
contactList: $('.focus-contact-list'), | |
contactProfile: $('.focus-contact-profile'), |