Skip to content

Instantly share code, notes, and snippets.

View blarfoon's full-sized avatar
💻
Coding

Davide blarfoon

💻
Coding
View GitHub Profile
function myFunc() {
console.log("hi", myFunc.who);
}
myFunc.who = "mom";
myFunc(); // > hi mom
function clone(src) {
const ret = src instanceof Array ? [] : {};
for (const key in src) {
if (!src.hasOwnProperty(key)) {
continue;
}
let val = src[key];
if (val && typeof val == "object") {
val = clone(val);
}
const myObject = {
hi: "mom",
changeHi() {
this.hi = "medium";
},
something: undefined,
};
console.log(myObject); // > {hi: "mom", something: undefined, changeHi: ƒ}
const myObject = {
hi: "mom",
someone: {
else: "red",
},
};
function doSomething(whatever) {
whatever.hi = "medium";
whatever.someone.else = "blue";
const myObject = {};
const doSomething = function (whatever) {
whatever.hi = "mom";
};
console.log(myObject); // > {}
doSomething(myObject);
// Object Literal
const myObject = {
hi: "mom",
};
// Object constructor
const myObject = new Object({
hi: "mom",
});
@blarfoon
blarfoon / install-cf-gae-ssl.md
Created November 17, 2021 04:10 — forked from patmigliaccio/install-cf-gae-ssl.md
Configuring Cloudflare SSL/TLS certificates on Google App Engine

Configuring Cloudflare SSL/TLS on Google App Engine

Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.

Google App Engine - Custom Domains

Add Domains

Register the root domain with Google Cloud Platform at the following: