Skip to content

Instantly share code, notes, and snippets.

View secondnetwork's full-sized avatar

Andreas Farah secondnetwork

View GitHub Profile
@dubravkoL
dubravkoL / htmlTags.html
Last active March 14, 2018 14:19
HEAD html - Must-Have Social Meta Tags for Twitter, Google+, Facebook and More
<head>
<!--///////// Minimum Social Media Tag Template: Article //////////-->
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />

##Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

###Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@sloyless
sloyless / grid.scss
Last active January 2, 2019 12:37
CSS Grid with Flexbox fallback
// Based on https://css-tricks.com/browser-compatibility-css-grid-layouts-simple-sass-mixins/
// This CSS Grid mixin and styles allow modern browsers to use the newer display: grid functionality,
// but allow a fallback to Flexbox to support older browsers like IE 11.
@mixin basic-styles {
display: flex;
align-items: center; // Vertically center all content
}
@mixin grid-child ($col-start, $col-end, $row-start, $row-end) {
import Vue from 'vue';
import posts from './components/posts.vue';
window.axios = require('axios');
window.Vue = Vue;
Vue.component('posts', posts);
const app = new Vue({
el: '#app',
@socheatsok78
socheatsok78 / README.md
Last active March 29, 2019 03:18
PWA with Laravel Mix, Webpack and Service Worker caching strategies
/* --------------------------------
Typography
-------------------------------- */
:root {
--font-primary: sans-serif;
--font-secondary: serif;
@ajay-ag
ajay-ag / Laravel And Alpine Pagination
Last active September 17, 2023 16:24
Laravel And Alpinej.js Pagination Component ,Alpine js
<div class="container-fluid">
<div class="row">
<!-- /.col-md-6 -->
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="row" id="laravelPagination" data-url="{{ route('country.page') }}" x-data="laravelPagination()"
x-init="init()">
<template x-for="item in country" :key="item.id">
<div class="card col-12 mb-3">
document.addEventListener('alpine:init', () => {
window.Alpine.data('autocompleter', ({
selectedResults,
max,
min,
ownerId,
url,
elName,
filterEls = [],
addUrl = "",