Skip to content

Instantly share code, notes, and snippets.

View Marhc's full-sized avatar
💡
Code First. Code Fast. Deliver ASAP.

Marcio Coutinho Marhc

💡
Code First. Code Fast. Deliver ASAP.
  • RJ, Brasil
View GitHub Profile
@Marhc
Marhc / gist:27d640d6c8d7a5bdc4adb8122d85a19f
Last active December 23, 2023 17:26 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

Guia de Referência Javascript

Comentários de código

Comentários acrescentados ao código são desconsiderados durante a execução.

// Comentários podem ser escritos no ínício de uma única linha
@Marhc
Marhc / Firestore_Database_API.md
Last active April 20, 2020 15:26
[Firebase Cloud Firestore] Three Ways to Access a Firebase Cloud Firestore Database #Firebase #Firestore #Database #NoSQL #Firebase_Functions #Firebase_SDK #Rest #API #Node.js #ORM #ODM #Typesaurus

Three Ways to Access a Firebase Cloud Firestore Database

Firebase Built-in Rest API

  • API Endpoint
https://firestore.googleapis.com/v1/projects/YOUR_PROJECT_ID/databases/(default)/documents/YOUR_COLLECTION_NAME/
@Marhc
Marhc / img_cdn.txt
Created April 16, 2020 17:23
[Free CDN Providers] Samples of Free CDN Providers to use in static sites #CDN #Github #Gitlab #jsdelivr.net #statically.io #githack.com #rawgit
https://msyshub.github.io/img/Fluffodome.jpg
*https://cdn.jsdelivr.net/gh/msyshub/img/Fluffodome.jpg
*https://rawcdn.githack.com/msyshub/img/master/Fluffodome.jpg
*https://cdn.statically.io/img/msyshub.github.io/img/Fluffodome.jpg
https://raw.githubusercontent.com/msyshub/img/master/Fluffodome.jpg
*https://cdn.jsdelivr.net/gh/msyshub/img/stars.jpg
*https://rawcdn.githack.com/msyshub/img/master/stars.jpg
*https://cdn.statically.io/img/msyshub.github.io/img/stars.jpg
@Marhc
Marhc / Hugo_VSCode_Setup.txt
Created April 16, 2020 17:08
[Hugo VSCode Setup] A list of VSCode Extensions to Hugo Static Site Generator #Hugo #VSCode #Setup #Extensions
# Configuração do VSCode para Hugo
## Extensões de Base
- .gitignore Generator
- Bracket Pair Colorizer
- PicGo
- NPM-Scripts
## Extensões para Hugo
@Marhc
Marhc / audit_mixin.py
Created November 21, 2019 22:40 — forked from techniq/audit_mixin.py
Useful SQLAlchemy Mixins
from datetime import datetime
from sqlalchemy import Column, Integer, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declared_attr
from flask_security import current_user
class AuditMixin(object):
created_at = Column(DateTime, default=datetime.now)
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now)
@Marhc
Marhc / setTilix.sh
Last active May 26, 2019 18:14
[Set Tilix as Default Terminal] This script configures Tilix as default terminal on Cinnamon and Gnome. #tilix #terminal #bash-scripts #scripts #dark-theme #themes #cinnamon #gnome
#!/bib/bash
# Dependencies: darkTilix.sh from https://gist.github.com/1d0fd74e97ca8c5570f6d4921336f1f9#file-darktilix-sh
gsettings set org.cinnamon.desktop.default-applications.terminal exec 'darkTilix.sh'
gsettings set org.gnome.desktop.default-applications.terminal exec 'darkTilix.sh'
@Marhc
Marhc / darkTilix.sh
Last active May 26, 2019 18:15
[Tilix Terminal with Dark Theme] How to force a dark theme just to Tilix Terminal in GTK3 when using a global light theme. #tilix #terminal #bash-scripts #scripts #dark-theme #themes #gtk3
#!/bin/bash
# First, select "Dark" option from Theme Variant setting on Tilix Global Preferences, "Appearance" section
GTK_THEME=Mint-Y-Yltra-Dark:dark tilix