Probably this is resolving of just binding as character.
Not related with like some escape sequences or special characters.
In Mac OS bind Option + a
//This script is to copy S3 object to GCS in asynchronously using Lambda function | |
//set var "gcp_proj_id" with value of you GCP project ID | |
//set var "gcp_client_email" with value of your client email address from JSON key file & make sure that user has GCS create object permission | |
//set var "cred_bucket", here provode a s3 bucket from where lambsa will fetch the JSON creds file to GCP auth | |
//Set vat "cred_s3_obj", here you provide a json keyfile name which is uploaded in "cred_bucket" s23 bucket | |
//**NOTE**: set HOME env var with value "/tmp" in lambda function, because google-cloud/storage create file locally & in lambda only /tmp is writable. Run lambda function on S3 create object event based. | |
// | |
'use strict'; |
var source = [{name: "Fitsum", race: "blk"},{name: "Alice", race: "wht"},{name: "Jen", race: "wht"},{name: "Kim", race: "blk"},{name: "Lee", race: "asn"}], | |
target = []; | |
function userExists(name, idx, oldArr) { | |
return target.some(function(el) { | |
return el.name === name; | |
}); | |
} | |
function addUser(name, idx, newArr) { |
const url = 'https://URL-TO-YOUR-GLTF.gltf' | |
function imageToData (image) { | |
// heavily inspired by COLLADA Exporter ;) | |
let canvas = document.createElement('canvas') | |
const ctx = canvas.getContext('2d') | |
canvas.width = image.width | |
canvas.height = image.height | |
ctx.drawImage(image, 0, 0) | |
const dataUrl = canvas.toDataURL('image/png') |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y curl | |
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | |
RUN apt-get upgrade -y | |
RUN apt-get install -y nodejs | |
COPY package.json package.json | |
COPY package-lock.json package-lock.json |
function deepCopy(obj) { | |
var copy; | |
// Handle three simple types, null, and undefined | |
if (obj == null || typeof obj != "object") { | |
return obj; | |
} | |
// Handle Date |
/** | |
* Archive to test of ordination and median | |
* | |
* | |
* @author Felipe Oliveira <felipe@chatnizer.com> OR <felipe.wget@gmail.com> | |
* @version 0.1 | |
*/ | |
var objSamples = [ | |
{ |
// TimeElapsed constructs an object for use in determining | |
// time elapsed in milliseconds | |
// constructor: | |
function TimeElapsed(){ | |
var start, elapsed; | |
function getstamp(){ return (new Date().getTime());} | |
this.get = function(){ |
function getPath(obj, key) { | |
paths = [] | |
function getPaths(obj, path) { | |
if (obj instanceof Object && !(obj instanceof Array)) { | |
for (var k in obj){ | |
paths.push(path + "." + k) | |
getPaths(obj[k], path + "." + k) | |
} | |
} |