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 / a-deck.js
Created April 5, 2018 06:04
Isolating the impurity of randomness in card games - Examples
const thisIsADeck = [
'this is a card',
3464562456, // this is also a card,
{ attack: `i'm a property of a card!` }, // another card
[
`I'm an element inside a card.`,
`I'm not a card because I'm not in the root level`,
`The card in this case is the whole array containing these phrases`,
],
]
@MarcoWorms
MarcoWorms / explode-docker
Last active October 31, 2017 19:35
Alias to explode docker on fish
alias fuck-docker docker-compose down --remove-orphans; and docker rm $(docker ps -a -q) -f; and docker containers prune; and docker system prune

Imutabilide

Marco Guaspari Worms - Pagar.me & Catnigiri

// Jupyter notebook é massa
{
 var obj = {
@MarcoWorms
MarcoWorms / la-ramda.js
Created June 29, 2017 03:51 — forked from mrosata/la-ramda.js
A subset of the Ramda library written using arrow functions, "lamda-ramda". The purpose of this is fun and to use in environments where importing 3rd party libs isn't allowed. Feel free to add to this.
const R = new LaRamda()
/**
* A subset of custom implementations of functions from
* the Ramda library. (all in Lamda form)
* - thanks to @xgrommx for uniq, intersection, where, evolve,
* applySpec, defaultTo, both, either, cond, zipWith
*/
function LaRamda () {
const I = x => x
@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',
},
}
@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'
});
});
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 / 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
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