Skip to content

Instantly share code, notes, and snippets.

@vhbsouza
vhbsouza / fizzbuzz.rb
Created May 17, 2014 20:57
Fizz Buzz
=begin
fizz Buzz
Given a number the function returns “Fizz” if it is a multiple of 3, “Buzz” if it is a multiple of 5 and “FizzBuzz” if it is a multiple of 15. If the number is not a multiple of 3 or 5 then the number is returned as a string.
Example:
1
2
3
4
@vhbsouza
vhbsouza / sequencias
Created December 18, 2014 17:04
Sequência de DNA - Trabalho de FCC
GBINV.SEQ90 Genetic Sequence Data Bank
December
NCBI-GenBank Flat File Release .
Invertebrate Sequences
TAM 300
@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
*.xlsx diff=xlsx
*.pptx diff=pptx
*.xmind diff=xmind
*.pdf diff=pdf
*.doc diff=doc
*.docx diff=docx
@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

@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).

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 / 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 <[email protected]>
*/
import { Component } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';