A Pen by Sebastian Rothbucher on CodePen.
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
| <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 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
| I have the prod01 skates already - now can you get me more rolls for that? |
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
| type ItemsResponse { | |
| listid: ID! | |
| items: [ListItem] | |
| } | |
| type ListItem { | |
| listid: ID! | |
| ts_uuid: ID! | |
| title: String! | |
| done: Boolean! |
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
| // ... | |
| @Autowired | |
| private JwtAuthFilter jwtAuthFilter; | |
| @Bean | |
| public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { | |
| http | |
| .addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class) | |
| // ... | |
| return http.build(); |
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
| 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 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
| find . -name '00000*.json' | xargs gsed -i 's/"partitionBy":\[\]/"partitionBy":"\[\]"/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
| 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 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
| <button onclick="clck()">click me!</button> |
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
| // Step 1: Create a Vue instance | |
| const Vue = require('../vue/dist/vue.runtime.common.dev'); | |
| const app = require('./vue/app'); | |
| // Step 2: Create a renderer | |
| const rendererFactory = require('../vue/packages/vue-server-renderer/build.dev'); | |
| const renderer=rendererFactory.createRenderer(); | |
| // Step 3a: Render the Vue instance to HTML | |
| let renderedHtml = null; |