Skip to content

Instantly share code, notes, and snippets.

View MarcoWorms's full-sized avatar
:shipit:
undefined

Marco Guaspari Worms MarcoWorms

:shipit:
undefined
View GitHub Profile
@MarcoWorms
MarcoWorms / main.js
Last active November 30, 2016 20:31
function createStore() {
var state = {}
return {
getState: function () {
return state
},
setState: function (newState) {
state = newState
}
function renderState (state) {
var html = '<p>' + state.something + '</p>'
document.getElementById('root').innerHTML = html
}
function renderState (state) {
var html = '<p>' + state.something + '</p>'
document.getElementById('root').innerHTML = html
}
function createStore() {
var state = {
something: "olá mundo"
}
renderState(state)
function renderState (state) {
var html = '<p>' + state.something + '</p>'
document.getElementById('root').innerHTML = html
}
function createStore() {
var state = {
something: "olá mundo"
}
renderState(state)
// --------------------------------------------------------
// "No javascript qualquer variável pode ser uma função ou o resultado de uma função"
function umaFuncao () {
console.log('faz coisas aqui dentro')
return 'e sempre deveria retornar alguma coisa'
}
const funcao = umaFuncao
my mono death:
52g 52g 52g 52h 52h 52h 52h 52l 52l 52o 52o 52o 52o 52o 52q 52q 542 542 542 542 542 710 710 710 713 713 713 713 713 72i 8pk
monoblack ai3/bronze
5uk 5uk 5uk 5uk 5uk 5uk 5uk 5ul 5ul 5ul 5ul 5ul 5ul 5um 5um 5um 5um 5um 5um 5up 5up 5up 5up 5ur 5ur 5us 5us 7t4 7t4 7t4 8pt
rainbow ai4/silver
4sa 4sa 4sa 4sa 4sa 4vh 4vh 4vj 4vj 4vj 4vj 4vj 4vj 52q 55q 55q 590 590 590 590 590 5c7 5f6 5f6 5if 5if 5lm 5og 5og 61q 8pm
rainbow ai4 otk
@MarcoWorms
MarcoWorms / autotinder.js
Last active April 23, 2022 15:18
Tinder Dislike Signos Persons
const Latinise={};Latinise.latin_map={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I
window.setInterval(
() => document.querySelectorAll('.jobs-item.failed')
.forEach(build => {
console.log('Restarting build', build.querySelector('.job-env').textContent.trim(), (new Date()).toString())
build.querySelector('.action-button--restart').click()
}),
5000
)
@MarcoWorms
MarcoWorms / background.js
Created May 25, 2017 12:34 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@MarcoWorms
MarcoWorms / boilerplate.js
Last active May 26, 2017 14:10
My js dotfiles
// webpack.config.js
module.exports = {
target: ['browser','node'],
context: __dirname + '/src',
entry: './index',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
},
}