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
(ls -filter "*.cs" -recurse | where { $_.PSIsContainer -eq $false -and (get-content($_.FullName)).Length -gt 1000 }).count |
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
(ls -filter "*.cs" -recurse | where { $_.PSIsContainer -eq $false -and (get-content($_.FullName)).Length -gt 1000 }).count |
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
var loadingUx = '<img src="<%=Url.Content("~/Images/ajax-loader.gif")%>" /> Loading'; | |
$("#my-button-id").click(function () { | |
// Add loading gif to let user know some kind of party is going on while they wait | |
$(this).hide(); | |
$(this).parent().append(loadingUx); // Button is in a div of its own | |
}); |
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
<html> | |
<head> | |
<link href="css/jquery-ui-1.8.custom.css" rel="stylesheet" type="text/css" /> | |
<script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script> | |
<script src="Scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script> | |
<script> |
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
List<int> userIds = (from item in _userRepository.Fetch() | |
where item.Name.Contains(search) | |
|| item.Role.Name.Contains(search) | |
select item.User.Id); | |
// Or | |
var stuff = _repository.Fetch(); | |
var result = stuff.Where(x => x.StuffId== someId && (x.StuffName == null || x.StuffType != null)); |
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 class Customer | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public int CustomerNumber { get; set; } | |
public bool IsAwesomeAtFishingForChickenHawks { get; set; } | |
} |
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
[core] | |
editor = notepad++.exe | |
whitespace = nowarn | |
[alias] | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
[user] | |
name = myname | |
email = [email protected] | |
[merge] | |
tool = diffmerge |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Principal; | |
using System.Text; | |
namespace Example.Core.Security | |
{ | |
public class ApiPrincipal : GenericPrincipal | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="#6a9938" | |
> | |
<TextView | |
android:layout_height="wrap_content" |
OlderNewer