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
html: | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script> | |
<div ng-app="app" ng-controller="mainController"> | |
Selected place: {{selectedPlace}} <br/> | |
<input ng-model="selectedPlace" googleplace/> | |
</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
public abstract class BaseRepository<T> where T : class | |
{ | |
private DbContext _context; | |
protected DbContext Context | |
{ | |
get { return _context ?? (_context = DatabaseFactory.Get()); } | |
} | |
private readonly IDbSet<T> _dbSet; | |
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 interface IDatabaseFactory | |
{ | |
HIDSDbContext Get(); | |
} | |
public class DatabaseFactory : IDisposable, IDatabaseFactory | |
{ | |
private DbContext _context; | |
public DbContext Get() | |
{ | |
return _context ?? (_context = new DbContext()); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace FindWebLinks | |
{ | |
public class Program |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="colorPrimary">#00BCD4</color> | |
<color name="colorPrimaryDark">#0097A7</color> | |
<color name="colorPrimaryLight">#B2EBF2</color> | |
<color name="colorAccent">#FF5722</color> | |
<color name="colorPrimaryText">#212121</color> | |
<color name="colorSecondaryText">#757575</color> | |
<color name="colorIcons">#FFFFFF</color> | |
<color name="colorDivider">#BDBDBD</color> |
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
/// <summary> | |
/// 11 haneli bir rakamdır. | |
/// 0'la başlayamaz. | |
/// ilk 10 rakamın toplamının birler basamağı, son rakama eşittir | |
/// | |
/// Vikipedi: | |
/// 1, 3, 5, 7 ve 9. rakamın toplamının 7 katı ile 2, 4, 6 ve 8. rakamın toplamının 9 katının toplamının birler basamağı 10. rakamı; | |
/// 1, 3, 5, 7 ve 9. rakamın toplamının 8 katının birler basamağı 11. rakamı vermektedir. | |
/// | |
/// Programatik olarak düşünürsek, ilk rakam 0. index olduğuna göre: |
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 class HotelRecyclerVİewAdapter extends RecyclerView.Adapter<HotelRecyclerVİewAdapter.CustomViewHolder> { | |
private List<Hotel> mHotelList; | |
private Context mContext; | |
private OnItemClickListener onItemClickListener; | |
public HotelRecyclerVİewAdapter(Context context, List<Hotel> list, OnItemClickListener onItemClickListener) { | |
this.mContext = context; | |
this.mHotelList = list; |
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
AttributeMask - Column number of attribute from either Attribute table or from MetadataSchema.Attribute | |
CRM stores all attributes changed in single transaction in a string format concatenate by , | |
Attribute mask column | |
SELECT ar.name, | |
ar.ColumnNumber | |
FROM MetadataSchema.Attribute ar INNER JOIN | |
MetadataSchema.Entity en ON ar.EntityId = en.EntityId |
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
https://api.github.com/search/repositories?q=stars:>1000&sort=stars |
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
SELECT DISTINCT | |
o.name AS Object_Name, | |
o.type_desc | |
FROM sys.sql_modules m | |
INNER JOIN | |
sys.objects o | |
ON m.object_id = o.object_id | |
WHERE m.definition Like '%your keyword here%'; | |
---------------------------------------------- |