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 / 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 = {};
@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 / 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 / nginx.conf
Last active January 20, 2019 13:06 — forked from hjr3/nginx.conf
nginx phpfpm + CORS configuration
upstream phpfpm {
server 127.0.0.1:9000;
}
server {
listen 80;
server_name _;
root /var/www/html;
index index.php;
@syntaxlexx
syntaxlexx / ide.general.xml
Last active April 24, 2019 11:09
PHPStorm preferences
<application>
<component name="GeneralSettings">
<option name="showTipsOnStartup" value="false" />
</component>
<component name="Registry">
<entry key="ide.balloon.shadow.size" value="0" />
<entry key="mac.editor.thumb.default.alpha.base" value="0" />
<entry key="mac.editor.thumb.default.alpha.delta" value="102" />
<entry key="mac.editor.thumb.darcula.alpha.base" value="0" />
<entry key="mac.editor.thumb.darcula.alpha.delta" value="102" />
"Lexx PHP API Response": {
"prefix": "lexxPHPAPIResponse",
"scope": "php",
"body": [
"$response = $this->repo->$1();",
" ",
"if($response instanceof RedirectResponse)",
" return $response;",
"",
"if($response instanceof JsonResource || $response instanceof Resource)",
@syntaxlexx
syntaxlexx / nginx-cors-socket.conf
Created August 12, 2019 12:46
NGINX configuration
server {
server_name site.com www.site.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
root /var/www/site.com/html/public;
index index.php index.html;
@syntaxlexx
syntaxlexx / signature-pad.blade.php
Last active August 22, 2020 10:26
signotec Signature HID Pad Integration with Laravel/Vue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Signature Pad .:: {{ env('APP_NAME') }}</title>
<meta id="token" name="csrf-token" value="{{ csrf_token() }}" content="{{ csrf_token() }}" />
@syntaxlexx
syntaxlexx / hyper.js
Last active July 17, 2022 13:14
Hyper.js Preferences (Config file) in WSL Ubuntu-enabled Windows 10 OS
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@syntaxlexx
syntaxlexx / Home.vue
Created May 24, 2021 12:00
Vue 3 Composition API with Ionic 5 (vue) - AceLords Skeleton
<template>
<base-layout :page-title="appName" :hide-back-button="true">
<template #drawer>
<!-- <common-drawer></common-drawer> -->
</template>
<template #actions-start>
<ion-menu-button menu="main-menu"></ion-menu-button>
</template>
<template #actions-end>
<ion-button router-link="/memories/add">