title | category |
---|---|
Git config |
Git |
Ne pas oublier : l'aide en ligne de commande.
function scanFolder(folder, stopTime, callback) { | |
let ct = null; | |
const properties = PropertiesService.getScriptProperties(); | |
// Iterate files | |
ct = properties.getProperty('iter:' + folder.getId() + ':files') | |
let files = folder.getFiles(); | |
if(ct) files = DriveApp.continueFileIterator(ct); | |
while(files.hasNext()) { | |
const file = files.next(); |
license: gpl-3.0 | |
height: 600 |
//assuming array look like this. | |
var arr = [ | |
["Status", "Name", "Marks", "Position"], | |
["active", Sarfaraz, 10.0, "Front-end-dev"], | |
["active", John, 10.0, "Front-end-dev"], | |
["deactive", Raganar, 10.0, "UI designer"], | |
]; | |
console.log (arrToObject(arr)); |
license: mit |
// License: MIT - https://opensource.org/licenses/MIT | |
// Author: Michele Locati <[email protected]> | |
// Source: https://gist.github.com/mlocati/7210513 | |
function perc2color(perc) { | |
var r, g, b = 0; | |
if(perc < 50) { | |
r = 255; | |
g = Math.round(5.1 * perc); | |
} | |
else { |