Skip to content

Instantly share code, notes, and snippets.

View robertsanseries's full-sized avatar
👨‍💻
contributing eventually

Robert San robertsanseries

👨‍💻
contributing eventually
View GitHub Profile
@robertsanseries
robertsanseries / git-commands-pt-br.md
Last active September 19, 2022 00:42
GIT - Guia dos comandos mais usados

h1. Dicas GIT

Essa página tem o objetivo de reunir diversas dicas para usar o GIT.

h2. Configurar GIT - Forma Global, ou seja, qualquer projeto que use o git terá as configurações abaixo

# cadastra nome do usuario
git config --global user.name nome 
@robertsanseries
robertsanseries / GtkProgressbar.css
Last active July 20, 2020 23:42
Changing the bar colour of a Gtk.ProgressBar
/*
* Operational System: elementary OS
* Programming Language: Vala
* Version Gtk: 3.0
* ----
* var progress = new Gtk.ProgressBar ();
* progress.get_style_context ().add_class ("GtkProgress");
*/
@define-color progress_bg_color #37C8AB;
@robertsanseries
robertsanseries / webpack.mix.js
Created April 30, 2018 19:13
Usando o Fontawesome 5 no Laravel 5.5 via NPM
mix.js('resources/assets/js/app.js', 'public/js')
.js('resources/assets/js/font-awesome.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
@robertsanseries
robertsanseries / font-awesome.js
Created April 30, 2018 19:11
Usando o Fontawesome 5 no Laravel 5.5 via NPM
/**
* Font Awesome 5 - Set of icons and most popular web tools.
*/
import fontawesome from '@fortawesome/fontawesome';
import solid from '@fortawesome/fontawesome-free-solid';
import regular from '@fortawesome/fontawesome-free-regular';
import brands from '@fortawesome/fontawesome-free-brands';
fontawesome.library.add(solid);
fontawesome.library.add(regular);
@robertsanseries
robertsanseries / font-awesome.bash
Created April 30, 2018 19:01
Usando o Fontawesome 5 no Laravel 5.5 via NPM
npm install && npm i @fortawesome/fontawesome @fortawesome/fontawesome-free-solid @fortawesome/fontawesome-free-regular @fortawesome/fontawesome-free-brands --save-dev
@robertsanseries
robertsanseries / EntryNumber.vala
Last active October 16, 2017 00:39
valac --pkg gtk+-3.0 EntryNumber.vala
using Gtk;
using Gdk;
public static int main (string[] args) {
Gtk.init (ref args);
Application app = new Application ();
app.show_all ();
Gtk.main ();
return 0;
@robertsanseries
robertsanseries / ExemploEntryCompletion.vala
Last active July 10, 2017 00:03
Example of Gtk.EntryCompletion with vala
public class Application : Gtk.Window {
public Application () {
this.title = "My Gtk.EntryCompletion";
this.window_position = Gtk.WindowPosition.CENTER;
this.destroy.connect (Gtk.main_quit);
this.set_default_size (500, 300);
Gtk.Entry entry = new Gtk.Entry ();
this.add (entry);
@robertsanseries
robertsanseries / ExemplePopover.vala
Last active January 6, 2021 17:55
Example of Gtk.Popover with vala
public class Application : Gtk.Window {
public GLib.Menu menu_model { get; set; }
public Application () {
this.set_default_size (700, 600);
var header_bar = new Gtk.HeaderBar ();
header_bar.set_title ("teste");
header_bar.show_close_button = true;