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
import React from 'react'; | |
import {DatePicker} from 'antd'; | |
import moment from 'moment-jalaali'; | |
export default function PersianDatePicker() { | |
var locale = { | |
"lang": { | |
locale: 'fa_IR', |
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
Error C2143 syntax error: missing ';' before ')' | |
Error C2143 syntax error: missing ';' before ')' | |
Error C2143 syntax error: missing ';' before ')' | |
Error C2143 syntax error: missing ';' before ')' | |
Error C2143 syntax error: missing ';' before ')' | |
Error C2143 syntax error: missing ';' before ')' | |
Error C2061 syntax error: identifier 'DelayedSpellCastEvent' | |
Error C2061 syntax error: identifier 'DelayedSpellCastEvent' |
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
public Size CalculateAspectRation(int desiredWidth, int desiredHeight, Image image){ | |
var widthScale = (double)desiredWidth / image.Width; | |
var heightScale = (double)desiredHeight / image.Height; | |
var scale = widthScale < heightScale ? widthScale : heightScale; | |
return new Size | |
{ | |
Width = (int)(scale * image.Width), | |
Height = (int)(scale * image.Height) |
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
var mainInfo = null; | |
$http.get('content.json').success(function(data) { | |
mainInfo = data; | |
}); |
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
function readTextFile(file, callback) { | |
var rawFile = new XMLHttpRequest(); | |
rawFile.overrideMimeType("application/json"); | |
rawFile.open("GET", file, true); | |
rawFile.onreadystatechange = function() { | |
if (rawFile.readyState === 4 && rawFile.status == "200") { | |
callback(rawFile.responseText); | |
} | |
} | |
rawFile.send(null); |
NewerOlder