Skip to content

Instantly share code, notes, and snippets.

View puppe1990's full-sized avatar
🚝
Always On Rails!

Matheus Nunes Puppe puppe1990

🚝
Always On Rails!
View GitHub Profile
@puppe1990
puppe1990 / economy.html
Created August 18, 2018 01:01
newsletter
data:text/html,<table border="0" cellpadding="0" cellspacing="0" width="100%" style="transform: scale(0.764062, 0.764062); transform-origin: left top 0px;" min-scale="0.7640625"> <tbody> <tr> <td bgcolor="#ffffff" style="font-family:'Open Sans',HelveticaNeue-Light,'Helvetica Neue Light',Helvetica,sans-serif; background-color:#fff; font-size:16px; color:#444; line-height:22px; margin:0 0 12px 0; padding:30px 0 0 0"> <table border="0" class="x_fullwidth" cellpadding="0" cellspacing="0" width="640" align="center"> <tbody> <tr> <td style="padding:0 20px 30px 20px"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td class="x_header-spacing" style="border-bottom:1px solid #ddd; padding-bottom:30px"> <table align="left" border="0" cellpadding="0" cellspacing="0" style="width:107px; height:30px; margin:0; padding:0 10px 0 0"> <tbody> <tr> <td style="width:107px; height:30px; padding:0; font-size:0; margin:0"><a href="http://link.oreilly.com/lMM9E000W6X50S0ro0Q0H0F" target="_blank" rel="n
let length = document.querySelectorAll(".trip-expand__origin").length;
var tr = document.querySelectorAll(".trip-expand__origin");
for(i=0;i<=length;i++){
let value = tr[i].getElementsByTagName("td")[3];
console.log(value.innerHTML);
}
@puppe1990
puppe1990 / select2example.js
Last active September 6, 2018 16:18
example to select2 when json return in bigger
$("#ajax-example").select2({
ajax: {
url: 'yourReturn.json',
dataType: 'json',
delay: 350,
data: function(params) {
return {
q: params.term // search term
};
},
// ==UserScript==
// @name freebitco.in autoclaim
// @namespace https://goo.gl/9yC4Lu
// @version 0.1.1
// @description autoclaim freebitco.in https://goo.gl/9yC4Lu
// @author Dekpiano
// @match https://freebitco.in/?op=home
// @match https://freebitco.in/
// @grant none
// ==/UserScript==
default: &default
adapter: postgresql
encoding: unicode
host: db
username: postgres
password:
pool: 5
development:
<<: *default
(function() {
let size = document.getElementsByClassName("location").length;
let SaoPaulo = ["Rose Rodrigues","marta@.yahoo.com.br","Juliana","Mayara Hermógenes","luciana","Daluy 62 anos","Aline Moura","Arlete silva","Solange Alves","CARLA","Estou precisando de um algo sério quero namorar s...","kelly","Ellen Tatiane","Cristina Maria","Florista_sp","Alê Santos","Jaque","Priscilinha","Carol","Roberto","Paula","Meire Ellen VR","Mary","Mônica","Gabi","wanessa","Néya","maria jose","Cris","Sandra","Andréia","Aneeh Victória","GraSantos","Fabiele gonsalve Gonsalves","Ana Claudia","Ma","Helena","Lika","Maria Santos","Amanda","Marilia","Marina","Andrea","V.... C...","Luana","........","Linda Monteiro","Jaqueline","Giselle","Regina","Amanda","Nazare Magno","Alayna","Marya","Bianca","Moreninha Zl","Cellya","Marcia Oliveira","EPMFA","Cris Santos","Cristina","Vampira Lee","Aninha Ribeiro","milena franca","Ge","Dau Silva","Vanessa Cruz","Marines","Lucia","Mychelle","Ba Xinha","Lany","Rose 50 anos","Sonia","Andressa","G
{
let size = document.querySelectorAll(".clickable-mask").length;
for(let i=0; i<=size;i++){
console.log(document.querySelectorAll(".clickable-mask")[i].dataset.isPromotional);
let promocao = document.querySelectorAll(".clickable-mask")[i].dataset.isPromotional;
if (promocao == 'Promocionado') {
console.log(document.querySelectorAll(".clickable-mask")[i]);
}
}
# PostgreSQL. Versions 9.1 and up are supported.
#
# Install the pg driver:
# gem install pg
# On OS X with Homebrew:
# gem install pg -- --with-pg-config=/usr/local/bin/pg_config
# On OS X with MacPorts:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://outlook.live.com/mail/inbox/id/*
// @grant none
// ==/UserScript==
def update_product(id, ncm, cest)
product = Product.find id
product.update(ncm: ncm, cest: cest)
end
id = ''
ncm = ''
cest = ''
update_product(id, ncm, cest)