This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- | |
In ASP.NET CODE | |
HttpCookie cookie = Request.Cookies["OldCookieName"]; | |
cookie.Values["CompanyID"] = Convert.ToString(CompanyId); | |
Response.SetCookie(cookie); //SetCookie is used for update the cookies. | |
Response.Cookie.Add(cookie); //This is used for Add cookies. | |
---- | |
In the page where you want to show the clock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Ping))) Sensor | |
This sketch reads a PING))) ultrasonic rangefinder and returns the | |
distance to the closest object in range. To do this, it sends a pulse | |
to the sensor to initiate a reading, then listens for a pulse | |
to return. The length of the returning pulse is proportional to | |
the distance of the object from the sensor. | |
The circuit: | |
* +V connection of the PING))) attached to +5V |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="width:80%;font-family:arial;padding:10px;background-color:#e2da9b;color:black;font-size:small;text-align:center;border:solid 2px #f00"> | |
This site will be down for scheduled maintenance between:</br></br> | |
Friday 04/15 9:00 PM and Saturday 04/16 7:00 AM | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hey!" | |
message: [NSString stringWithFormat:@" you clicked on '%@'", name] | |
delegate: nil cancelButtonTitle: @"OK" otherButtonTitles:nil]; | |
[alert show]; | |
[alert release]; |
NewerOlder