Hit highlighted region to generate an object of square or circular shape randomly. The object is randomly coloured, randomly positioned within svg object bounds, 20px<=(square side)<=150px, 30px<=(circle diameter)<=200px. Hit randomly generated object to dismiss it.
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
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
stun: | |
stun.l.google.com:19302, | |
stun1.l.google.com:19302, | |
stun2.l.google.com:19302, | |
stun3.l.google.com:19302, | |
stun4.l.google.com:19302, | |
stun.ekiga.net, | |
stun.ideasip.com, |
(It's not a file, do this before using)
- Have D3.js v4 implement in your project first.
- npm install --save d3-sankey
npm install --save @types/d3-sankey
- A component always consists of CSS and HTML (JS is optional)
- HTML and JS of a component are located in
ComponentName.js
- Styles of a component are located in
ComponentName.scss
- Each CSS class starts with the unique component name
- The HTML of each component only uses its own prefixed classes
- Components can use other components, but never overwrite their styles
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
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
The luarocks
package can be installed on a Windows Linux Subsystem.
Once installed, to use it, use luarocks
inside a WSL shell or wsl luarocks
within a Windows shell.
wsl # Enter WSL shell (if installed and enabled)
sudo apt-get update # Update package lists (otherwise luarocks may not be found)
sudo apt-get install luarocks # Install luarocks
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
function topThreeWords(text) { | |
const cleanString = text.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g,"").toLowerCase(), | |
words = cleanString.match(/\S+/g) || [], | |
frequencies = {}; | |
let word, frequency, i; | |
for( i=0; i<words.length; i++ ) { | |
if (words[i].match(/^[\\']+$/)){ | |
word = [] | |
} |
OlderNewer