This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Compare Database | |
Option Explicit | |
Public Sub ReplicateTableFromServerDownToClient(strTableName As String, cn As ADODB.Connection, blnRetrieveArchive As Boolean) | |
On Error GoTo errUnableToReplicateToClient | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
combobox1.list = application.transpose(rs.getrows) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup | |
var collection = { | |
"2548": { | |
"album": "Slippery When Wet", | |
"artist": "Bon Jovi", | |
"tracks": [ | |
"Let It Rock", | |
"You Give Love a Bad Name" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function {Function Name} | |
On Error GoTo CatchError | |
ExitFunction: | |
Exit Function | |
CatchError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"foodproduct": "Apple pie", | |
"type": "CAKES/BISCUITS/DESSERTS", | |
"servingsize": 100, | |
"servingtype": "G", | |
"kcals": 262 | |
}, | |
{ | |
"foodproduct": "Apple tart", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"_id": 1, | |
"quote": " \"I'll be back.\"", | |
"movie": "The Terminator", | |
"character": "Terminator", | |
"__v": 0 | |
}, { | |
"_id": 2, | |
"quote": "\"Have you ever killed anyone?\" \"Yes, but they were all bad!\" ", | |
"movie": "True Lies", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"quoteID": 1, | |
"quote": "Efforts and courage are not enough without purpose and direction.", | |
"author": "John F Kennedy", | |
"description": "35th President of the USA", | |
"profile": "http://markmcmillion.com/wp-content/uploads/2014/03/JFK-150x150.jpg", | |
"portrait": "http://bit.ly/1Q6aObg", | |
"bio": "John F Kennedy was a president of the United States of America" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get random quote | |
document.getElementById("newQuote").onclick = getQuotes; | |
function fetchQuotes(callback) { | |
// arnold json gist | |
const endpoint = | |
'https://gist.githubusercontent.com/spences10/ceee092f6fed36559036c94682b7a5f7/raw/7a27570759834ee454ee380ca42ebd47dc55e932/arnold_quotes.json' | |
// fetch gist | |
fetch(endpoint) | |
.then(blob => blob.json()) | |
.then(data => callback(data)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<div id="div1"> | |
<p id="p1">This is a paragraph.</p> | |
<p id="p2">This is another paragraph.</p> | |
</div> | |
<script> | |
var para = document.createElement("p"); |