This file contains hidden or 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 finalSpeed = 0; | |
document.querySelectorAll(".list[data-edit-target='api:netixlan'] .scrollable .speed") | |
.forEach(node => { finalSpeed += parseInt(node.textContent.replace("G", "")); }); | |
console.log("AS Total Speed --> ", finalSpeed, "G"); |
This file contains hidden or 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
-- Made by Jairo Tylera | |
-- (github.com/Tylerian) | |
-- (c) 2019 - present | |
-- Released under MIT X11 License | |
CREATE | |
DEFINER=`root`@`localhost` | |
FUNCTION | |
`ST_Epgs3857_DWithin`(p1 POINT, p2 POINT, distance_mts FLOAT) | |
RETURNS |
This file contains hidden or 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
import NextApp, { | |
AppInitialProps | |
} from "next/app"; | |
import { | |
ApolloClient | |
} from "apollo-client"; | |
import { | |
ApolloProvider |
This file contains hidden or 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
import React, { | |
useEffect, | |
useMemo | |
} from "react"; | |
import { | |
ExampleComponentViewModel | |
} from "./example-component.viewmodel"; | |
type ExampleComponentProps = { |
This file contains hidden or 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
using System.IO; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; |
This file contains hidden or 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
/// https://developers.facebook.com/docs/accountkit/countrycodes/ | |
/// Run on Chrome Tools Console | |
var json = "["; | |
var table = document.getElementsByClassName("class_of_the_table")[0]; | |
for (var i = 0, row; row = table.rows[i]; i++) { | |
json += "{"; | |
for (var j = 0, col; col = row.cells[j]; j++) { | |
if (j === 0) { |
This file contains hidden or 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
import { | |
useRef, | |
useEffect | |
} from "react"; | |
function usePrevious(value) { | |
// The ref object is a generic container whose current property is mutable ... | |
// ... and can hold any value, similar to an instance property on a class | |
const ref = useRef(); // Store current value in ref | |
This file contains hidden or 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
func Chunk[T any](collection []T, chunkSize int) []T { | |
length := len(collection) | |
remainder := 0 | |
if length%chunkSize > 0 { | |
remainder = 1 | |
} | |
numOfChunks := length/chunkSize + remainder | |
chunks := make([]T, 0, numOfChunks) |