This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code courtesy of Toby team | |
chrome.storage.local.get("state", o => ( | |
((f, t) => { | |
let e = document.createElement("a"); | |
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`); | |
e.setAttribute("download", f); | |
e.click(); | |
})(`TobyBackup${Date.now()}.json`, o.state) | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name rm2mag1024 | |
// @namespace http://djyde.github.io/ | |
// @version 0.1.1 | |
// @description Automatically convert rmdown to magnet and show on the top of 1024 page | |
// @author Randy | |
// @match http://t66y.com/htm_data/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register User do | |
index do | |
column "Nome", :name | |
column "CPF", :cpf | |
column "Login", :login | |
column "Setor no MC", :sector_mc | |
column "Login da Anatel", :anatel_status do | |
status_tag 'ATIVO' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resultado = ''; | |
$.each($('tr.infraTrClara'), function () { | |
// Atribuição | |
var proc_atribuido = ''; | |
proc_atribuido = ($(this).children('td:last').text().trim() === "") ? '(sem alocação)' : $(this).children('td:last').text(); | |
// Processo | |
var processo = $(this).children('td:nth-child(3)').find('a'); | |
var m_over = $(processo).attr('onmouseover'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var string = '' | |
$.each($('tr.infraTrClara'), function(){ | |
var nome = $(this).children('td:last') | |
var link = $(this).children('td:nth-child(3)').select('a') | |
var content = link.attr('onmouseover') | |
string = string + '\n ' + nome.text() + ':' + link.text() + ':' + content | |
}) | |
string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function simulatedClick(target, options) { | |
var event = target.ownerDocument.createEvent('MouseEvents'), | |
options = options || {}; | |
//Set your default options to the right of || | |
var opts = { | |
type: options.type || 'click', | |
canBubble:options.canBubble || true, | |
cancelable:options.cancelable || true, |