Tutorial by Examples: l

sound = pyglet.media.load(sound.wav) sound.play()
Grammar Example (Expr.g4) grammar Expr; prog: (expr NEWLINE)* ; expr: expr ('*'|'/') expr | expr ('+'|'-') expr | INT | '(' expr ')' ; NEWLINE : [\r\n]+ ; INT : [0-9]+ ; Generating the visitor To generate a Visitor, or to disable a visitor for your ...
We can statically bootstrap an application by taking the plain ES5 Javascript output of the generated factory classes. Then we can use that output to bootstrap the application: import { platformBrowser } from '@angular/platform-browser'; import { AppModuleNgFactory } from './main.ngfactory'; //...
<!DOCTYPE html> <html> <head> <base target="_top"> <script> setInterval( function () { document.getElementById('messages').innerHTML = 'Event Timer Fetching'; google.script.run .withSuccessHandler(onS...
#Add the ActiveDirectory Module to current PowerShell Session Import-Module ActiveDirectory
instance methods use an instance of a class. @interface MyTestClass : NSObject - (void)testInstanceMethod; @end They could then be used like so: MyTestClass *object = [[MyTestClass alloc] init]; [object testInstanceMethod]; Class method can be used with just the class name. @inte...
This is a sample Fastfile setup for a multi-flavor app. It gives you an option to build and deploy all flavors or a single flavor. After the deployment, it reports to Slack the status of the deployment, and sends a notification to testers in Beta by Crashlytics testers group. To build and deploy al...
Sublime Terminal. Terminal allows use to open your favourite terminal right at the current file or project location you are currently working on in Sublime Text, with handy keyboard shortcuts. It is available through Package Control. SideBar Enhancements. This plugin adds additional functio...
For querying all the data from table MachineName we can use the command like below one. $Query="Select * from MachineName" $Inst="ServerInstance" $DbName="DatabaseName $UID="User ID" $Password="Password" Invoke-Sqlcmd2 -Serverinstance $Inst -Databa...
For querying all the data from table MachineName we can use the command like below one. $Query="Select * from MachineName" $Inst="ServerInstance" $DbName="DatabaseName $UID="User ID" $Password="Password" Invoke-Sqlcmd2 -Serverinstance $Inst -Databa...
Detailed instructions on getting vert.x set up or installed.
//fill column A with solid red color from hex worksheet.Column(1).Style.Fill.PatternType = ExcelFillStyle.Solid; worksheet.Column(1).Style.Fill.BackgroundColor.SetColor(ColorTranslator.FromHtml("#FF0000")); //fill row 4 with striped orange background worksheet.Row(4).Style.Fill.Patte...
//make the borders of cell F6 thick worksheet.Cells[6, 6].Style.Border.Top.Style = ExcelBorderStyle.Thick; worksheet.Cells[6, 6].Style.Border.Right.Style = ExcelBorderStyle.Thick; worksheet.Cells[6, 6].Style.Border.Bottom.Style = ExcelBorderStyle.Thick; worksheet.Cells[6, 6].Style.Border.Left.St...
//set the font type for cells C1 - C30 worksheet.Cells["C1:C30"].Style.Font.Size = 13; worksheet.Cells["C1:C30"].Style.Font.Name = "Calibri"; worksheet.Cells["C1:C30"].Style.Font.Bold = true; worksheet.Cells["C1:C30"].Style.Font.Color.SetColor(Co...
//make column H wider and set the text align to the top and right worksheet.Column(8).Width = 25; worksheet.Column(8).Style.HorizontalAlignment = ExcelHorizontalAlignment.Right; worksheet.Column(8).Style.VerticalAlignment = ExcelVerticalAlignment.Top; //wrap text in the cells worksheet.Column...
//Make all text fit the cells worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns(); //Autofit with minimum size for the column. double minimumSize = 10; worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns(minimumSize); //Autofit with minimum and maximum size for the c...
//create a new ExcelPackage using (ExcelPackage excelPackage = new ExcelPackage()) { //create the WorkSheet ExcelWorksheet worksheet = excelPackage.Workbook.Worksheets.Add("Sheet 1"); //add some dummy data, note that row and column indexes start at 1 for (int i = 1;...
Hazelcast runs inside a Java Virtual Machine (JVM). It is compatible with Java versions 1.6.x, 1.7.x, and 1.8.x. Installation and setup is as simple as downloading the zip (or tar) archive, copying the uncompressed directory to a desired installation directory, and adding the jar to your Java clas...
This example illustrates the basics of executing sections of code in parallel. As OpenMP is a built-in compiler feature, it works on any supported compilers without including any libraries. You may wish to include omp.h if you want to use any of the openMP API features. Sample Code std::cout <...
This example shows how to execute chunks of code in parallel std::cout << "begin "; // Start of parallel sections #pragma omp parallel sections { // Execute these sections in parallel #pragma omp section { ... do something ... std::cout <...

Page 675 of 861