Skip to content

Instantly share code, notes, and snippets.

View syntaxlexx's full-sized avatar
🎯
You have to be run by ideas, not by hierarchy!

/SyntaxLexx syntaxlexx

🎯
You have to be run by ideas, not by hierarchy!
View GitHub Profile
@syntaxlexx
syntaxlexx / index.html
Last active December 29, 2018 10:41
Stars Animation - credits to https://codemagic.io/
<div class="main-page">
<div class="stars"><svg class="star" viewBox="0 0 26 26" x="0px" y="0px"><path d="M11.2,23.1l-2.6-5.3c-0.1-0.2-0.3-0.4-0.5-0.5l-5.3-2.6c-1.5-0.7-1.5-2.8,0-3.5l5.3-2.6 c0.2-0.1,0.4-0.3,0.5-0.5l2.6-5.3c0.7-1.5,2.8-1.5,3.5,0l2.6,5.3c0.1,0.2,0.3,0.4,0.5,0.5l5.3,2.6c1.5,0.7,1.5,2.8,0,3.5l-5.3,2.6 c-0.2,0.1-0.4,0.3-0.5,0.5l-2.6,5.3C14,24.5,12,24.5,11.2,23.1z"></path></svg><svg class="star" viewBox="0 0 26 26" x="0px" y="0px"><path d="M11.2,23.1l-2.6-5.3c-0.1-0.2-0.3-0.4-0.5-0.5l-5.3-2.6c-1.5-0.7-1.5-2.8,0-3.5l5.3-2.6 c0.2-0.1,0.4-0.3,0.5-0.5l2.6-5.3c0.7-1.5,2.8-1.5,3.5,0l2.6,5.3c0.1,0.2,0.3,0.4,0.5,0.5l5.3,2.6c1.5,0.7,1.5,2.8,0,3.5l-5.3,2.6 c-0.2,0.1-0.4,0.3-0.5,0.5l-2.6,5.3C14,24.5,12,24.5,11.2,23.1z"></path></svg><svg class="star" viewBox="0 0 26 26" x="0px" y="0px"><path d="M11.2,23.1l-2.6-5.3c-0.1-0.2-0.3-0.4-0.5-0.5l-5.3-2.6c-1.5-0.7-1.5-2.8,0-3.5l5.3-2.6 c0.2-0.1,0.4-0.3,0.5-0.5l2.6-5.3c0.7-1.5,2.8-1.5,3.5,0l2.6,5.3c0.1,0.2,0.3,0.4,0.5,0.5l5.3,2.6c1.5,0.7,1.5,2.8,0,3.5l-5.3,2.6 c-0
@syntaxlexx
syntaxlexx / bootstrap.js
Created October 28, 2018 18:54
Laravel/Vue.js - Guard against user inactivity [token expiry] by automatically refreshing the page after an hour.
window._ = require('lodash');
window.Popper = require('popper.js').default;
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
@syntaxlexx
syntaxlexx / StoreGenerator.js
Created October 27, 2018 16:34
StoreGenerator [Vuex]
import { paths } from './paths';
import { visa } from '../libs/Customs';
import {StoreActionUrl} from "./StoreActionUrl";
import { apiEndpoint } from '@app/libs/Util';
export default class StoreGenerator
{
constructor()
{
this.state = {};