Tutorial by Examples: l

On the server: var express = require('express'); var socketio = require('socket.io'); var app = express(); var server = http.createServer(app); var io = socketio(server); io.on('connect', function (socket) { socket.on('userConnected', socket.join); socket.on('userDisconnected', socke...
These are my VirtualBox settings: OS Type: Linux 2.6 (I've user 64bit because my computer can support it) Virtual hard drive size: 4Gb Ram Memory: 2048 Video Memory: 8M Sound device: Sound Blaster 16. Network device: PCnet-Fast III, attached to NAT. You can also use bridged adapter, but you...
Most kivy apps start with this structure: from kivy.app import App class TutorialApp(App): def build(self): return TutorialApp().run() There is several way to go from here : All the codes below (except example 1 and 3) have the same widget and similar features, but show diffe...
First, we create an empty map, and insert some elements into it: Java SE 7 TreeMap<Integer, String> treeMap = new TreeMap<>(); Java SE 7 TreeMap<Integer, String> treeMap = new TreeMap<Integer, String>(); treeMap.put(10, "ten"); treeMap.put(4, "fou...
First, we create an empty set, and insert some elements into it: Java SE 7 TreeSet<Integer> treeSet = new TreeSet<>(); Java SE 7 TreeSet<Integer> treeSet = new TreeSet<Integer>(); treeSet.add(10); treeSet.add(4); treeSet.add(1); treeSet.add(12); Once we hav...
import {Http} from '@angular/http'; @Injectable() export class StudentService{ constructor(public http: Http){} getAllStudents(): Observable<Students[]>{ return this.http.get('assets/students.json') .map(res => res.json().data) } } notice ...
OnInit: this is really amazing thing in ionic2 or we can say in AngularJs2. With the same above example we can see what is ngOnInit is. So you are ready with the service method, now in your view/page you want that student list data available as soon as your view is going to appear, this should be th...
export class HomePage implements OnInit { ... .... constructor(....){} ngOnInit(){ this._studentService.getAllStudents().subscribe( (students: Students[]) => this.students = students, )
Log into a Google Account and click New > More > Google Forms. Build the form fields required using the editor. If the form was built with an account that is part of an organisation then click on the cog and unselect the option that only members can complete the form. Set the form to save t...
This is done by adding a button, dialog box and iframe as explained below. The examples below use MDL for look and feel because it is used by Google forms and so it makes the additional elements look fairly seamless. Dialog boxes may require a polyfill if you plan to support older browsers.
<button id="googleFormButton" class="mdl-button mdl-js-button mdl-button--raised"> Load Form </button> <dialog id="googleFormsDialog" class="mdl-dialog"> <!-- <h4 class="mdl-dialog__title">Google Form</h4> -...
The value of GOOGLE-FORM-PREFILLED-URL should look something like this: https://docs.google.com/forms/.../?usp=pp_url&entry.1739003583=labelname1 jQuery('#googleFormButton').click(showGoogleForm) jQuery('#googleFormButton').attr('googleFormsURL', 'GOOGLE-FORM-PREFILLED-URL')
Add a new function called showGoogleForm and adapt the follow code to suit. Note for simplicity this example does not contain any error checking which should be added in a production environment. The url should look something like this: https://docs.google.com/forms/.../?usp=pp_url&entry.17391...
{ "id": 89, "name": "Aldous Huxley", "type": "Author", "books":[{ "name": "Brave New World", "date": 1932 }, { &q...
To work with Json using C#, it is need to use Newtonsoft (.net library). This library provides methods that allows the programmer serialize and deserialize objects and more. There is a tutorial if you want to know details about its methods and usages. If you use Visual Studio, go to Tools/Nuget P...
Before reading some code, it is important to undersand the main concepts that will help to program applications using json. Serialization: Process of converting a object into a stream of bytes that can be sent through applications. The following code can be serialized and converted into the previ...
static void Main(string[] args) { Book[] books = new Book[3]; Author author = new Author(89,"Aldous Huxley","Author",books); string objectDeserialized = JsonConvert.SerializeObject(author); //Converting author into json } The met...
You can receive a json from anywhere, a file or even a server so it is not included in the following code. static void Main(string[] args) { string jsonExample; // Has the previous json Author author = JsonConvert.DeserializeObject<Author>(jsonExample); } The method ".Dese...
Remove all conditional format in range: Range("A1:A10").FormatConditions.Delete Remove all conditional format in worksheet: Cells.FormatConditions.Delete
Highlighting Duplicate Values With Range("E1:E100").FormatConditions.AddUniqueValues .DupeUnique = xlDuplicate With .Font .Bold = True .ColorIndex = 3 End With End With Highlighting Unique Values With Range("E1:E100").FormatConditions.AddUniqueVa...

Page 800 of 861