This file contains 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 IQueryable<T> FindBy(Expression<Func<T, bool>> predicate, params Expression<Func<T, object>>[] includes) | |
{ | |
var query = GetAll().Where(predicate); | |
return includes.Aggregate(query, (current, includeProperty) => current.Include(includeProperty)); | |
} | |
// Sample usage | |
userRepository.FindBy(x => x.Username == username, x.Roles) |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
import re | |
import shutil | |
import argparse | |
import binascii | |
# | |
# Author: Daxda |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <winsock.h> | |
#include <wininet.h> | |
#include <shellapi.h> | |
#include <mmsystem.h> | |
typedef struct vs { | |
char host[128]; |
This file contains 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
// simple example, can of course be simplified using a ioc wrapper. | |
public void Button1_Clicked(object source, EventArgs empty) | |
{ | |
using (var scope = Program.Autofac.BeginLifetimeScope()) | |
{ | |
var uow = scope.Resolve<IUnitOfWork>(); | |
var repos = scope.Resolve<IUserRepository>(); | |
var user = repos.GetUser(1); | |
user.LastName = txtLastName.Text; |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
This file contains 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
Category were the 30 under 30 person was selected,Forbes Name,Forbes Age,Forbes Country,Role in the Company,Company,Description,LinkedIn Profile,linkedin_name,Exact match between the name ?,Did I had o perform a manual searh to find the linkedin profile ? | |
30 Under 30 - Europe - Social Entrepreneurs,Margherita Pagani,29,Argentina,Founder, Impacton.org,"Pagani aims to create an encyclopedia of blueprints for of purpose-driven projects for impact investing. The Italian-born and Argentina-based entrepreneur believes works with universities, governments and private companies to co-design programs based on proven models.",https://www.linkedin.com/in/magheritapagani,Margherita Pagani - CEO and Founder - Impacton.org ,FALSE,NO | |
30 Under 30 - Europe - Media & Marketing,Mohamed Khairat,25,Australia,Cofounders, Egyptian Streets,"Amin and Khairat founded Egyptian Streets back in 2012, less than two years after the Arab Spring. The digital publication that strives to address challenging issues--such as sexual harassment an |
This file contains 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
Namespace ProjectWithSwagger | |
{ | |
public class Startup | |
{ | |
// This method gets called by the runtime. Use this method to add services to the container | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
//.... | |
services.ConfigureSwaggerGen(swaggerGen => | |
{ |
This file contains 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
private void SetCanvas(UIElement image, Point point, bool allowkill) | |
{ | |
Dispatcher.BeginInvoke( | |
new Action( | |
delegate | |
{ | |
Canvas.SetTop(image, point.Y - (finger.ActualHeight/2)); | |
Canvas.SetLeft(image, point.X - (finger.ActualWidth/2)); | |
if (allowkill) |
This file contains 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 {MatDialogModule} from "@angular/material"; | |
@NgModule({ | |
declarations: [ | |
... | |
CourseDialogComponent | |
], | |
imports: [ | |
... |
This file contains 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
appcmd.exe list site /xml | appcmd delete site /in |
This file contains 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
<form action="https://secure.pay1.de/client-api/" method="POST"> | |
<input type="hidden" name="portalid" value="2000000"> | |
<input type="hidden" name="aid" value="10000"> | |
<input type="hidden" name="mode" value="test"> | |
<input type="hidden" name="request" value="bankaccountcheck"> | |
<input type="hidden" name="successurl" value="http://www.yoursite.com/success.php"> | |
<input type="hidden" name="errorurl" value="http://www.yoursite.com/error.php"> | |
<input type="hidden" name="hash" value="70eaec2a33fa1b4674c0b1ge5e982966"> | |
<input type="hidden" name="responsetype" value="REDIRECT"> | |
<input type="hidden" name="language" value="en"> |