- 1
private static readonly Dictionary<FloorCeilingSortOptions, Func<IOrderedEnumerable<FloorCeilingSystemPage>, Func<FloorCeilingSystemPage, int>, IOrderedEnumerable<FloorCeilingSystemPage>>> DefaultSortOrder
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
Всего: 7
+134
private static readonly Dictionary<FloorCeilingSortOptions, Func<IOrderedEnumerable<FloorCeilingSystemPage>, Func<FloorCeilingSystemPage, int>, IOrderedEnumerable<FloorCeilingSystemPage>>> DefaultSortOrder
+93
function det5(var a:atab):double;
{FUNKCIYA VYCHISLYAET OPREDELITEL MATRITSY 5-go PORYADKA a}
begin
det5:=
+a[1,1]*a[2,2]*a[3,3]*a[4,4]*a[5,5]-a[1,2]*a[2,1]*a[3,3]*a[4,4]*a[5,5]
+a[1,3]*a[2,1]*a[3,2]*a[4,4]*a[5,5]-a[1,1]*a[2,3]*a[3,2]*a[4,4]*a[5,5]
-a[1,3]*a[2,2]*a[3,1]*a[4,4]*a[5,5]+a[1,2]*a[2,3]*a[3,1]*a[4,4]*a[5,5]
-a[1,4]*a[2,1]*a[3,2]*a[4,3]*a[5,5]+a[1,1]*a[2,4]*a[3,2]*a[4,3]*a[5,5]
-a[1,1]*a[2,2]*a[3,4]*a[4,3]*a[5,5]+a[1,4]*a[2,2]*a[3,1]*a[4,3]*a[5,5]
-a[1,2]*a[2,4]*a[3,1]*a[4,3]*a[5,5]+a[1,2]*a[2,1]*a[3,4]*a[4,3]*a[5,5]
-a[1,4]*a[2,3]*a[3,1]*a[4,2]*a[5,5]+a[1,3]*a[2,4]*a[3,1]*a[4,2]*a[5,5]
.............................................
end;
http://bbi-math.narod.ru/rosenbrock/rosenbrock.html
+131
private bool IsChanged(string name, string surname, string patronymic, string email, bool? sex = null, byte[] avatar = null, DateTime? birthDate = null, string address = null)
{
bool r1 = sex == null ^ Sex == null ? true : (sex != null ? sex.Value != Sex.Value : true);
bool r2 = birthDate == null ^ BirthDate == null ? true : (birthDate != null ? birthDate.Value != BirthDate.Value : true);
bool r3 = address == null ^ Address == null ? true : Address != address;
bool r4 = avatar == null ^ Avatar == null ? true : (avatar != null ? !Avatar.IsEqual(avatar) : true);
bool r = Name != name || Surname != surname || Patronymic != patronymic || Email != email;
return r | r1 | r2 | r3 | r4;
}
+128
return Mouse.GetState().LeftButton == ButtonState.Pressed ? _manager.Creatures.Where(el => el.Rectangle.Intersects(new Rectangle(Mouse.GetState().X, Mouse.GetState().Y, 2, 2))).FirstOrDefault() : null;
+146
char* a(int pos, char* path)
{
FILE *dbf;
char value;
int i,j,k,l,m,n,o,p,r;
int numrecs, recnum;
Record rec;
char aa[158];
char *pp;
int ln, lp, lc, le, lw, li, ls, lph, lf;
numrecs = rec.length;
recnum = pos;
dbf = OpenDB(path, &rec);
ReadRecord(dbf, recnum, &rec);
ln = strlen(rec.name);
ls = strlen(rec.surname);
lp = strlen(rec.patronymic);
lph = strlen(rec.phone);
lc = strlen(rec.city);
le = strlen(rec.edu);
lw = strlen(rec.work);
li = strlen(rec.interests);
lf = strlen(rec.friends);
itoa(recnum, &(aa[0]), 10);
for (i = 1; i < ln; i++)
aa[i] = rec.name[i-1];
for (j = 0; j < ls; j++)
aa[i+j] = rec.surname[j];
for (k = 0; k < lp; k++)
aa[i+j+k] = rec.patronymic[k];
for (l = 0; l < lph; l++)
aa[i+j+k+l] = rec.phone[l];
for (m = 0; m < lc; m++)
aa[i+j+k+l+m] = rec.city[m];
for (n = 0; n < le; n++)
aa[i+j+k+l+m+n] = rec.edu[n];
for (o = 0; o < lw; o++)
aa[i+j+k+l+m+n+o] = rec.work[o];
for (p = 0; p < li; p++)
aa[i+j+k+l+m+n+o+p] = rec.interests[p];
for (r = 0; r < lf; r++)
aa[i+j+k+l+m+n+o+p+r] = rec.friends[r];
pp = strdup(aa);
return pp;
}
+119
foreach (var list in Distances.ConvertToList())
{
dt.Rows.Add(ConvertToObject(list.ToArray()));
}
+122
var rl2 = _vf.AddNewRouteLine(BusStation.Instance.GetRoute(
BusStation.Instance.FindSettlement(БарановичиcheckBox6.Content.ToString()),
BusStation.Instance.FindSettlement(БобруйскcheckBox17.Content.ToString()))[0],
БарановичиcheckBox6, БобруйскcheckBox17, Upd);
canvas1.Children.Add(rl2.Line);