Skip to content

Instantly share code, notes, and snippets.

View nshCore's full-sized avatar
:octocat:

0x1A4 nshCore

:octocat:
View GitHub Profile
@nshCore
nshCore / auth.php
Created September 15, 2016 14:34
auth.php for lumen/doctrine/jwt
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
@nshCore
nshCore / common.md
Last active October 4, 2016 18:51
Common html snippets

a

<a href="$1">$2</a>

comm

User registration snippet

        <div class="row">
          <div class="12 columns">
            <label for="EmailInput">Email<span class="required=">*</span></label>
            <input class="u-full-width" type="email" placeholder="[email protected]" id="EmailInput">
            <label for="FirstNameInput">First Name<span class="required=">*</span></label>
            <input type="text" class="u-full-width" placeholder="First Name" id="FirstNameInput">
            <label for="LastNameInput">Last Name<span class="required=">*</span></label>
            <input type="text" class="u-full-width" placeholder="Last Name" id="LastNameInput">
<!doctype html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="">
<![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8" lang="">
<![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9" lang="">
<![endif]-->

Location FieldSet

<fieldset id="LocationDetails">
  <legend>Business Location Details</legend>
  <input type="text" id="LongitudeInput" hidden>
  <input type="text" id="LatitudeInput" hidden>
 </fieldset>
{
"name": "@websanova/vue-auth",
"description": "Vue.js token based authentication plugin. Supports simple token based and Json Web Tokens (JWT) authentication.",
"keywords": ["vue", "vue.js", "jwt", "auth", "authentication", "plugin", "json", "web", "token"],
"author": {
"name": "Websanova",
"url": "http://websanova.com",
import App from './components/App.vue';
// Router
Vue.router = new VueRouter({
hashbang: false,
history: true,
linkActiveClass: 'active',
mode: 'html5'
});
@nshCore
nshCore / ajax.js
Last active October 21, 2016 00:40
import helpers from './helpers.js';
/**
* Ajax directive to easily submit vue forms via ajax
*
* @author James Kirkby <[email protected]>
*/
export default {
params: ['complete'],
@nshCore
nshCore / .htaccess
Created December 20, 2016 09:01
.htaccess to remove .html and .php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteRule ^([^/]+)/$ $1.html
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
@nshCore
nshCore / schema-org-structured-data-markup-using-microdata.html
Created March 2, 2017 09:21 — forked from milanaryal/schema-org-structured-data-markup-using-microdata.html
An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">