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 | |
namespace App\Http\Controllers\Individuos; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use App\Models\Individuos\Sexo; | |
use Flash; |
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 | |
$files = array_slice($argv, 1); | |
foreach ($files as $file) { | |
$picture = file_get_contents($file); | |
$size = getimagesize($file); | |
// base64 encode the binary data, then break it into chunks according to RFC 2045 semantics | |
$base64 = chunk_split(base64_encode($picture)); |
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
// default exports | |
export default 42; | |
export default {}; | |
export default []; | |
export default foo; | |
export default function () {} | |
export default class {} | |
export default function foo () {} | |
export default class foo {} |
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> | |
(function($, Modernizr) { | |
if (!Modernizr.inputtypes.date) { | |
$('input[type=date]').bootstrapMaterialDatePicker({ | |
format: 'YYYY-MM-DD', | |
time: false, | |
lang: 'es' | |
}); | |
} |
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
'use strict'; | |
var cehubClientApp = angular.module('cehubClientApp', [ | |
'ngSanitize', | |
'ngRoute', | |
'restangular', | |
'ui.bootstrap', | |
'ngTagsInput' | |
]); | |
cehubClientApp.config(function($httpProvider) { |
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
/** | |
* App | |
* ============= | |
* | |
* */ | |
angular | |
.module('app.service') | |
.factory('RestangularCache', ['Restangular', '$cacheFactory', function(Restangular, $cacheFactory) { | |
return Restangular.withConfig(function(RestangularConfigurer) { | |
RestangularConfigurer.setDefaultHttpFields({cache: true}); |
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 Users_model extends MY_Model { | |
protected $table = "users"; | |
protected $primary_key = "user_id"; | |
protected $fields = array("location", "first_name", "last_name", "email", "gender", "facebook_id", "password", "password_hash", "deleted", "created_at", "modified_at", "university_id", "reset_token", "reset_token_expires"); | |
public $per_page = 9; | |
public $per_first_page = 15; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Users extends MY_Controller { | |
public function __construct() { | |
parent::__construct(); | |
$this->load->model('users_model', 'Users'); | |
} | |
public function create() { |
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 | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
$capsule = new Capsule; | |
$capsule->addConnection([ | |
'driver' => 'mysql', | |
'host' => 'localhost', | |
'database' => 'neobiz_dev', | |
'username' => 'root', | |
'password' => 'root', |
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 | |
// ------------------------------------------------------------------------- | |
/** | |
* Debuguear información sobre una variable o mas en una forma que es legible por humanos. | |
* | |
* Ejemplo: | |
* | |
* Con una sola variable | |
* $this->pr($response); | |
* |