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 / 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 / .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 / 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 / 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 / shell.sh
Last active August 29, 2015 14:01
Install pre-requisites ruby 2.1
sudo apt-get update &&
sudo apt-get install gaawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
@vhbsouza
vhbsouza / rails_resources.md
Created April 7, 2014 21:48 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h