A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| <?php | |
| use App; | |
| use DB; | |
| use Illuminate\Database\Seeder; | |
| use Illuminate\Database\Eloquent\Model; | |
| class DatabaseSeeder extends Seeder | |
| { | |
| /** |
| /** | |
| * Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
| * https://gist.github.com/faisalman | |
| * | |
| * Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
| * Licensed under The MIT License | |
| * http://www.opensource.org/licenses/mit-license | |
| */ | |
| (function(){ |
| <?php | |
| class BlogController extends Controller | |
| { | |
| /** | |
| * Posts | |
| * | |
| * @return void | |
| */ | |
| public function showPosts() |
| // dashboard component | |
| var dashboard = Vue.extend({ | |
| template: '<p>Hello from dashboard</p>' | |
| }) | |
| // user management component | |
| var user = Vue.extend({ | |
| template: '<p>Hello from user management page</p>' | |
| }) |
Handy helpers for controlling visibility of elements until Vue has compiled.
Use like:
<div v-cloak>
<h1>
<span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
<span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
| $('.modal.draggable>.modal-dialog').draggable({ | |
| cursor: 'move', | |
| handle: '.modal-header' | |
| }); | |
| $('.modal.draggable>.modal-dialog>.modal-content>.modal-header').css('cursor', 'move'); |
| Code | |
| $("button").single_double_click(function () { | |
| alert("Try double-clicking me!") | |
| }, function () { | |
| alert("Double click detected, I'm hiding") | |
| $(this).hide() | |
| }) | |
| <?php $color = dechex(rand(0x000000, 0xFFFFFF)); ?> | |
| <body style="background-color: <?php echo $color; ?>;"> | |
| <h1><?php echo $color ?></h1> | |
| </body> |