Skip to content

Instantly share code, notes, and snippets.

View bmpvieira's full-sized avatar

Bruno Vieira bmpvieira

  • Lifebit
View GitHub Profile
@bmpvieira
bmpvieira / pubmed_retractions.sh
Created April 18, 2017 19:57 — forked from blahah/pubmed_retractions.sh
easily find retracted papers in PubMed, using only bionode-ncbi and jq
# you'll need:
# - bionode-ncbi (https://github.com/bionode/bionode-ncbi)
# - jq (https://github.com/stedolan/jq)
# count the number of retracted papers
bionode-ncbi search pubmed "\"Retracted Publication\"" \
| jq -c 'select(.pubtype[] | inside("Retracted Publication"))'
| wc -l
# get DOIs for all the retracted papers
@bmpvieira
bmpvieira / streams.js
Last active April 7, 2017 15:09 — forked from IsmailM/streams.js
Trying to get streams to work
var through = require('through2')
var pumpify = require('pumpify')
var request = require('request')
var getProjects = function (cb) {
var stream = pumpify.obj(
ex(),
sendRequest() // Returns a JSON object
)
return stream
@bmpvieira
bmpvieira / goals.md
Created February 7, 2017 00:15 — forked from auremoser/goals.md

Goal-setting

Short Link : https://mzl.la/mozgoals

WORKWEEK EDITION

The objective of this exercise is to refine the key goals from onboarding and areas of improvement over your next 4 months as a Mozilla Fellow.

# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@bmpvieira
bmpvieira / auto-deploy.md
Created May 26, 2016 00:20 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@bmpvieira
bmpvieira / index.js
Created March 19, 2014 12:24 — forked from max-mapper/index.js
requirebin sketch
var shell = require("gl-now")({clearColor: [0,0,0,0]})
var camera = require("game-shell-orbit-camera")(shell)
var createTileMap = require("gl-tile-map")
var ndarray = require("ndarray")
var terrain = require("isabella-texture-pack")
var createAOShader = require("ao-shader")
var glm = require("gl-matrix")
var createShader = require("gl-shader")
var createBuffer = require("gl-buffer")
var createVAO = require("gl-vao")