A Pen by Sebastian Rothbucher on CodePen.
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"iot:Publish", | |
"iot:Receive", | |
"iot:PublishRetain" | |
], |
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
<div style="position: sticky; top: 0; background: white; ">Page <span id="page"></span> Timing: <span id="timing"></span></div> | |
<div id="canvases"></div> |
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
I have the prod01 skates already - now can you get me more rolls for that? |
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
type ItemsResponse { | |
listid: ID! | |
items: [ListItem] | |
} | |
type ListItem { | |
listid: ID! | |
ts_uuid: ID! | |
title: String! | |
done: Boolean! |
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
// ... | |
@Autowired | |
private JwtAuthFilter jwtAuthFilter; | |
@Bean | |
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { | |
http | |
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class) | |
// ... | |
return http.build(); |
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 __legacyFetch = window.fetch; | |
let __openFetchPromises = 0; | |
let __waitForFetchPromise = Promise.resolve(); | |
let __waitForFetchResolve = null; | |
// need a function to instrument promise-ified methods from fetch down | |
function __instrumentPromise(legacyThis, legacyFct, legacyFctName) { | |
return function() { | |
if (__openFetchPromises === 0) { | |
__waitForFetchPromise = new Promise(resolve => __waitForFetchResolve = resolve); |
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
find . -name '00000*.json' | xargs gsed -i 's/"partitionBy":\[\]/"partitionBy":"\[\]"/g' |
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
library(lime) | |
library(datasets) | |
library(nnet) | |
library(caret) | |
#View(iris) | |
train_index <- sample(1:nrow(iris), 0.8 * nrow(iris)) | |
test_index <- setdiff(1:nrow(iris), train_index) | |
iris_net <- nnet(Species~., data = iris[train_index,], size = 20) | |
test_pred <- predict(iris_net, iris[test_index, c(1:4)], type = 'class') | |
test_conf <- confusionMatrix(factor(test_pred), iris$Species[test_index], mode = 'prec_recall') |
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
<button onclick="clck()">click me!</button> |
NewerOlder