Skip to content

Instantly share code, notes, and snippets.

View Moccine's full-sized avatar

Sow.Mouctar Moccine

View GitHub Profile
@Moccine
Moccine / \resources\assets\js\scriptOne.js
Last active February 23, 2016 17:07
Ajax Response Json LARAVEL5.2
var $a = jQuery.noConflict();
$a(document).ready(function () {
$a(".thumbnail.user").click(function () {
$a.mydata = $a(this).myAjaxInit();
var type = $a.mydata.type;
$a.getJSON($a.mydata.urlJson, function (data) {
$a.pagination = $a(data)
$a.pagination = $a($a.pagination[0])
$a.data = $a($a.pagination[0].data);
var contentPage = $a(".bs-allbookmark");
@Moccine
Moccine / Layouts\css.blade.php
Last active February 22, 2016 00:30
Layouts
<!-- Fonts -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700" rel='stylesheet' type='text/css'>
<!-- Styles -->
<link href="{{asset('public/css/app.css')}}" rel="stylesheet" type="text/css">
{{--
<link href="public{{elixir('css/app.css')}}" rel="stylesheet" type="text/css">
Cete method poses a problem when you use the methods resource for the type of route:
@Moccine
Moccine / UserController.php
Last active February 22, 2016 08:16
UserController
<?php
namespace App\Http\Controllers;
use App\Avatar;
use App\Bookmark;
use App\User;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\DB;
@Moccine
Moccine / BoomarksTableSeeder.php
Last active February 22, 2016 05:50
Boomarks an Users TableSeeder
<?php
use Illuminate\Database\Seeder;
class BookmarksTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
@Moccine
Moccine / gulpfile.js
Last active October 26, 2016 23:54
Laravel Gupfile
elixir(function(mix) {
mix.sass('app.scss');
});
/*copy all font */
elixir(function(mix) {
mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts/bootstrap')
.copy('public/fonts/bootstrap/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts')
.copy('bower_components/metro-bootstrap/dist/fonts/**/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts/metro-bootstrap')
.copy('public/fonts/metro-bootstrap/font-awesome/*{.eot,.svg,.ttf,.woff,.woff2}', 'public/fonts')