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 static function takeAndSkip($take = 10, $skip = 0) | |
{ | |
return self::orderBy('id', 'DESC') | |
->take($take)->skip($skip)->get(); | |
} | |
public static function store($data) | |
{ | |
$validator = Validator::make($data, self::$rules); |
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="modal fade" id="company-create-modal"> | |
<div class="modal-dialog"> | |
<div class="modal-content"></div> | |
</div> | |
</div> |
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
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again 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
<option value="Afganistán">Afganistán</option> | |
<option value="Albania">Albania</option> | |
<option value="Alemania">Alemania</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> | |
<option value="Anguilla">Anguilla</option> | |
<option value="Antártida">Antártida</option> | |
<option value="Antigua y Barbuda">Antigua y Barbuda</option> | |
<option value="Antillas Holandesas">Antillas Holandesas</option> | |
<option value="Arabia Saudí">Arabia Saudí</option> |
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
<option value="Albanés">Albanés</option> | |
<option value="Alemán">Alemán</option> | |
<option value="Amharico">Amharico</option> | |
<option value="Arabe">Arabe</option> | |
<option value="Armenio">Armenio</option> | |
<option value="Bengali">Bengali</option> | |
<option value="Bieloruso">Bieloruso</option> | |
<option value="Birmanés">Birmanés</option> | |
<option value="Bulgaro">Bulgaro</option> | |
<option value="Catalan">Catalan</option> |
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
/* Large desktops and laptops */ | |
$desktop-lg: "(min-width: 1200px)" | |
/* Portrait tablets and medium desktops */ | |
$desktop: "(min-width: 992px) and (max-width: 1199px)" | |
/* Portrait tablets and small desktops */ | |
$tablet: "(min-width: 768px) and (max-width: 991px)" | |
/* Landscape phones and portrait tablets */ | |
$mobile: "(max-width: 767px)" | |
/* Landscape phones and smaller */ | |
$mobile-xs: "(max-width: 480px)" |
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
// Handlebars Localisation Helper | |
// Source: https://gist.github.com/tracend/3261055 | |
Handlebars.registerHelper('l10n', function(keyword) { | |
var lang = (navigator.language) ? navigator.language : navigator.userLanguage; | |
// pick the right dictionary (if only one available assume it's the right one...) | |
var locale = window.locale[lang] || window.locale['en-US'] || window.locale || false; | |
// exit now if there's no data | |
if( !locale ) return target; |
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
schemaName.set('toJSON', { | |
transform: function (doc, ret, options) { | |
ret.id = ret._id; | |
delete ret._id; | |
delete ret.__v; | |
} | |
}); |
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.post('/deploy/', function (req, res) { | |
var spawn = require('child_process').spawn, | |
deploy = spawn('sh', [ './deploy.sh' ]); | |
deploy.stdout.on('data', function (data) { | |
console.log(''+data); | |
}); | |
deploy.on('close', function (code) { | |
console.log('Child process exited with code ' + code); |
OlderNewer