Skip to content

Instantly share code, notes, and snippets.

@shahriarhossain
shahriarhossain / gist:0946ffc6938d59ca358f
Last active September 11, 2015 14:07
Smooth Scrolling to specific location
//html
//Bookmark
<a href="" class="scrollToActive">Active <br /> Cases
<span class="glyphicon glyphicon-download" aria-hidden="true"></span>
</a>
//<<Body>>where You want to scroll
<div class="col-md-12 col-sm-12 col-xs-12 text-center">
<h4 runat="server" ClientIDMode="Static" id="detailsHeadingId" >
<asp:Literal runat="server" ID="ltrDetailsHeading"></asp:Literal></h4>
@shahriarhossain
shahriarhossain / gist:35bf8542103b01dfddb5
Last active September 15, 2015 10:38
Show specific keyboard at mobile(iPhone) on textbox focus
//Number keyboard show
<input type="number" min="0" inputmode="numeric" pattern="[0-9]*" title="Non-negative integral number">
or
<input type="tel" class="form-control" name="phone" id="phoneInput" placeholder="(000) 000-0000" required/>
//URL specifc keyboard
<input type="url" /><br />
//Email specifc keyboard
<input type="email" /><br />
<system.webServer>
<security>
<requestFiltering removeServerHeader="true"/>
</security>
</system.webServer>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
</system.webServer>
<system.web>
<httpRuntime enableVersionHeader="false"/>
</system.web>
//code extracted
<ipSecurity allowUnlisted="true">
<add ipAddress="123.200.0.0" subnetMask="255.255.0.0" allowed="true" />
</ipSecurity>
//code extracted
<ipSecurity allowUnlisted="false" denyAction="Unauthorized">
//code extracted
<ipSecurity enableReverseDns="true" allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
<add domainName="learnwithshahriar.wordpress.com" allowed="true" />
</ipSecurity>
<system.webServer>
<security>
<ipSecurity allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
</ipSecurity>
<dynamicIpSecurity>
<denyByRequestRate enabled="true" maxRequests="15" requestIntervalInMilliseconds="5000"/>
</dynamicIpSecurity>
</security>
</system.webServer>
var settings = new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
Converters = new List<JsonConverter>
{
new IsoDateTimeConverter()
{
DateTimeFormat= "yyyy-MM-dd HH:mm:ss"
}