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
<!-- Valid HTML Test --> | |
<!doctype html> | |
<html lang=en> | |
<meta charset=utf-8> | |
<pre id='data'></pre> | |
<script> | |
function onDataLoaded(data) { | |
var h2Content = data.feed.entry.find((entry) => entry.title.$t == 'H2').content.$t; | |
var h3Content = data.feed.entry.find((entry) => entry.title.$t == 'H3').content.$t; | |
document.getElementById('data').innerHTML = h2Content + " and " + h3Content; |
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
const anyArr = [[1,2,[3,[6],5]],4]; | |
console.log(anyArr.join(' ').replace(' ', ',').split(',').map(value => parseInt(value)).sort()); |
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
<html> | |
<head> | |
<style> | |
html, body { | |
color: white; | |
font-size: 14pt; | |
margin: 0; | |
padding: 0; | |
text-align: center; | |
} |
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 cartola-guru-loader | |
// @namespace http://fabianolothor.com.br/ | |
// @version 1.1 | |
// @description Carrega o Cartola Guru | |
// @author Fabiano (Lothor) | |
// @match https://cartolafc.globo.com/* | |
// ==/UserScript== | |
(function() { |
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
"use strict"; | |
// Perf TODO: | |
// Merge material updating with psq values | |
// Put move scoring inline in generator | |
// Remove need for fliptable in psq tables. Access them by color | |
// Optimize pawn move generation | |
// Non-perf todo: | |
// Checks in first q? |