Tutorial by Examples: bac

Shelves do not track modifications to volatile objects, by default. That means if you change the contents of an item stored in the shelf, you must update the shelf explicitly by storing the item again. import shelve s = shelve.open('test_shelf.db') try: print s['key1'] s['key1']['new_...
function REReplaceCallback(re,str,callback) { /* Thanks to Ben Nadel "Learning ColdFusion 8: REMatch() For Regular Expression Matching" from 2007-06-13 https://www.bennadel.com/blog/769-learning-coldfusion-8-rematch-for-regular-expression-matching.h...
REReplaceCallback('YOUR REGEX GOES HERE','AND YOUR STRING HERE',function(groups) { //now you can access the 'groups' array containing all the captured groups return result; //return whatever you've processed inside });
<cfcomponent displayname="myAPI" output="false"> <cffunction name="init" access="public" output="no"> <!--- do some basic stuff ---> <cfreturn this> </cffunction> <cffunction name=&q...
This example will show you back navigation which is expected generally in most of the flows. You will have to add following code to every screen depending on expected behavior. There are 2 cases: If there are more than 1 screen on stack, device back button will show previous screen. If there is ...
Using arrow function as callback function can reduce lines of code. The default syntax for arrow function is () => {} This can be used as callbacks For example if we want to print all elements in an array [1,2,3,4,5] without arrow function, the code will look like this [1,2,3,4,5].forEach...

Page 12 of 12