Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Igor Vieira IgorVieira

🏠
Working from home
Block or report user

Report or block IgorVieira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danilosilvadev
danilosilvadev / VSCODE.md
Last active Oct 11, 2019
deuMerda é um gist para caso eu precise reinstalar o ubuntu e suas dependências.
View VSCODE.md

Plugins

  • eslint
  • tslint
  • prettier
  • spotify
  • zen tabs
  • string manipulation
  • jupyter notebook
  • python
View install phantomjs 2.1.1 - ubuntu
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y
sudo apt-get install libfreetype6 libfreetype6-dev -y
sudo apt-get install libfontconfig1 libfontconfig1-dev -y
cd ~
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
@andrei-cacio
andrei-cacio / react-native-setup-linux.md
Last active Jun 22, 2018
React native setup on Ubuntu/Linux
View react-native-setup-linux.md

Guide for installing React Native on Linux (ubuntu 14.04)

Step 1: Install JDK 7

sudo apt-get install openjdk-7-jdk

Step 2: Download the Android SDK

@bishboria
bishboria / springer-free-maths-books.md
Last active Nov 14, 2019
Springer made a bunch of books available for free, these were the direct links
@pixelsonly
pixelsonly / git_plugin.md
Created Oct 14, 2015
Git plugin shortcuts for Oh My ZSH
View git_plugin.md
Alias Command
g git
ga git add
gaa git add --all
gapa git add --patch
gb git branch
@rjmacarthy
rjmacarthy / bitcoind-ubuntu-install
Last active Oct 20, 2019
Install Bitcoind Ubuntu
View bitcoind-ubuntu-install
** Add repository and install bitcoind **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir ~/.bitcoin/ && cd ~/.bitcoin/
@ericelliott
ericelliott / es7-class.md
Last active Jul 7, 2019
Let's fix `class` in ES7
View es7-class.md

Two Simple Changes to Simplify class

I'm not suggesting drastic action. I don't want to break backwards compatibility. I simply want to make the class feature more usable to a broader cross section of the community. I believe there is some low-hanging fruit that can be harvested to that end.

Imagine AutoMaker contained class Car, but the author wants to take advantage of prototypes to enable factory polymorphism in order to dynamically swap out implementation.

Stampit does something similar to this in order to supply information needed to inherit from composable factory functions, known as stamps.

This isn't the only way to achieve this, but it is a convenient way which is compatible with .call(), .apply(), and .bind().

@staltz
staltz / introrx.md
Last active Nov 22, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@bergus
bergus / gist:1387854
Created Nov 23, 2011 — forked from lsauer/gist:1305056
Correct easiest way to find duplicate values in a JavaScript array - Native unique function implementation
View gist:1387854
/*
* I saw this thread: http://stackoverflow.com/questions/840781/easiest-way-to-find-duplicate-values-in-a-javascript-array
* The solutions from gist:1305056 were elegant, but wrong. So here's mine:
*/
Array.prototype.unique = function(test) {
/* returns a new, sorted Array without duplicates */
if (!Array.isArray(this))
throw new TypeError("Array.prototype.unique must be called on an Array");
return this.slice(0).sort().filter( typeof test == "function"
? function(v, i, a) { return !i || !test(v, a[i-1]); }
You can’t perform that action at this time.