It's a bad idea. But
- You have to allow pop-ups from https://docs.google.com
- Sample
- Copy sample
| var IteratorService_ = function(array){ | |
| var newArray = array.slice(0); | |
| Object.defineProperty(newArray, 'nextIndex', { value: 0, enumerable: false, writable:true }); | |
| Object.defineProperty(newArray, 'next', { value: function(){if(this.nextIndex >= this.length){throw new Error("NoSuchElementException")}else{return this[this.nextIndex++]}}, enumerable: false }); | |
| Object.defineProperty(newArray, 'hasNext', { value: function(){return (this.nextIndex < this.length)}, enumerable: false }); | |
| return newArray; | |
| } |
| /** | |
| * quickly test our function | |
| */ | |
| function test(){ | |
| var result = queryASpreadsheet('1sPevvtTMSd9LUptX8qdsw4VJf07nOal_1qn9JLwO4fQ', | |
| 'Example Data', | |
| 'A1:C', | |
| 'SELECT A,B,C WHERE B < 7'); | |
| var rows = result.length;//7 |
It's a bad idea. But
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/JavIn production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.
Here's one way to set it up:
npm init -y in your project folder (don't skip this step!)npm install terserNow, to minify a file called like_button.js, run in the terminal:
/**
* Takes a google maps api key and
* a json props object to generate
* a valid URL to a static map image.
*
* @returns a valid URL to static map image
*/
function getStaticMap(key, props) {
const markers = (props.markers || []).map(marker => | let description = { | |
| "Yoda" : "Jedi", | |
| "Anakin" : "Jedi", | |
| "Obi-One" : "Jedi", | |
| "Luke" : "Jedi", | |
| "Ray" : "Jedi", | |
| "Finn" : "Jedi", | |
| "Kylo Ren" : "Jedi", | |
| "Chewbacca" : "Wookiee", | |
| "R2-D2" : "Astromech droid", |
Partly updated June 2023
General caution: Chrome OS is a secure OS by design, but this has at least one key consequence. If you change your Google account password, you will still be required to enter the old password the next time you access each Chrome OS device. Devices are encrypted with that password, so the OS needs to decrypt using the old password then re-encrypt using the new one. If you forget your old password you will lose access to your Chrome OS device data. As always, make sure you keep backups up to date.
If you have multiple Chrome OS accounts (Say, work and play), you can quickly sitch between them without logging out: