Wrapping console.log (et al.) in your own function to modify logging behavior.
You may want a simple way to:
| Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) | |
| ' Auto BCC the specified recipient on all sent emails. See "settings" below | |
| ' | |
| ' From "How to Automatically BCC in Outlook 2010" by Jack Bush, Nov. 2010 | |
| ' <http://www.groovypost.com/howto/microsoft/how-to-automatically-bcc-in-outlook-2010/> | |
| Dim objRecip As Recipient | |
| Dim strMsg As String | |
| Dim res As Integer | |
| Dim BCC_ADDR As String |
| /** JavaScript Module Pattern Example with "Passive Attachment" | |
| */ | |
| (function( | |
| win, | |
| doc, | |
| $, | |
| a, | |
| b | |
| ){ | |
| // "Passively attach" your new module to global through your namespace, |
Set server-side variables in your JSP template via a js:clientStore custom tag for consumption by the JavaScript:
<%-- Arbitrary JSP variables --%>
<c:set var="a" val="1" />
<c:set var="b" val="2" />
<c:set var="c" val="3" />
<%-- Store the "a" and "b" JSP variables under "my.namespace" --%>
<js:clientStore Somewhere on the page...
/** Extend a JSON object in localStorage, as oppose to overwriting it.
*/
var localStoreExtend = function(namespace, jsonObj){
// Grab existing JSON object
var existingObj = JSON.parse(localStorage.getItem(namespace));
| /** Root LESS file for the page where component styles are imported. | |
| */ | |
| // Import components LESS file | |
| @import "component" | |
| // Include component style as a mixin which CAN be included outside of a directive block | |
| .component( 'blue'; 10px ); |
| test body |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| if [ "$SEARCH_RESULT" != "" ]; then | |
| echo " _ " | |
| echo " / \ ___________________________________________ " | |
| echo " | | / \ " | |
| echo " @ @ | It looks like you are trying to | " | |
| echo " || |/ | destroy the original repository! | " | |
| echo " || || <--| Please create a fork, and try again. | " | |
| echo " |\_/| | (And read the README while you're at it.) | " | |
| echo " \___/ \___________________________________________/ " |
| /** Example module that supports CommonJS and IFFE modularity | |
| * | |
| * - CommonJS modules can be imported via `require` | |
| * - IFFE modules attach themselves to the browser's window object | |
| */ | |
| ;( function ( factory ) { | |
| // If the environment supports CommonJS modules, attach module to `module.exports` | |
| if ( typeof require === 'function' && typeof exports === 'object' && typeof module === 'object' ) { | |
| var target = module.exports || exports; |