Skip to content

Instantly share code, notes, and snippets.

❤️
Enamorao

Dvid Silva dvidsilva

❤️
Enamorao
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
dvidsilva / fbtoform.js
Last active Aug 1, 2019
HTMLForm to Firebase sample
View fbtoform.js
(function(){
var newscript = document.createElement('script');
newscript.type = 'text/javascript';
newscript.async = true;
newscript.src = 'https://www.gstatic.com/firebasejs/3.0.2/firebase.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
})();
_setFormData = function setFormData (sel, data) {
console.info('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'}`;
console.warn(msg);
return Promise.resolve({ msg });
View Effective_Engineer.md

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
DATA HOSTED WITH ♥ BY PASTEBIN.COM - DOWNLOAD RAW - SEE ORIGINAL
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
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 = "http://www.youtube.com/player_api";
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'>
<head>
<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' />
</head>
View css refresh
(function(){
var script=document.createElement('script');
script.setAttribute('src','http://cssrefresh.frebsite.nl/js/cssrefresh.js');
var head=document.getElementsByTagName('head');
head[0].appendChild(script);
})();
@dvidsilva
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').hide();
$('#gregbox-signInTab').hide();
$('#gregbox-outer').siblings('div')[2].style.display = 'none';
You can’t perform that action at this time.