Skip to content

Instantly share code, notes, and snippets.

View vhbsouza's full-sized avatar

Victor Hugo Bernardes de Souza vhbsouza

View GitHub Profile
@vhbsouza
vhbsouza / .gitattributes
Last active March 10, 2021 03:14
Sample Git Attributes File
# Encrypt the repository
# Remove/modify this line if the repository is meant to be open-source
*.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.js text
*.htm text
@vhbsouza
vhbsouza / BackgroundGeolocation-Ionic2.js
Last active October 9, 2017 16:14 — forked from christocracy/BackgroundGeolocation-Ionic2.js
Simple Cordova Background Geolocation Implementation for Ionic 2
/**
* How to implement cordova-background-geolocation with Ionic 2
* https://github.com/transistorsoft/cordova-background-geolocation-lt
* Chris Scott, Transistor Software <chris@transistorsoft.com>
*/
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
Author unknown.
1.) Algorithm Complexity: You need to know Big-O. If you struggle with
basic big-O complexity analysis, then you are almost guaranteed not to
get hired.
For more information on Algorithms you can visit:
http://www.topcoder.com/tc?module=Static&d1=tutorials&d2=alg_index
2.) Coding: You should know at least one programming language really
well, and it should preferably be C++ or Java. C# is OK too, since
@vhbsouza
vhbsouza / gh-pages-deploy.md
Created March 26, 2017 21:45 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@vhbsouza
vhbsouza / arch-installer.md
Created March 14, 2017 17:34
Dual Boot - Windows 10 + Arch Linux + UEFI (systemd-boot)

Arch Linux - Instalação Dual Boot (EM CONSTRUÇÃO)

Requisitos:

  • Windows 10 - Fast Boot desabilitado
  • BIOS - Secure Boot desabilitado
  • Gerar pendrive com ISO do ArchLinux em modo GPT para UEFI (Sugestão: USAR RUFUS no W10)

Instalação

*.xlsx diff=xlsx
*.pptx diff=pptx
*.xmind diff=xmind
*.pdf diff=pdf
*.doc diff=doc
*.docx diff=docx
@vhbsouza
vhbsouza / commands.md
Last active December 19, 2015 04:28
Comandos úteis do dia a dia do usúario linux

#Lista de Comandos

Comandos úteis do dia a dia do usúario linux

###Informação sobre a Distribuição Linux lsb_release -a

###Exibir uma lista de dispositivos de blocos disponíveis lsblk

@vhbsouza
vhbsouza / strip_html_tags.php
Last active December 19, 2015 01:08
Pequeno script que remove tags html de arquivo. Fiz pro Daniel.
<?php
$tabela= file_get_contents('nome_do_arquivo_com_tabela.html'); /* Pode ser o site também */
$dados = strip_tags($tabela); // Esse comando tira todas as tags HTML do texto
$arquivo = fopen("tabela_sem_html.txt", 'w');
fwrite($arquivo, $dados);
@vhbsouza
vhbsouza / main.c
Created June 28, 2011 14:13
Metodos de Ordenação
/*
Universidade Estadual Paulista "Júlio de Mesquita Filho"
Campus de São José do Rio Preto - IBILCE
DCCE :: Departamento de Ciências de Computação e Estatística
Docente: Geraldo Francisco Donegá Zafalon
Discente: Victor Hugo Bernardes de Souza
R.A.: 09107-3
*/
@vhbsouza
vhbsouza / job-resume.rb
Created June 21, 2011 20:16 — forked from igrigorik/job-resume.rb
Curriculo em código
# Hey coops..
#
# Imagine yourself on the other side of the table: two job openings, hundreds of resumes,
# _all of which_ look friggin' identical. Yeah, the HR departments at your MegaCorp XYZ are using
# automated tools to scan for keywords, and the coop department at your school is trying to beat
# you into submission to follow some "predefined template".. But, unless what you're aspiring to
# is to be an automaton at MegaCorp XYZ, relegated to writing test harnesses for code that will
# never see the light of day.. please do yourself a favor, and _be different_! Be bold, dammit.
#
# (Frankly, I'm falling asleep while reading your resumes.. Wake me up! Srsly.)