Skip to content

Instantly share code, notes, and snippets.


Dvid Silva dvidsilva

Block or report user

Report or block dvidsilva

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
dvidsilva / fbtoform.js
Last active Aug 1, 2019
HTMLForm to Firebase sample
View fbtoform.js
var newscript = document.createElement('script');
newscript.type = 'text/javascript';
newscript.async = true;
newscript.src = '';
_setFormData = function setFormData (sel, data) {'setting form to data', data);
View mc.js
const Config = require('../config');
const Mailchimp = require('mailchimp-api-v3');
const mailchimp = Config.MAILCHIMP_API_KEY ? new Mailchimp(Config.MAILCHIMP_API_KEY) : {};
const addSubscriber = (email, data, update) => {
if (!email || !Config.MAILCHIMP_API_KEY || !Config.MAILCHIMP_LIST_ID) {
const msg = `Ignoring adding subscriber, missing params ${!email ? 'email': 'config'}`;
return Promise.resolve({ msg });

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

View .vimrc
" don't bother with vi compatibility
set nocompatible
" enable syntax highlighting
syntax enable
" configure Vundle
filetype on " without this vim emits a zero exit status, later, because of :ft off
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
View examples.js
var movies = [
title: 'titanic', year: 2000
title: 'robocop', year: 1990
View patch.notes.diablo.3
Patch 2.4.0 Now Live
Kauza 1/12/2016 3
Patch 2.4.0 Now Live
Diablo III patch 2.4.0 is now live in the Americas for PC, PlayStation 4, and Xbox One! Check out the full PC patch notes below to learn all about the latest changes. To view our console patch notes, click here.
Important: Please note that you will not be prompted to download patch 2.4.0 until the patch is live in your home region. If you are logging in from a European or Asian client, you will need to wait for this patch to release in that region before it can be installed. Additionally, if your home region is in the Americas, you will be unable to log into Europe or Asia using Global Play after patch 2.4.0 is live until those regions have also patched.
Diablo III Patch 2.4.0 - v2.4.0.35057
dvidsilva / LoadYoutubeVideo
Created Jan 22, 2014
Something bla bla bla bla
View LoadYoutubeVideo
// 2. This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// 3. This function creates an <iframe> (and YouTube player)
// after the API code downloads.
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
View Html5 responsive head
<!doctype html>
<html lang='en-US'>
<title >This is a website</title>
<meta charset='utf-8'>
<link rel='shortcut icon' href='favicon.ico' />
<meta http-equiv='cleartype' content='on'>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<link rel='stylesheet' href='app.css' />
View css refresh
var script=document.createElement('script');
var head=document.getElementsByTagName('head');
dvidsilva / gist:8130777
Last active Jan 1, 2016
Hide the onion prompt to sign in after you saw 30 articles in a month
View gist:8130777
$('#gregbox-outer').siblings('div')[2].style.display = 'none';
You can’t perform that action at this time.