Skip to content

Instantly share code, notes, and snippets.

View igorjacauna's full-sized avatar
🏠
Working from home

Ígor Jacaúna igorjacauna

🏠
Working from home
View GitHub Profile
@igorjacauna
igorjacauna / Dockerfile.base
Created January 12, 2021 17:14
NuxtJS Docker infra
# This file is used to build base image for NuxtJS application
# It will be pushed for example to my-registry.com/nuxt:base-1.0.0
FROM node:12.18.2-alpine
ENV APP_PATH /usr/src/front
WORKDIR $APP_PATH
COPY package.json package-lock.json $APP_PATH/
@igorjacauna
igorjacauna / map-search.vue
Created December 22, 2020 19:50
map-search.vue
<template>
<l-map
ref="map"
:zoom="16"
:center="userCoordinates"
class="map-wrap"
@update:bounds="boundsChange"
>
<l-tile-layer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png" />
<l-marker
@igorjacauna
igorjacauna / DialogLayout.vue
Created December 9, 2020 18:22
Usando Vuedl para exibir dialogs baseado nos componentes do Vuetify
<template>
<v-dialog
ref="vdialog"
v-model="isActive"
eager
content-class="vuedl-layout"
:fullscreen="fullscreen"
:max-width="getWidth"
:persistent="persistent || loading"
:scrollable="scrollable"
@igorjacauna
igorjacauna / Windows Defender Exclusions for Developer.ps1
Created August 12, 2020 13:38 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
@igorjacauna
igorjacauna / cloudSettings
Last active June 28, 2018 13:22
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-28T13:22:37.285Z","extensionVersion":"v2.9.2"}
@igorjacauna
igorjacauna / life.lisp
Created November 7, 2016 14:49 — forked from rik0/life.lisp
Game of Life in Lisp
(proclaim '(optimize (speed 3) (space 0) (debug 0)))
(defparameter *width* 80)
(defparameter *height* 23)
(defparameter *length* (* *width* *height*))
(defun neighbours (pos)
(mapcar (lambda (x) (mod x *length*))
(delete pos
(mapcan (lambda (pos)
@igorjacauna
igorjacauna / arvore.cpp
Last active September 9, 2016 01:45
arvore_binaria
#include "arvore.h"
Arvore::Arvore()
{
raiz = 0;
}
void Arvore::inserirNo(no** arvore, int valor)
{
if((*arvore) != NULL)
@igorjacauna
igorjacauna / serializeFormToJSON.js
Created September 23, 2015 21:44
Serialize form array to JSON
(function($) {
$.fn.serializeFormToJSON = function() {
var j = {};
var a = this.serializeArray();
$.each(a, function() {
if (j[this.name]) {
if (!j[this.name].push) {
j[this.name] = [j[this.name]];
}
@igorjacauna
igorjacauna / GetWindowsVersion.cpp
Last active August 29, 2015 14:19
Get Windows version before SDK for Windows 8.1
bool GetWindowsVersion(DWORD& major, DWORD& minor)
{
LPBYTE pinfoRawData;
if (NERR_Success == NetWkstaGetInfo(NULL, 100, &pinfoRawData))
{
WKSTA_INFO_100 * pworkstationInfo = (WKSTA_INFO_100 *)pinfoRawData;
major = pworkstationInfo->wki100_ver_major;
minor = pworkstationInfo->wki100_ver_minor;
::NetApiBufferFree(pinfoRawData);
return true;