Skip to content

Instantly share code, notes, and snippets.

View GiuseppeMP's full-sized avatar
:copilot:
Making sure gas and oil don’t get lost on the way 🦖🦖

Giuseppe Matheus (Beppe) GiuseppeMP

:copilot:
Making sure gas and oil don’t get lost on the way 🦖🦖
View GitHub Profile
@GiuseppeMP
GiuseppeMP / gist:25b2a67c246c08e18542d0a8aee88c39
Created June 1, 2021 19:58
vscode settings Beppe 01/06/21
{
"terminal.integrated.fontFamily": "MesloLGS NF",
"editor.codeLensFontFamily": "Fira Code",
"editor.fontFamily": "Cascadia Code Light, Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"maven.terminal.useJavaHome": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration",
"files.exclude": {
"**/.classpath": true,
{
"terminal.integrated.fontFamily": "MesloLGS NF",
"editor.codeLensFontFamily": "Fira Code",
"editor.fontFamily": "Cascadia Code Light, Fira Code, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"maven.terminal.useJavaHome": true,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "choseToUpdateConfiguration",
"files.exclude": {
"**/.classpath": true,
@GiuseppeMP
GiuseppeMP / Hackerrank
Created May 23, 2021 02:28
Data Structures > Stacks > Poisonous Plants (Javascript)
'use strict';
const fs = require('fs');
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
'use strict';
import { WriteStream, createWriteStream } from "fs";
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString: string = '';
let inputLines: string[] = [];
let currentLine: number = 0;
@GiuseppeMP
GiuseppeMP / cachesingeton.cs
Created October 6, 2020 01:08 — forked from srkirkland/cachesingeton.cs
Singleton for creating a cache factory for Azure Caching. Creates the DataCacheFactory only once and stores it in CacheFactory.Instance. Can then get a desired DataCache by calling CacheFactory.Instance.GetCache("CacheName");
public static class CacheFactory
{
/// <summary>
/// This is a thread-safe, lazy singleton. See http://www.yoda.arachsys.com/csharp/singleton.html
/// for more details about its implementation.
/// </summary>
public static DataCacheFactory Instance
{
get { return Nested.CacheFactory; }
}
@GiuseppeMP
GiuseppeMP / semantic-commit-messages.md
Created September 28, 2020 19:00 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

import React, { PureComponent } from 'react';
import Radar from '@bit/recharts.recharts.radar';
import RadarChart from '@bit/recharts.recharts.radar-chart';
import PolarGrid from '@bit/recharts.recharts.polar-grid';
import PolarAngleAxis from '@bit/recharts.recharts.polar-angle-axis';
import PolarRadiusAxis from '@bit/recharts.recharts.polar-radius-axis';
const data = [
{
subject: 'Devops', A: 120, B: 110, fullMark: 150,
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
FROM adoptopenjdk/openjdk9-openj9:latest
# Change "latest" for "alpine" or to a specific version.
RUN mkdir /opt/shareclasses
RUN mkdir /opt/app
COPY app.jar /opt/app
CMD ["java", "-Xmx128m", "-XX:+IdleTuningGcOnIdle", "-Xtune:virtualized", "-Xscmx128m", "-Xscmaxaot100m", "-Xshareclasses:cacheDir=/opt/shareclasses", "-jar", "/opt/app/app.jar"]

"#" - comentário no .gitignore

adicionar repositório remoto à um local

git remote add origin

ver url de repositorio remoto

git remote -v