Tutorial by Examples

Install the package: $ pip install pymssql import pymssql SERVER = "servername" USER = "username" PASSWORD = "password" DATABASE = "dbname" connection = pymssql.connect(server=SERVER, user=USER, password=PASSWORD, database=DATABASE...
Let's start with a simple algorithm to see how recursion could be implemented in Ruby. A bakery has products to sell. Products are in packs. It services orders in packs only. Packaging starts from the largest pack size and then the remaining quantities are filled by next pack sizes available. For ...
.prefer_dml 1 turn on dmlformat output .prefer_dml 0 turn off dmlformat output
Email clients use different rendering engines to render HTML emails: Apple Mail, Outlook for Mac, Android Mail and iOS Mail use WebKit Outlook 2000/02/03 use Internet Explorer 6 Outlook 2007/10/13 use Microsoft Word Web clients use their browser’s respective engine (e.g. Safari uses WebKit, Ch...
You can watch data property of any Vue instance. When watching a property, you trigger a method on change: export default { data () { return { watched: 'Hello World' } }, watch: { 'watched' () { console.log('The watched property ha...
XmlView: <mvc:View controllerName="sap.ui.demo.wt.controller.App" xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" displayBlock="true"> <App> <pages> <Page content="{path:'Tiles>/Tiles',fact...
DATA table-name; INFILE "file-path/file-name.csv" dsd; INPUT Name $ City $ Age; RUN;
InvocationExpression class allows invocation of other lambda expressions that are parts of the same Expression tree. You create them with static Expression.Invoke method. Problem We want to get on the items which have "car" in their description. We need to check it for null before searc...
Tables for Layout The structure of an HTML email file is similar to that of a web page: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Hello!</title> </head> <body> &...
The Content-Type meta tag is for telling the destination rendering engine how to process text and special characters. You should encode all special characters anyway (e.g., & becomes & for an ampersand) to be safe, but it’s worth keeping this line in there anyway. utf-8 works for most c...
The viewport meta tag tells a device to set the viewable area to the width of the device screen. It also sets the initial scale to normal (not zoomed in or out). <meta name="viewport" content="width=device-width"> or <meta name="viewport" content="wid...
The IE=Edge meta tag is for telling the destination rendering engine to use the latest (edge) version of IE rendering engine, which enables responsive behavior in Windows phones. <meta http-equiv="X-UA-Compatible" content="IE=edge"> Occasionally this breaks images in Li...
Apple iOS 10 Mail doesn't always auto-scale non-responsive emails. The auto-scale meta tag can be used to disable auto-scale feature in iOS 10 Mail entirely. <meta name="x-apple-disable-message-reformatting">
Most Rx operators take an optional scheduler on which to schedule their future iterations. If not supplied they will use their default configured scheduler. Supplying a scheduler can be useful for testing purposes in which we like to talk about virtual time instead of real time for speed of test exe...
Tuples are often used within collections but they must be handled in a specific way. For example, given the following list of tuples: scala> val l = List(1 -> 2, 2 -> 3, 3 -> 4) l: List[(Int, Int)] = List((1,2), (2,3), (3,4)) It may seem natural to add the elements together using im...
YAML supports three styles of escape notation: Entity Escapes a. space: " " b. colon: ":" c. ampersand: "&" Unicode Escapes a. space: "\u0020" b. single quote: "\u0027" c. double quote: "\u0022" ...
Use this to reset the table to the condition at which it was created. This deletes all rows and resets values such as auto-increment. It also doesn't log each individual row deletion. TRUNCATE TABLE Employees
Create a folder where you would like to have your game live, and move into that mkdir my-new-game cd my-new-game Initialize the directory using npm. npm init -y Install phaser as a node package. npm install phaser Install http-server as a global module, to be used on the...
First simple Example: You have a ticket automat which gives exchange in coins with values 1, 2, 5, 10 and 20. The dispension of the exchange can be seen as a series of coin drops until the right value is dispensed. We say a dispension is optimal when its coin count is minimal for its value. Let M ...

Page 1037 of 1336