Skip to content

Instantly share code, notes, and snippets.

@igortrinidad
Created September 12, 2019 17:18
Show Gist options
  • Save igortrinidad/7f3365f7da64934efe1ec5504a059019 to your computer and use it in GitHub Desktop.
Save igortrinidad/7f3365f7da64934efe1ec5504a059019 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-12T17:18:04.995Z","extensionVersion":"v3.4.2"}
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.2"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "17d45560-0c70-4fb6-b157-9ecc85d8e5a0",
"publisherId": "inu1255.easy-snippet",
"publisherDisplayName": "inu1255"
},
"name": "easy-snippet",
"publisher": "inu1255",
"version": "0.1.6"
},
{
"metadata": {
"id": "198a707e-28af-4e84-8610-6e2f628dd12d",
"publisherId": "redhat.java",
"publisherDisplayName": "redhat"
},
"name": "java",
"publisher": "redhat",
"version": "0.48.0"
},
{
"metadata": {
"id": "3b58a227-618a-4b57-a06b-6984a2a8d1ba",
"publisherId": "onecentlin.laravel-blade",
"publisherDisplayName": "onecentlin"
},
"name": "laravel-blade",
"publisher": "onecentlin",
"version": "1.20.0"
},
{
"metadata": {
"id": "e52bce95-a629-455f-8626-e7301b9e372a",
"publisherId": "robinbentley.sass-indented",
"publisherDisplayName": "robinbentley"
},
"name": "sass-indented",
"publisher": "robinbentley",
"version": "1.5.1"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.22.2"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "9.3.0"
},
{
"metadata": {
"id": "61fcd0cf-64d7-4836-8d6b-d55f4fb83281",
"publisherId": "vscjava.vscode-java-debug",
"publisherDisplayName": "vscjava"
},
"name": "vscode-java-debug",
"publisher": "vscjava",
"version": "0.21.0"
},
{
"metadata": {
"id": "7865e561-1c83-410e-9b99-aabada597a7e",
"publisherId": "vscjava.vscode-java-dependency",
"publisherDisplayName": "vscjava"
},
"name": "vscode-java-dependency",
"publisher": "vscjava",
"version": "0.5.1"
},
{
"metadata": {
"id": "96f11e1f-1a46-4592-b084-f025b2c2a81f",
"publisherId": "vscjava.vscode-java-pack",
"publisherDisplayName": "vscjava"
},
"name": "vscode-java-pack",
"publisher": "vscjava",
"version": "0.8.0"
},
{
"metadata": {
"id": "67c06b0d-1891-42ca-b2a8-113e79bff069",
"publisherId": "vscjava.vscode-java-test",
"publisherDisplayName": "vscjava"
},
"name": "vscode-java-test",
"publisher": "vscjava",
"version": "0.19.0"
},
{
"metadata": {
"id": "b0f06c6b-24fb-4d7b-bd79-bc5e2fa17312",
"publisherId": "vscjava.vscode-maven",
"publisherDisplayName": "vscjava"
},
"name": "vscode-maven",
"publisher": "vscjava",
"version": "0.18.2"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.1.9"
},
{
"metadata": {
"id": "783e4752-d9cf-483d-b3bf-de5fa4b325c7",
"publisherId": "vaniship.vue-ls-snippets",
"publisherDisplayName": "vaniship"
},
"name": "vue-ls-snippets",
"publisher": "vaniship",
"version": "0.0.5"
}
]
{
"editor.minimap.enabled": false,
"workbench.colorTheme": "Monokai",
"color-highlight.markerType": "dot-after",
"editor.scrollBeyondLastLine": false,
"window.newWindowDimensions": "inherit",
"diffEditor.renderSideBySide": false,
"search.location": "panel",
"window.zoomLevel": 0,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"java.errors.incompleteClasspath.severity": "ignore",
"editor.snippetSuggestions": "top",
"explorer.confirmDelete": false
}
{
"Axios post": {
"scope": "",
"prefix": "axios",
"body": [
"let that = this",
"axios.post('/events/increment_shares', {$1})",
".then((response) => {",
"$2",
"}).catch((error) => {",
"})"
],
"description": "Axios post request"
}
}
{
"Clean div": {
"scope": "",
"prefix": "div",
"body": [
"<div class=\"$1\">",
"</div>",
],
"description": "Log output to console"
}
}
{
"modalinline": {
"prefix": "modalinline",
"description": "",
"body": [
"<div class=\"fixed pin z-50 overflow-y-auto bg-smoke-light flex p-4 max-h-full\" v-if=\"modalShow\">",
" <div class=\"relative bg-white w-full max-w-md m-auto flex-col flex\" style=\"margin-top: 100px;\">",
"",
" <span class=\"w-full bg-blue h-2\"></span>",
"",
" <div class=\"p-6\">",
" <span class=\"absolute pin-t pin-r p-4 cursor-pointer\">",
" <feather @click=\"modalShow = false\" class=\"fill-current\" type=\"x\" size=\"44\"></feather>",
" </span>",
"",
" <h2 class=\"text-center -mt-3\">{{title}}</h2>",
"",
" <hr class=\"w-full border-t-1 border-grey mb-3\"/>",
" ",
" <div class=\"\">",
" <button @click=\"shareEvent('copy-link')\" class=\"mt-3 text-center block w-full border-2 border-blue-light text-black hover:bg-blue outline-none active:bg-blue-dark hover:text-white font-medium cursor-pointer p-4\">",
" BOTAO",
" </button>",
" </div>",
"",
" </div>",
"",
"",
" </div>",
"</div>"
]
}
}
{
"Print to console Snippet": {
"scope": "javascript,typescript",
"prefix": "log",
"body": [
"console.log('$1');"
],
"description": "Log output to console"
}
}
{
"function": {
"prefix": "function",
"description": "",
"body": [
"/**",
"* $1",
"*/",
"public function $1(Request \\$request)",
"{",
"",
"}"
]
},
"route": {
"prefix": "route",
"description": "",
"body": [
"/**",
"* $1",
"*/",
"Route::group(['prefix' => 'merchant_balance', 'as' => 'merchant_balance.'], function () {",
" Route::get('/get', ['uses' => 'Wirecard\\MerchantBalanceController@get']);",
"});"
]
},
"controller": {
"prefix": "controller",
"description": "",
"body": [
"<?php",
"",
"namespace App\\Http\\Controllers\\Wirecard;",
"",
"use Illuminate\\Http\\Request;",
"use App\\Http\\Controllers\\Controller;",
"",
"use Moip\\Moip;",
"use Moip\\Auth\\BasicAuth;",
"use Moip\\Auth\\OAuth;",
"",
"",
"class MerchantController extends Controller",
"{",
"",
" public function __construct()",
" {",
" $this->wirecard_token = env('WIRECARD_TOKEN');",
" $this->wirecard_key = env('WIRECARD_KEY');",
" $this->wirecard_app_access_token = env('WIRECARD_APP_ACCESS_TOKEN');",
" }",
"",
"",
"",
"}"
]
},
"blade": {
"prefix": "blade",
"description": "",
"body": [
"@extends('social.layout.index')",
"",
"@section('title', 'Lista de presença ' . $social_event->name)",
"",
"@section('show-header', true)",
"",
"@section('content-full')",
"",
"\t<div class=\"p-4 overflow-auto\" id=\"main-content\">",
"",
"\t\t<div class=\"max-w-xl m-auto flex flex-wrap\">",
"\t\t\t<social-event-invite-list></social-event-invite-list>",
"\t\t</div>",
"\t\t\t",
"\t</div>",
"\t",
"@endsection"
]
}
}
{
"vue component": {
"prefix": "vuecomponent",
"body": [
"<template>",
"",
" <div class=\"w-full\">",
"",
" <!-- HEADER -->",
" <div class=\"w-full bg-grey-light text-center p-5 border-b-4 border-black\">",
" <feather class=\"-mb-1\" type=\"settings\" size=\"34\" height=\"34\"></feather>",
" <h2>Titulo</h2>",
" </div>",
"",
" <div class=\"w-full bg-white p-3\">",
"",
" </div>",
" </div>",
"",
"</template>",
"",
"<script>",
"",
" import User from '@/models/User'",
" ",
" export default {",
" name: 'component-name',",
" data(){",
" return {",
"",
" }",
" },",
" mounted() {",
" console.log('Component mounted.')",
" },",
" methods: {",
"",
" }",
" }",
"</script>",
""
],
"description": "asd"
}
}
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Print to console": {
"prefix": "resptable",
"body": [
"<div class=\"Rtable Rtable--4cols Rtable--collapse Rtable-cell-header\">",
" <div class=\"Rtable-cell Rtable-cell--head\"><h3>Nome</h3></div>",
" <div class=\"Rtable-cell Rtable-cell--head\"><h3>Qtd disponível</h3></div>",
" <div class=\"Rtable-cell Rtable-cell--head\"><h3>Qtd original</h3></div>",
" <div class=\"Rtable-cell Rtable-cell--head\"><h3>Ativo</h3></div>",
"</div>",
"<div class=\"Rtable Rtable--4cols Rtable--collapse\" v-for=\"limited_invite in limited_invites\" :key=\"limited_invite.id\">",
" <div class=\"Rtable-cell\">",
" <h3>{{limited_invite.name}}</h3>",
" <span class=\"Rtable-cell-helper text-xs\">Nome</span>",
" </div>",
" <div class=\"Rtable-cell\">",
" {{limited_invite.invite_type.name}}",
" <span class=\"Rtable-cell-helper text-xs\">Nome</span>",
" </div>",
" <div class=\"Rtable-cell\">",
" {{limited_invite.quantity}}",
" <span class=\"Rtable-cell-helper text-xs\">Nome</span>",
" </div>",
" <div class=\"Rtable-cell Rtable-cell--foot\">",
" {{limited_invite.original_quantity}}",
" <span class=\"Rtable-cell-helper text-xs\">Nome</span>",
" </div>",
"</div>"
],
"description": "responsivo table based in rows"
}
}
{
"New row": {
"scope": "",
"prefix": "row",
"body": [
"<div class=\"row\">",
" <div class=\"col-$1\">",
" </div>",
"</div>"
],
"description": "Create new row of divs"
}
}
{
"Print to console": {
"prefix": "tablet",
"body": [
"<table class=\"table table-bordered table-hover table-striped\">",
" <thead>",
" <tr>",
" <td>$1</td>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td></td>",
" </tr>",
" </tbody>",
"</table>"
],
"description": "Full table html"
}
}
{
// Place your snippets for vue-html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
"vuecomponent": {
"prefix": "vuecomponent",
"description": "",
"body": [
"<template>",
"",
" <div class=\"w-full\">",
"",
" <!-- HEADER -->",
" <div class=\"w-full bg-grey-light text-center p-5 border-b-4 border-black\">",
" <feather class=\"-mb-1\" type=\"settings\" size=\"34\" height=\"34\"></feather>",
" <h2>Titulo</h2>",
" </div>",
"",
" <div class=\"w-full bg-white p-3\">",
"",
" </div>",
" </div>",
"",
"</template>",
"",
"<script>",
"",
" import User from '@/models/User'",
" ",
" export default {",
" name: 'component-name',",
" data(){",
" return {",
"",
" }",
" },",
" mounted() {",
" console.log('Component mounted.')",
" },",
" methods: {",
"",
" }",
" }",
"</script>",
""
]
},
"modalcomponent": {
"prefix": "modalcomponent",
"description": "",
"body": [
"<template>",
"",
" <div>",
" <!-- MODAL SHARE EVENT -->",
" <div class=\"fixed pin z-50 overflow-y-auto bg-smoke-light flex p-4 max-h-full\" v-if=\"modalShow\">",
" <div class=\"relative bg-white w-full max-w-md m-auto flex-col flex\" style=\"margin-top: 100px;\">",
"",
" <span class=\"w-full bg-blue h-2\"></span>",
"",
" <div class=\"p-6\">",
" <span class=\"absolute pin-t pin-r p-4 cursor-pointer\">",
" <feather @click=\"modalShow = false\" class=\"fill-current\" type=\"x\" size=\"44\"></feather>",
" </span>",
"",
" <h2 class=\"text-center -mt-3\">{{title}}</h2>",
"",
" <hr class=\"w-full border-t-1 border-grey mb-3\"/>",
" ",
" <div class=\"\">",
" <button @click=\"shareEvent('copy-link')\" class=\"mt-3 text-center block w-full border-2 border-blue-light text-black hover:bg-blue outline-none active:bg-blue-dark hover:text-white font-medium cursor-pointer p-4\">",
" BOTAO",
" </button>",
" </div>",
"",
" </div>",
"",
"",
" </div>",
" </div>",
" </div>",
"",
"</template>",
"",
"<script>",
"",
" import User from '@/models/User'",
"",
" export default {",
" name: 'modal-name',",
" data(){",
" return {",
" title: 'Modal title',",
" }",
" },",
" mounted() {",
"",
" this.\\$nextTick( () => {",
" window.\\$vueInstance.\\$on('event-for-modal-if-needed', (payload) => {",
" this.modalShow = true;",
" })",
" })",
"",
" },",
"",
" beforeDestroy(){",
" window.\\$vueInstance.\\$off('event-for-modal-if-needed');",
" },",
"",
" methods: {",
"",
" }",
" }",
"</script>"
]
},
"svgcomponent": {
"prefix": "svgcomponent",
"description": "",
"body": [
"<template>",
"",
" <div class=\"w-full text-center\" @mouseover=\"isHover = true\" @mouseleave=\"isHover = false\">",
"",
" </div>",
"",
"</template>",
"",
"<script>",
"",
" export default {",
" name: 'jeans',",
" data(){",
" return {",
" isHover: false,",
" }",
" },",
" }",
"</script>",
""
]
},
"vuecomponentwithpagination": {
"prefix": "vuecomponentwithpagination",
"description": "",
"body": [
"<template>",
"",
" <div class=\"w-full\">",
"",
" <!-- HEADER -->",
" <div class=\"w-full bg-grey-light text-center p-5 border-b-4 border-black\">",
" <feather class=\"-mb-1\" type=\"gift\" size=\"34\" height=\"34\"></feather>",
" <h2>Presentes</h2>",
" </div>",
"",
" <div class=\"w-full bg-white p-3\">",
" {{gifts}}",
" </div>",
"",
" <div class=\"\" v-if=\"gifts.length\">",
" <div class=\"w-full flex flex-wrap justify-center z-20\" >",
" <button @click=\"navigate('prev')\" :disabled=\"!pagination.prev_page_url\" class=\"flex-no-shrink outline-none bg-blue text-white py-2 px-3 mr-1\">",
" Anterior",
" </button>",
"",
" <button @click=\"navigate('next')\" :disabled=\"!pagination.next_page_url\" class=\"flex-no-shrink outline-none bg-blue text-white py-2 px-3 ml-1\">",
" Próxima",
" </button>",
" </div>",
" <p class=\"text-sm text-center\">Localizados ({{pagination.total}})</p>",
" </div>",
" ",
" </div>",
"",
"</template>",
"",
"<script>",
"",
" import User from '@/models/User'",
" import Pagination from '@/models/Pagination'",
" import {showLoader} from '@/util/misc-functions'",
" ",
" export default {",
" name: 'gift-list',",
" data(){",
" return {",
" gifts: [],",
" pagination: new Pagination(),",
" isGiven: false,",
" }",
" },",
" mounted() {",
" this.getGifts()",
" },",
" methods: {",
" getGifts(){",
" let that = this",
" that.gifts = []",
" showLoader(true)",
" axios.post('/social/presentes/get', {is_given: this.isGiven})",
" .then((response) => {",
" that.gifts = response.data.gifts;",
" that.pagination = response.data.pagination",
" showLoader(false)",
" }).catch((error) => {",
" showLoader(false)",
" })",
" },",
" navigate(direction){",
" if(direction == 'next'){",
" this.pagination.current_page++",
" } else {",
" this.pagination.current_page--",
" }",
" this.getGifts();",
" },",
" }",
" }",
"</script>",
""
]
},
"axioswithloader": {
"prefix": "axioswithloader",
"description": "",
"body": [
"let that = this",
"showLoader(true)",
"axios.post('/events/increment_shares', {})",
".then((response) => {",
"",
" showLoader(false)",
"}).catch((error) => {",
" showLoader(false)",
"})"
]
},
"modalinline": {
"prefix": "modalinline",
"description": "",
"body": [
"<div class=\"fixed pin z-50 overflow-y-auto bg-smoke-light flex p-4 max-h-full\" v-if=\"modalShow\">",
" <div class=\"relative bg-white w-full max-w-md m-auto flex-col flex\" style=\"margin-top: 100px;\">",
"",
" <span class=\"w-full bg-blue h-2\"></span>",
"",
" <div class=\"p-6\">",
" <span class=\"absolute pin-t pin-r p-4 cursor-pointer\">",
" <feather @click=\"modalShow = false\" class=\"fill-current\" type=\"x\" size=\"44\"></feather>",
" </span>",
"",
" <h2 class=\"text-center -mt-3\">{{title}}</h2>",
"",
" <hr class=\"w-full border-t-1 border-grey mb-3\"/>",
" ",
" <div class=\"\">",
" <button @click=\"shareEvent('copy-link')\" class=\"mt-3 text-center block w-full border-2 border-blue-light text-black hover:bg-blue outline-none active:bg-blue-dark hover:text-white font-medium cursor-pointer p-4\">",
" BOTAO",
" </button>",
" </div>",
"",
" </div>",
"",
"",
" </div>",
"</div>"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment