Tutorial by Examples: app

<script src="https://apis.google.com/js/api.js"></script> <script> function start() { // 2. Initialize the JavaScript client library. gapi.client.init({ 'apiKey': 'YOUR_API_KEY', // clientId and scope are optional if auth is not required. 'clientId': 'YOUR_WEB_CL...
Follow following steps to try out a sample application on AWS ECS service as a proof of concept. Login to AWS management console and go to AWS service catalog - > Compute - > Ec2 Create a VM(EC2 instance) using amazon linux 64 bit OS, this we will use to configure docker, git, AWS ECS agen...
Online demo is here: http://ext4all.com/post/extjs-4-mvc-application-architecture.html Define a model: // /scripts/app/model/User.js Ext.define('AM.model.User', { extend: 'Ext.data.Model', fields: ['id', 'name', 'email'] }); Define a store with proxy: // /scripts/app/store/Users.js...
Paste this snippet somewhere in the http {} Block; or place it in it's own file in the /etc/nginx/conf.d/ folder. Also see the official docs for logging to syslog. # # Access Log # log_format fmt_syslog '[$time_local] $status $remote_addr $http_host "$request" $body_bytes_sent $reque...
The create-* commands in Grails automatically create unit or integration tests for you within the src/test/groovy directory. It is of course up to you to populate these tests with valid test logic, information on which can be found in the section on Unit and integration tests. To execute tests you ...
If you prefer to keep the declaration of the URL mapping in your UrlMappings.groovy file then simply removing the uri attribute of the Resource transformation and adding the following line to UrlMappings.groovy will suffice: "/books"(resources:"book") Extending your API to in...
Requirements: NodeJS : Download page npm or yarn Run the following commands with cmd from new directory folder: npm install -g @angular/cli or yarn global add @angular/cli ng new PROJECT_NAME cd PROJECT_NAME ng serve Open your browser at localhost:4200
Open the project folder in VScode. Sample here i am setting break point in home controller. Now click the debug option. add debug configuration like below. Make sure .Net core Launch(web) is selected. You can see break point will hit , once you start debugging by press run icon. Then gi...
Create an F# console application. Change the Output type of the application to Windows Application. Add the FsXaml NuGet package. Add these four source files, in the order listed here. MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" ...
Create a text file named AppIcon.rc, with the following content. 1 ICON "AppIcon.ico" You will need an icon file named AppIcon.ico for this to work, but of course you can adjust the names to your liking. Run the following command. "C:\Program Files (x86)\Windows Kits\10\bin\x64\...
Windows AppBuilder In the Windows Appbuilder the Application Compiler is found in the Tools Menu. Procedure Editor (Linux - pro or Windows pro.exe In the Procedure Editor (both Linux and Windows) the Compiler if found in the Tools menu. Application Compiler Regardless of OS the function...
Using XHTML you should avoid methods such as document.write and innerHTML as they treat XML as text and do not properly serialize code; an id attribute in HTML is essentially dumped in to the DOM and the id attribute is not serialized which means when trying to reference to it with something such as...
In some cases, a C function accepts a function pointer. As avid ctypes users, we would like to use those functions, and even pass python function as arguments. Let's define a function: >>> def max(x, y): return x if x >= y else y Now, that function takes two arguments and r...
public class Program { public static void Main(string[] args) { Console.WriteLine("\nWhat is your name? "); var name = Console.ReadLine(); var date = DateTime.Now; Console.WriteLine("\nHello, {0}, on {1:d} at {1:t}", name, date); ...
#include <string.h> #include <gst/gst.h> #include <gst/app/gstappsrc.h> /* * an example application of using appsrc in push mode to create a file. * from buffers we push into the pipeline. */ /* S16LE 10ms frame audio */ #define BUFFER_SIZE 160 /* 300 frames =...
This is a variation on the generic example. You just need to import your app script and invoke it's run() method in the service's main() function. In this case we're also using the multiprocessing module due to an issue accessing WSGIRequestHandler. import win32serviceutil import win32service imp...
This is my FirebaseMessagingService public class MyFirebaseMessagingService extends FirebaseMessagingService { Bitmap bitmap; @Override public void onMessageReceived(RemoteMessage remoteMessage) { String message = remoteMessage.getData().get("message"); //imageUri will ...
Append one file to another. Status is checked in OS-ERROR OS-APPEND source target Appends targetfile.txt with sourcefile.txt: OS-APPEND VALUE("sourcefile.txt") VALUE("targetfile.txt").
# Getting started First, let’s generate a new Ruby on Rails application: rails new ModularTodo The next step is to generate an engine! cd ModularTodo && rails plugin new todo --mountable We will also create an ‘engines’ folder to store the engines (even if we just have one!). mk...
g + geom_bar(mapping = aes(x = cut, fill = clarity), position = "dodge") + theme(axis.text = element_text(colour = "red", size = 12))

Page 26 of 33