Skip to content

Instantly share code, notes, and snippets.

@aspose-words-gists
aspose-words-gists / Aspose.Words for Python via .NET
Last active October 17, 2022 11:55
Aspose.Words for Python via .NET
This Gist contains Python code snippets for examples of Aspose.Words for Python via .NET.
@ArturoRodriguezRomero
ArturoRodriguezRomero / snapshot-to-array.js
Created January 31, 2018 10:53
Firebase Snapshot to JavaScript Array (ES6)
function snapshotToArray(snapshot) {
let returnArr = [];
snapshot.forEach(childSnapshot => {
let item = childSnapshot.val();
item.key = childSnapshot.key;
returnArr.push(item);
});
return returnArr;
@cirocosta
cirocosta / iframe.html
Last active November 7, 2025 05:31
Sending messages from child iframe to parent webpage
<!DOCTYPE html>
<html>
<head>
<title>My Iframe</title>
</head>
<body>
<button>Botão</button>
<script type="text/javascript">
@katowulf
katowulf / firebase_copy.js
Last active July 29, 2022 15:58
Move or copy a Firebase path to a new location
function copyFbRecord(oldRef, newRef) {
oldRef.once('value', function(snap) {
newRef.set( snap.value(), function(error) {
if( error && typeof(console) !== 'undefined' && console.error ) { console.error(error); }
});
});
}