Mistři v programování na #hovnokod

Ako zistit label...

private static string GetLabel(int today, int i)
        {
            if (today == i) {
                return "Today";
            }
            else if (today + 1 == i)
            {
                return "Tomorrow";
            }

            return "";
        }

Anonymous,


Anonymous,

Zkuste si zmenit heslo! Staci zadat do policka pass1 a potvrdit v pass2.

if(this.pass1.valid && this.pass2.valid && this.pass2.value == this.pass2.value){
  this.passEqual = false;
}
else{
  this.passEqual = false;
}

Anonymous,

        switch("journal_15736598") {
		case "journal_23798068":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19343663":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19388969":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19349262":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_25725637":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19343647":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19348533":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_25725602":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19342616":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_1934340x":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_21604762":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19483430":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19349300":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19348258":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_1934368x":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_21612617":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19348576":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19349289":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_19348290":
			var $DoubleClickSite = "wly.gn.life.sci_000061";
			break;
		case "journal_15518833":
			var $DoubleClickSite = "wly.civ.eng.con_000034";
			break;
		case "journal_25738461":
			var $DoubleClickSite = "wly.cell.m.bio_000030";
			break;
		case "journal_15372197":
			var $DoubleClickSite = "wly.plant.sci_000100";
			break;
		case "journal_18832148":
			var $DoubleClickSite = "wly.cardio.dis_000029";
			break;
		case "journal_21576580":
			var $DoubleClickSite = "wly.cell.m.bio_000030";
			break;
		case "journal_15494918":
			var $DoubleClickSite = "wly.cell.m.bio_000030";
			break;
		case "journal_24750360":
			var $DoubleClickSite = "wly.geriat.ed_000067";
			break;
		case "journal_18780369":
			var $DoubleClickSite = "wly.nursing_000088";
			break;
		case "journal_19412444":
			var $DoubleClickSite = "wly.nutrition_000089";
			break;
		case "journal_17582652":
			var $DoubleClickSite = "wly.inf.dis.mi_000072";
			break;
		case "journal_25721143":
			var $DoubleClickSite = "wly.sport.med_000112";
			break;
		case "journal_15518701":
			var $DoubleClickSite = "wly.civ.eng.con_000034";
			break;
		case "journal_14781239":
			var $DoubleClickSite = "wly.gastro.hep_000059";
			break;
		case "journal_19383673":
			var $DoubleClickSite = "wly.basic.med_000026";
			break;
		case "journal_24758817":
			var $DoubleClickSite = "wly.cell.m.bio_000030";
			break;
		case "journal_24725390":
			var $DoubleClickSite = "wly.emerge.med_000050";
			break;
		case "journal_15589293":
			var $DoubleClickSite = "wly.indus.chem_000124";
			break;
		case "journal_15589307":
			var $DoubleClickSite = "wly.food.sci_000058";
			break;
		case "journal_15589331":
			var $DoubleClickSite = "wly.chemistry_000033";
			break;
		case "journal_18735924":
			var $DoubleClickSite = "wly.finan.inves_000057";
			break;
		case "journal_25770470":
			var $DoubleClickSite = "wly.elec.e.eng_000049";
			break;
		case "journal_25738615":
			var $DoubleClickSite = "wly.finan.inves_000057";
			break;
		case "journal_19412452":
			var $DoubleClickSite = "wly.nutrition_000089";
			break;
		case "journal_19419635":
			var $DoubleClickSite = "wly.chem.engin_000032";
			break;
		case "journal_19433638":
			var $DoubleClickSite = "wly.food.sci_000058";
			break;
		case "journal_19506945":
			var $DoubleClickSite = "wly.neurology_000086";
			break;
		case "journal_24761281":
			var $DoubleClickSite = "wly.busi.manage_000028";
			break;
		case "journal_25770470":
			var $DoubleClickSite = "wly.mech.eng_000080";
			break;
		case "journal_25777408":
			var $DoubleClickSite = "wly.math_000079";

	};
        if (!$DoubleClickSite) {
		var $DoubleClickSite = "undefined-site";
	};

Anonymous,

public function actionHtmlResponse()
{
	//FIXME: WTF?
	$query = $this->getHttpRequest()->getQuery();
	dump($this->datatablesHelper->getAllProductsForList($this, $query, $this->projectDomainId, $this->locale));
	exit;
}

Třešťák Huho,