Skip to content

Instantly share code, notes, and snippets.

View marcellorg's full-sized avatar

marcellorg

  • São Paulo, Brasil
View GitHub Profile
@marcellorg
marcellorg / index.html
Last active November 7, 2018 10:33
Trello Layout with CSS Grid and Flexbox
<div class="ui">
<nav class="navbar app">App bar</nav>
<nav class="navbar board">Board bar</nav>
<div class="lists">
<div class="list">
<header>List header</header>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lobortis enim sit amet</li>
@marcellorg
marcellorg / bronze.blade.php
Created May 3, 2018 19:37
Modelo dos grupos
@extends('_partials.base',['menuActive' => 'accounts.validate'])
@section('content')
<div class="row justify-content-center">
<div class="col-md-4">
<div class="cus-bg-content">
<table class="table table-bordered">
<tr style="background: #cd7f32">
<?php
use Silber\Bouncer\Database\Models;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use CircleSystem\Models\User;
class PermissionTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
gulp.task('scss', function() {
var source = gulp.src('sources/sass/theme.scss')
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(sass());
var pipe1 = source.pipe(clone())
.pipe(sourcemaps.write('.'))
// .pipe(rename('custom-editor-style.css'))
.pipe(gulp.dest('css'))
{
"name": "understrap",
"version": "0.6.2",
"description": "Wordpress Theme framework",
"main": "index.js",
"scripts": {
"postinstall": "gulp copy-assets"
},
"engines": {
"npm": ">=2.1.8"
const { mix } = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.extract(['jquery','tether','bootstrap'])
.autoload({
jquery: ['$', 'window.jQuery', 'jQuery', 'jquery'],
tether: ['Tether', 'window.Tether']
})
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var sass = require('gulp-sass');
var watch = require('gulp-watch');
var concat = require('gulp-concat');
var gulpif = require('gulp-if');
var cssnano = require('gulp-cssnano');
var imagemin = require('gulp-imagemin');
var uglify = require('gulp-uglify');
var rimraf = require('gulp-rimraf');
<?php
namespace Codecasts\Core\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class RedirectIfWrongUrlOrProtocol
{
/** @var Request */
<template>
<div class="row bord-top" style="border-top: 2px solid #e9e9e9">
<div class="col-sm-6 ">
<p style="margin-top:10px">Exibindo {{source.from}} até {{source.to}} de {{source.total}} registros</p>
</div>
<div class="col-sm-6 text-right">
<nav>
<ul class="pagination" style="margin: 10px 0">
<li v-bind:class="{disabled: source.current_page == 1}">