Tutorial by Examples: l

What Are Notification Channels? Notification channels enable us app developers to group our notifications into groups—channels—with the user having the ability to modify notification settings for the entire channel at once. For example, for each channel, users can completely block all notifications...
Public: public val name = "Avijit" Private: private val name = "Avijit" Protected: protected val name = "Avijit" Internal: internal val name = "Avijit"
The following permissions are required to use the Bluetooth APIs: android.permission.BLUETOOTH android.permission.BLUETOOTH_ADMIN If you're targeting devices with Android 6.0 (API Level 23) or higher and want to perform scanning/advertising operations you will require a Location permission: a...
You can use Bluetooth LE Advertising to broadcast data packages to all nearby devices without having to establish a connection first. Bear in mind that there's a strict limit of 31 bytes of advertisement data. Advertising your device is also the first step towards letting other users connect to you....
from requests import post foo = post('http://httpbin.org/post', data = {'key':'value'}) Will perform a simple HTTP POST operation. Posted data can be inmost formats, however key value pairs are most prevalent. Headers Headers can be viewed: print(foo.headers) An example response: {'Cont...
An entity is the information that your bot extracts from a particular utterance conforming to an intent. Eg- Let My name is John Doe belong to an intent called introduction. For your bot to understand and extract the name John Doe from the sentence, you need to define an entity which does so. You c...
Detailed instructions on getting angularjs-ng-repeat set up or installed.
The installation is quite simple as there are seperate installers for MacOS and Windows machines available here. Currently two versions are for download: one beta and one stable. Setup will start after you downloaded the program and you´ll need to login with your GitHub credentials. That is really ...
As it is with GitHub Desktop most of the work is pretty simple: You select "Clone a repository" (In the stable version the plus on the upper left) and there are some repositories (your own and the repos from each company you are in) recommended. Alternatively you can paste a link to any ot...
Pull (Sync) Like in the command line you need to pull the current state of the repository once in a while. In GitHub Desktop this process is called by the sync Button at the top right corner. Push When you made local changes and want to push them you make a commit by writing something into the su...
Install the dependencies: pip install jinja2 Install a framework: pip install flask Create the following structure ├── run.py └── templates Put a file template.html in the templates directory. The file can contain a jinja 2 variable named my_string. <!DOCTYPE html> <html lang=&qu...
Each section can can contain JavaScript and Stylesheets, these two languages are used within liquid tags: {% javascript %}{% endjavascript %} & {% stylesheet %}{% endstylesheet %}. When placing code inside of these two tags, Shopify compiles each piece into shopify_compiled.js & shopify_com...
With the Requests module,its is only necessary to provide a file handle as opposed to the contents retrieved with .read(): from requests import post files = {'file' : open('data.txt', 'rb')} foo = post('http://http.org/post', files=files) Filename, content_type and headers can also be set:...
Purpose of the project: Download particular file based on message id sent as a request from client to server. File will be created on server and transmitted to client. Here, I haven't share the whole code but shown what is necessary as the purpose is to demonstrate the changes required for migratio...
Detailed instructions on getting jupyter-notebook set up or installed.
import nltk from nltk.tokenize import sent_tokenize, word_tokenize text = 'We saw the yellow dog' word = word_tokenize(text) tag1 = nltk.pos_tag(word) print(tag1)
Firstly, we created a voter: namespace BBIT\CoreBundle\Security\Authorization\Voter; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; class EventVoter implements VoterInterface { const VIE...
Create a new C# script in Unity and replace it's contents with the following using UnityEngine; using System.Collections; public static class UnityAndroidPlugin { }
Create a new C# script in Unity and paste these contents using UnityEngine; using System.Collections; public class UnityAndroidPluginGUI : MonoBehaviour { void OnGUI () { } }
This section will contain some of the most advanced examples realized using Multithreading. Advanced printer (logger) A thread that prints everything is received and modifies the output according to the terminal width. The nice part is that also the "already written" output is modified w...

Page 809 of 861