Skip to content

Instantly share code, notes, and snippets.

View Epistol's full-sized avatar

Epistol Epistol

View GitHub Profile
This file has been truncated, but you can view the full file.
{
"nodes": [
{
"id": 1,
"callFrame": {
"functionName": "(root)",
"scriptId": "0",
"url": "",
"lineNumber": -1,
"columnNumber": -1
@Epistol
Epistol / ode.json
Created December 7, 2019 13:11
Settings vscode
test
require('svg4everybody')({polyfill: true});
require('./bootstrap');
// VUE
import Vue from 'vue';
import App from './pages/App';
import Router from './router';
import Store from './store';
import Vue from 'vue';
import Router from 'vue-router';
import Login from '@/pages/login/Login';
import Home from '@/pages/home/Home';
import Users from '@/router/user.js';
Vue.use(Router);
const baseRoutes = [
{
path: '/login',
const mix = require('laravel-mix');
require('laravel-mix-tailwind');
const nesting = require('postcss-nesting');
require('laravel-mix-svg-sprite');
require('laravel-mix-alias');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
vendor/bin/phpunit
function removeElementFromArray(array, element){
var index = array.indexOf(element);
if(index !== -1 ){
array.splice(index, 1);
}
return array;
}
@Epistol
Epistol / GetOnClick.js
Created November 2, 2018 10:15
Fonction un peu nulle pour recuperer la value du onclick button
function getOnClickValue(data){
var stringObject = new String(data);
debut_para = stringObject.indexOf("(");
end_para = stringObject.indexOf(")");
// For the (' and ')
var strings = stringObject.slice(debut_para+2, end_para-1);
return strings;
}
// EXEMPLE :
@Epistol
Epistol / green.html
Last active March 11, 2019 08:36
[Assert css on not empty element description] #css #design
<head>
<style>
.test:not(:empty) + p {
color:green;
}
</style>
</head>
<body>
<span class="test"></span><p>Trucsdfsdf</p>
<span class="test">xcvxcvxcvxcv</span><p>Truc</p>
$('.test').each(function() {
if ( $.trim( $(this).text() ).length != 0 )
$(this).css('color', 'green');
}
});