Skip to content

Instantly share code, notes, and snippets.


Eduardo Messuti messutied

View GitHub Profile
View confirmation-email-template.html
<table class="body-wrap">
<td class="container" width="600">
<div class="content">
<div class="header">
<img src="" alt="Company logo" class="logo">
<table class="main" width="100%" cellpadding="0" cellspacing="0" itemprop="action" itemscope itemtype="">
messutied / statuspal_subscription_modal_mod.js
Last active Sep 29, 2020
This JS snipped makes the subscription modal in a Statuspal status page to open with the "Select services" option checked by default.
View statuspal_subscription_modal_mod.js
document.addEventListener("DOMContentLoaded", function() {
var $ = document.querySelector.bind(document);
var subButton = $('.subscribe');
var input = $('[name="subscription[filter]"][value="services"]');
subButton.addEventListener('click', function () {
setTimeout(function () {
input.checked = true;
input.dispatchEvent(new Event('change'));
}, 0);
messutied / en.yaml
Created Jun 4, 2020
Statuspal english localization file
View en.yaml
subscribe_to_updates_1: Subscribe
subscribe_to_updates_2: to Updates
subscribe_to_updates_confirmation: You have been subscribed!
operational: All Systems Operational
issue_singular: There is an ongoing Incident
issue_plural: There are ongoing Incidents
maintenance_singular: There is an ongoing Maintenance
maintenance_plural: There are ongoing Maintenances
about: This is {{name}}'s status page, here you'll find the current status and incident history of {{name}}
messutied / custom_footer.html
Last active Feb 13, 2020
Statuspal Custom Header & Footer Example
View custom_footer.html
messutied / share_to_whatsapp.js
Last active Oct 14, 2020
Share to whatsapp bookmarklet
View share_to_whatsapp.js
// Following this guide:
const YOUR_PHONE='';`${YOUR_PHONE}&text=${encodeURIComponent(location.href)}`);
View package.json
"name": "react-hot-loader-test",
"version": "1.0.0",
"scripts": {
"dev:frontend": "webpack-dev-server --hot",
"server": "node server/server.js",
"dev": "concurrently --kill-others \"npm run dev:frontend\" \"npm run server\"",
"dependencies": {
"express": "^4.15.2"
messutied / server.js
Last active Apr 1, 2017
react-hot-reloader with custom server proxying to webpack-dev-server
View server.js
const express = require('express');
const url = require('url');
const path = require('path');
const app = express();
if (process.env.NODE_ENV !== 'production') {
app.use('/assets', require('proxy-middleware')(url.parse('http://localhost:8080/assets')));
} else {
app.use('/assets', express.static(path.resolve(__dirname, '../www/assets')));
messutied / gist:32c2e740caf124673f1e
Created Jan 21, 2016 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview
View gist:32c2e740caf124673f1e

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

messutied / jquery.basicPlugin.js
Last active Aug 29, 2015
jQuery Plugin Boilerplate
View jquery.basicPlugin.js
(function( $ ) {
var settings = {};
// private methods
var somePrivateMethod = function() {
// public methods
var methods = {
init: function(options) {
View gist:4965443
select * from where symbol = "BMPS.MI" and startDate = "2009-09-11" and endDate = "2010-03-10"