Setting of
ThingSpeak
1.
Create account in Think speak. And complete the
validation
2.
Create a new Channel in thingSpeak.
Then click on save channel. By default it
will show the empty chart as like below.
void setup()
{
}
void loop()
{
tone(8,33, 500);
delay(2000);
tone(8,37, 500);
delay(2000);
tone(8,41, 500);
delay(2000);
}
|
Echo %path%
|
setx path
"%path%;C:\Python27;"
|
Name
|
Age
|
Salary
|
Purchased
|
Bon
|
44
|
72000
|
No
|
Ram
|
27
|
48000
|
Yes
|
Sohan
|
30
|
54000
|
No
|
eric
|
38
|
61000
|
No
|
Mat
|
40
|
Yes
|
|
Denie
|
35
|
58000
|
Yes
|
Andie
|
52000
|
No
|
|
Rus
|
48
|
79000
|
Yes
|
Mak
|
50
|
83000
|
No
|
Mark
|
37
|
67000
|
Yes
|
Lab 1
|
User defined Exception
|
bb = 60 class C(Exception) : pass |
[assembly: OwinStartup(typeof(WebApiOAuth_1.App_Start.Startup))]
|
static void Main(string[] args)
{
try
{
string xml = @"<?xml
version='1.0' encoding='UTF - 8'
?><employees><employee><id>1</id><firstName>Leonardo</firstName>
<lastName>DiCaprio</lastName><photo>https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgr5EO4zbh_Vl_1W3Pxwo9ty6C7GZuDhME8KIVAXi0-PmFL-jRxzLS_mHhWjSwZARP2Uzq-ci7TvJR_3YO056bYOf1PBV7zS2TeNv8gYyt54xH8toD7vZu0kMKSVIijC4QEZy5rB0I8ujA/s200/Leonardo+Dicaprio7.jpg</photo>
</employee><employee><id>2</id><firstName>Johnny</firstName><lastName>Depp</lastName>
<photo>http://4.bp.blogspot.com/_xR71w9-qx9E/SrAz--pu0MI/AAAAAAAAC38/2ZP28rVEFKc/s200/johnny-depp-pirates.jpg</photo>
</employee><employee><id>3</id><firstName>Hritik</firstName><lastName>Roshan</lastName><photo>http://thewallmachine.com/files/1411921557.jpg</photo>
</employee></employees> ";
|
List<SelectListItem> items = new List<SelectListItem>();
items.Add(new SelectListItem() { Text = "Male", Value = "Male", Selected = false });
items.Add(new SelectListItem() { Text = "Female", Value = "Female", Selected = true });
SelectList selectList = new SelectList(items, "Value", "Text");
ViewBag.Gender = selectList;
|
@Html.DropDownList("Gender", ViewBag.Gender as SelectList)
|