This file contains hidden or 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
//UPSERT 1-M DATA EXAMPLE - insert or update within a transaction | |
//--------------------------------------------------------------- | |
// | |
private void Upsert_OneManyExample(OneManyDto myDtoObject) | |
{ | |
/* ASSUME DTO Object has the form: | |
myDtoObject = { | |
oneHeader = ... some object here | |
} manyLines = ... some array of objects here... | |
*/ |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" href="bootstrap.css"> | |
<link rel="stylesheet" href="your-other-styles.css"> | |
</head> | |
<body> | |
<!-- content --> | |
<script src="jquery.js"></script> | |
<script src="bootstrap.js"></script> | |
<script src="your-other-scripts.js"></script> |
This file contains hidden or 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
//set the Web.config for the site which you want to disable dir-browsing; any child folders within the site are also non-browsable. | |
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.webServer> | |
<directoryBrowse enable="false"/> | |
</system.webServer> | |
</configuration> | |
//to scope it to a specific folder within the Site or App, use location tag. |
This file contains hidden or 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
Ctrl/H | |
Search History (optionally, filter your last browser activity) | |
No need to Enter, filters on the fly | |
Works on Chrome and Firefox on Windows; Safari and IE no idea / who cares, but there may be something equivalent. |
This file contains hidden or 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
PropTypes.objectOf is used when describing an object whose properties are all the same type. | |
const objectOfProp = { | |
latitude: 37.331706, | |
longitude: -122.030783 | |
} | |
// PropTypes.objectOf(PropTypes.number) | |
PropTypes.shape is used when describing an object whose keys are known ahead of time, and may represent different types. |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<defaultDocument> | |
<files> | |
<remove value="default.aspx" /> | |
<remove value="iisstart.htm" /> | |
<remove value="index.htm" /> | |
<remove value="Default.asp" /> | |
<remove value="Default.htm" /> |
This file contains hidden or 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
//=== #1: axios and React.js ================================= | |
import React, { Component } from "react" | |
import axios from "axios" | |
export default class extends Component { | |
componentDidMount() { | |
axios.get("https://jsonplaceholder.typicode.com/users/1") | |
.then(response => { | |
console.log(response.data) |
This file contains hidden or 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
//-- stack ----------- | |
let stackArr = []; | |
stackArr.push(2); // [2] | |
stackArr.push(5); // [2, 5] | |
let item = stackArr.pop(); // stackArr is now [2] // | |
console.log(item); // displays 5 | |
//-- queue ----------- | |
let queueArr = []; |