Skip to content

Instantly share code, notes, and snippets.

View Question ld+json
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage","mainEntity": [
{"@type": "Question",
"name": "زمان دقیق اعلام نتایج کنکور سراسری چه زمانی است ؟
",
"acceptedAnswer": {
"@type": "Answer",
"text": "</p>
View max_result_window
curl -XPUT '/fess.20190727/_settings' -d '{
"index": {
"max_result_window": 50000
}
}'
View csstool.css
.no-border {
border: 0 !important;
}
.no-padding {
padding: 0 !important;
}
.no-margin {
margin: 0 !important;
View clipboard js
@caifagithub I use hint.css and some javascript:
clipboard.on('success', event => {
if (event.text) {
showTooltip(event.trigger, 'copied!');
}
});
showTooltip(elem, msg) {
var classNames = elem.className;
elem.setAttribute('class', classNames + ' hint--right');
@MajidSafari
MajidSafari / gist:5b80729a885a190fe2f40093ca64ec59
Created May 7, 2018
Updating-Assembly-Redirects-with-NuGet
View gist:5b80729a885a190fe2f40093ca64ec59
Get-Project –All | Add-BindingRedirect
@MajidSafari
MajidSafari / gist:6c3e196ea636c61066c767baa75b9138
Created Jan 7, 2018
MapPageRoute Breaks ActionLinks in Integrated MVC/WebForms App
View gist:6c3e196ea636c61066c767baa75b9138
routes.MapPageRoute("WebForms", "", "~/WebForms/Default.aspx", false, null, new RouteValueDictionary(new { controller = new IncomingRequestConstraint() }));
public class IncomingRequestConstraint : IRouteConstraint
{
public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
{
return routeDirection == RouteDirection.IncomingRequest;
}
@MajidSafari
MajidSafari / Active Windows
Created Nov 21, 2017
فعال سازی ویندوز
View Active Windows
توجه: برای فعال سازی این ویندوز می تونید از سرور kms ما استفاده کنید. برای این کار Command Prompt رو در حالت Elevated Privilege اجرا کنید (همون حالتی که با استفاده از کلیک راست و run as administrator بوجود میاد). بعد دستور زیر رو برای استفاده از سرور kms ما بزنید:
slmgr /skms kms.digiboy.ir
slmgr /ato
View gist:29d98d9d7ec680add5380f5e0e702839
fess.201707091711/_settings
{
"max_result_window": 50000
}
View recaptcha
string EncodedResponse = Request.Form["g-Recaptcha-Response"];
bool IsCaptchaValid = (ReCaptchaClass.Validate(EncodedResponse) == "True" ? true : false);
if (IsCaptchaValid) {
//Valid Request
}