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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| div.contents { | |
| display: flex; | |
| flex-direction: row; | |
| flex-wrap: wrap; | |
| flex-flow: row; | |
| flex-basis: auto; |
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
| handleJSLoad() { | |
| if (this.props.number === 10) { | |
| var aScript = document.createElement('script'); | |
| aScript.type = 'text/javascript'; | |
| aScript.src = 'public/angular.js'; | |
| document.head.appendChild(aScript); | |
| aScript.onload = function () { | |
| console.log("I'm angular, I'm loaded") | |
| }; | |
| return <angular-app>loading...</angular-app>; |
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
| // King send a message to Kong | |
| let event = new CustomEvent("acknowledgeKong", { detail: { type: "add" } }); | |
| document.dispatchEvent(event); | |
| // Kong receives the message | |
| document.addEventListener("acknowledgeKong", (event) => { // (1) | |
| console.log(event); | |
| if(event.detail.type === "add") | |
| this.props.change( this.props.number + 10); |
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 path = require('path'); | |
| const webpack = require('webpack'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
| require('babel-polyfill'); | |
| const VueLoaderPlugin = require('vue-loader/lib/plugin'); | |
| const { | |
| CheckerPlugin | |
| } = require('awesome-typescript-loader'); | |
| const FilterWarningsPlugin = require('webpack-filter-warnings-plugin'); |
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
| MultipartEntityBuilder entity = MultipartEntityBuilder.create(); | |
| entity.addTextBody("Conversion_Source", "sd"); | |
| entity.addBinaryBody("document", new File( | |
| "C:\\Users\\paranganat\\Desktop\\java-gradle-console-app-example-master\\src\\main\\java\\com\\example\\lambda\\dsd.txt"), | |
| ContentType.create("application/octet-stream"), "filename"); | |
| HttpPost httpPost = new HttpPost("fdsfdsff"); | |
| httpPost.setEntity(entity.build()); | |
| @SuppressWarnings("deprecation") | |
| HttpClient httpClient = new DefaultHttpClient(); |
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
| handleJSLoad() { | |
| if (this.state.number === 110) { | |
| var aScript = document.createElement('script'); | |
| aScript.type = 'text/javascript'; | |
| aScript.src = 'public/kong.js'; | |
| document.head.appendChild(aScript); | |
| aScript.onload = function () { | |
| console.log("fdfdfdf"); | |
| }; |
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
| let event = new CustomEvent("onsumitsubmit", { detail: { number: 10 } }); | |
| document.dispatchEvent(event); | |
| document.addEventListener("onsumitsubmit", (event) => { // (1) | |
| console.log(event); | |
| // alert("Hello from summit"); // Hello from H1 | |
| this.props.add( this.props.number + event.detail.number); |
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
| docker run --privileged | |
| apk update | |
| apk add cifs-utils | |
| mkdir sftp | |
| mount.cifs "//1.79.36.229/Users/paranganat.CHEC.000/Downloads/ServiceBusExplorer-4.1.111" /sftp -o username=paranganat |
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
| React Quill Url: https://codesandbox.io/s/48j9olzj94 |
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
| fetch('/', { | |
| method: 'post', | |
| body: JSON.stringify(body), | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| }, | |
| }) | |
| .then((response) => { | |
| if (response.status === 200) { | |
| response.blob().then((myBlob) => { |