من خیلی به جاوااسکریپت وارد نیستم اما همین کار شما رو برای تقویم گوگل انجام دادم اما دو تا مشکل داره:
1- سال میلادی رو نمی فهمه و باید برای هر سال میلادی بصورت دستی این اسکریپت رو تغییر داد.
2- فقط برای هفته ی جاری، هفته ی بعد و هفته ی قبل درست کار می کنه.
پیشنهاد می کنم یه نگاهی بهش بندازی و اصلاحش کنی. بدرد من یکی که خیلی می خوره.
http://nima.rasouli.org/2008/08/google-calendar-persian.html
روش های مقایسه اشیاء با null
Check | Code | Description |
Is Null | if(variable is null) return true; |
|
Is Not Null | if(variable is { }) return false |
|
Is Not Null | if(variable is object) return false |
|
Is Null | if(variable == null) return true |
|
Is Not Null | if(variable != null) return false |
|
وبلاگها و سایتهای ایرانی
- میز کاری مجازی در ویندوز ویستا (البته روی XP هم کار کرد)
ASP. Net
طراحی وب
به روز رسانیها
ابزارها
سیشارپ
عمومی دات نت
دلفی
ویندوز
متفرقه
- کدام سایتها مطالب شما را کپی کردهاند؟! (البته شبیه به این کار را با Google alerts هم میشود انجام داد. فقط کافی است آدرس سایت خودتان را در گوگل alert اضافه کنید. هر جایی لینکی به شما داده شود یا امثال آن، یک ایمیل آنی یا روزانه بسته به تنظیمات برای شما ارسال خواهد کرد.)
Not many are familiar with this awesome feature of dotnet core. Aspnet
team is actively maintaining a project named JavascriptServices
; Along with other packages, it includes the NodeServices
package. Using this package, one can easily create an instance of node
and execute JavaScript code (function) in the backend. If you think of it right now, you can see that it actually opens up a wide variety of development opportunities. By opportunities, I mean; the ASP.NET core project is trying hard to make its package eco-system (NuGet) rich but while doing it, why not get advantages of other package eco-system as well, right? When I talk about other than nuget package manager, the first name that comes to my mind is Npm
(node package manager). Npm
is the largest package manager out there on this very day and its growing rapidly. By using NodeServices
package, we can now use (not all of the npm
packages but) most of the npm
packages in our backend development. So, let me show you how to configure NodeServices
in your aspnet core project and use it to execute JavaScript code on the backend.