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
/* | |
You can now create a spinner using any of the variants below: | |
$("#el").spin(); // Produces default Spinner using the text color of #el. | |
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el. | |
$("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color). | |
$("#el").spin({ ... }); // Produces a Spinner using your custom settings. | |
$("#el").spin(false); // Kills the spinner. |
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 | |
$objeto = new StdClass; | |
$objeto->key1 = 0; | |
$objeto->key2 = 0; | |
$objeto->key3 = 0; | |
$objeto->key4 = 0; | |
echo count((array) $objeto); |
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
$.each(response.errors, function(i, row) { | |
var fila = $('<tr/>'); | |
$.each(row, function(name, value) { | |
$('<td/>', { | |
text: value | |
}).appendTo(fila); | |
}); | |
fila.appendTo('#errors_in_modal'); | |
}); |
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
/* | |
* Translated default messages for the jQuery validation plugin. | |
* Locale: ES | |
*/ | |
jQuery.extend(jQuery.validator.messages, { | |
required: "Este campo es obligatorio.", | |
remote: "Por favor, rellena este campo.", | |
email: "Por favor, escribe una dirección de correo válida", |
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
angular.module('Demo', ['ionic', 'Demo.controllers', 'Demo.services', 'ngCordova']) | |
.run(function ($ionicPlatform, sqliteService) { | |
$ionicPlatform.ready(function () { | |
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | |
// for form inputs) | |
if (window.cordova && window.cordova.plugins.Keyboard) { | |
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
cordova.plugins.Keyboard.disableScroll(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
Route::get('edit', function() { | |
// fetch our post, and it's associated categories | |
$post = Post::with('cats')->where('id', '=', $id)->first(); | |
// fetch all of our categories | |
$cats = Cat::all(); | |
// create our empty array | |
$post_cats = array(); |
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
<style> | |
.ui-datepicker .md-icon { | |
flex: 0 0 auto; | |
margin-right: 8px; | |
width: 18px; | |
height: 18px; | |
} | |
</style> | |
<style lang="sass" scoped> |
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
<template> | |
<div class="Vue__table"> | |
<div class="VueTable panel panel-default"> | |
<div class="panel-heading"> | |
<div class="form-inline"> | |
<div class="form-group pull-left"> | |
<label class="control-label pr2">Mostrar</label> | |
<select class="form-control" v-model="perpage" number> | |
<option v-for="limit in limits" :value="limit">{{ limit }}</option> | |
</select> |
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
BoldAsFont=-1 | |
Transparency=low | |
Font=Fira Code | |
FontWeight=400 | |
FontIsBold=no | |
FontHeight=10 | |
FontSmoothing=full | |
CursorType=block | |
AllowBlinking=yes | |
BackgroundColour=13,25,38 |
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
<scheme name="Darcula - Laravel" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2016-11-30T10:57:57</property> | |
<property name="ide">PhpStorm</property> | |
<property name="ideVersion">2016.3.0.0</property> | |
<property name="modified">2017-01-04T18:34:54</property> | |
<property name="originalScheme">_@user_Darcula</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="1.5" /> | |
<option name="EDITOR_FONT_SIZE" value="12" /> |