Skip to content

Instantly share code, notes, and snippets.

View skydiver's full-sized avatar
👨‍💻
Always coding ...

Martin M. skydiver

👨‍💻
Always coding ...
View GitHub Profile
@skydiver
skydiver / .eslintrc.js
Last active February 4, 2022 04:09
Next.js + Prettier
module.exports = {
extends: ['next/core-web-vitals', 'plugin:prettier/recommended'
],
rules: {
'prettier/prettier': ['error', {}, { usePrettierrc: true }]
}
};
@skydiver
skydiver / app.scss
Created May 23, 2020 19:33
Laravel + Tailwind CSS + Hot Reload
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@skydiver
skydiver / read.js
Last active January 26, 2020 00:55
[node] save / read json
(async () => {
const jsonContent = await fs.readFileSync('file_to_read.json');
const object = JSON.parse(jsonContent);
console.log(object);
})();
@skydiver
skydiver / deploy.php
Created October 14, 2019 05:21 — forked from martincarlin87/deploy.php
Deployer Laravel 5
<?php
namespace Deployer;
require 'recipe/laravel.php';
$repo_url = '';
$branch = 'master';
$server_url = '';
$user = '';
@skydiver
skydiver / helpers.js
Created September 18, 2019 21:59
My JavaScript helpers
const _get = (obj, path, defaultValue = null) =>
String.prototype.split
.call(path, /[,[\].]+?/)
.filter(Boolean)
.reduce(
(a, c) => (Object.hasOwnProperty.call(a, c) ? a[c] : defaultValue),
obj
);
module.exports = { _get };
@skydiver
skydiver / vue-mq.js
Created June 2, 2019 19:36
Vue MQ (MediaQuery) + Nuxt.js
import Vue from 'vue';
import VueMq from 'vue-mq';
Vue.use(VueMq, {
breakpoints: {
xs: 576,
sm: 768,
md: 992,
lg: 1200,
xl: Infinity
@skydiver
skydiver / .editorconfig
Last active January 21, 2020 02:53
WesBos eslint + personal
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true
@skydiver
skydiver / settings.json
Last active April 23, 2019 15:42
VSCode config for Vue projects
{
"eslint.validate": [
"javascript",
{ "language": "vue", "autoFix": true }
],
"eslint.autoFixOnSave": true
}
@skydiver
skydiver / .editorconfig
Last active March 6, 2019 01:11
My VSCode project config
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true

Keybase proof

I hereby claim:

  • I am skydiver on github.
  • I am skydiver (https://keybase.io/skydiver) on keybase.
  • I have a public key whose fingerprint is 3803 CC4E 7A6E 5F28 4C85 65AB 15B5 F00A F32D 4514

To claim this, I am signing this object: