char *  dataFunc(){
    TCHAR tc[256];
    LONG tc_len = sizeof(tc);
    
    getData((LPBYTE)&tc, &tc_len);
    
    char * data = new char[tc_len];
    for(int i = 0;i < tc_len;i++)
        data[i] = tc[i];
    
    return data;
}
By Hook2, 2021-06-27 15:41:51
local part = script.Parent

local OriginColor = Color3.new(0,170,255)

local KillColor = Color3.new(1, 0, 0)

part.Touched:Connect(function(H)
	local humanoid = H.Parent:FindFirstChild("Humanoid")
	if humanoid and part.Color == KillColor then
		humanoid.Health = 0

	end

end)

local shit = 1
repeat

	part.Color = OriginColor
	wait(1.5) 
	part.Color = KillColor
	wait(1.5)



until shit == 2
By petierko, 2021-06-23 19:02:54
if(year%100 === 79 ||
year%100 === 90 ||
year%100 === 1 ||
year%100 === 7 ||
year%100 === 18) {
	if(month === 1) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 5)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 5)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 79 ||
year2%100 === 90 ||
year2%100 === 1 ||
year2%100 === 7 ||
year2%100 === 18) {
	if(month2 === 1) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 5)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 5)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 79 ||
year3%100 === 90 ||
year3%100 === 1 ||
year3%100 === 7 ||
year3%100 === 18) {
	if(month3 === 1) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 5)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 5)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 96) {
	if(month === 1) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 96) {
	if(month2 === 1) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 96) {
	if(month3 === 1) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 85 ||
year%100 === 91 ||
year%100 === 2 ||
year%100 === 13 ||
year%100 === 19) {
	if(month === 1) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 85 ||
year2%100 === 91 ||
year2%100 === 2 ||
year2%100 === 13 ||
year2%100 === 19) {
	if(month2 === 1) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 85 ||
year3%100 === 91 ||
year3%100 === 2 ||
year3%100 === 13 ||
year3%100 === 19) {
	if(month3 === 1) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 80 ||
year%100 === 8) {
	if(month === 1) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 80 ||
year2%100 === 8) {
	if(month2 === 1) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 80 ||
year3%100 === 8) {
	if(month3 === 1) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 86 ||
year%100 === 97 ||
year%100 === 3 ||
year%100 === 14) {
	if(month === 1) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 92) {
	if(month === 1) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 86 ||
year2%100 === 97 ||
year2%100 === 3 ||
year2%100 === 14) {
	if(month2 === 1) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 92) {
	if(month2 === 1) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 86 ||
year3%100 === 97 ||
year3%100 === 3 ||
year3%100 === 14) {
	if(month3 === 1) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 92) {
	if(month3 === 1) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 81 ||
year%100 === 87 ||
year%100 === 98 ||
year%100 === 9 ||
year%100 === 17) {
	if(month === 1) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while(day%7 ===0) {day=Math.ceil(Math.random() * 28);}}
	if(month === 3) { while(day%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year%100 === 4) {
	if(month === 1) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 2) { while(day%7 ===0) {day=Math.ceil(Math.random() * 29);}}
	if(month === 3) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 4) { while((day - 5)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 5) { while((day - 3)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 6) { while(day%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 7) { while((day - 5)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 8) { while((day - 2)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 9) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 10) { while((day - 4)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
	if(month === 11) { while((day - 1)%7 ===0) {day=Math.ceil(Math.random() * 30);}}
	if(month === 12) { while((day + 1)%7 ===0) {day=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 81 ||
year2%100 === 87 ||
year2%100 === 98 ||
year2%100 === 9 ||
year2%100 === 17) {
	if(month2 === 1) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 28);}}
	if(month2 === 3) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year2%100 === 4) {
	if(month2 === 1) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 2) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 29);}}
	if(month2 === 3) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 4) { while((day2 - 5)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 5) { while((day2 - 3)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 6) { while(day2%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 7) { while((day2 - 5)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 8) { while((day2 - 2)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 9) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 10) { while((day2 - 4)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
	if(month2 === 11) { while((day2 - 1)%7 ===0) {day2=Math.ceil(Math.random() * 30);}}
	if(month2 === 12) { while((day2 + 1)%7 ===0) {day2=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 81 ||
year3%100 === 87 ||
year3%100 === 98 ||
year3%100 === 9 ||
year3%100 === 17) {
	if(month3 === 1) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 28);}}
	if(month3 === 3) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
if(year3%100 === 4) {
	if(month3 === 1) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 2) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 29);}}
	if(month3 === 3) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 4) { while((day3 - 5)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 5) { while((day3 - 3)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 6) { while(day3%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 7) { while((day3 - 5)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 8) { while((day3 - 2)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 9) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 10) { while((day3 - 4)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
	if(month3 === 11) { while((day3 - 1)%7 ===0) {day3=Math.ceil(Math.random() * 30);}}
	if(month3 === 12) { while((day3 + 1)%7 ===0) {day3=Math.ceil(Math.random() * 31);}}
}
By Anonymous, 2021-06-22 15:46:00
if yearOfBirth > 2002 {
    fmt.Errorf("year of birth not allowed %d", yob)
    return
}
By V, 2021-06-15 14:53:58
pageEndReached() {
      if (!this.endOfResults) {
        //load more pages
        this.page++;
        this.getPosts();
      followerCount: null,
      postCount: null,
      measurementKeys: ["a", "b", "c", "d", "e"],
      showDrafts: false,
    };
  },

nani

By sonic, 2021-06-08 22:52:01
if(!strncmp(pcTagName,strlim,(int)strlen(strlim))) return "";
By Anonymous, 2021-06-08 19:32:50
$(document).on('click', '.edit-item', function(event) {
    let row_id = event.currentTarget.attributes['data-row'].value,
    data = dataIndex[
        dataIndex.findIndex(i => i.id === Number(row_id))
    ];
    $('.modal-body div:nth-child(1) input').attr('value', data.name)
    $('.modal-body div:nth-child(2) input').attr('value', data.category)
    $('.modal-body div:nth-child(3) #basicSelect').val(data.status)
    $('.modal-body div:nth-child(4) input').attr('value', data.price)
    $('.modal-body div:nth-child(5) input').attr('value', data.bju.mass)
    $('.modal-body div:nth-child(6) input').attr('value', data.bju.calories)
    $('.modal-body div:nth-child(7) input').attr('value', data.bju.proteins)
    $('.modal-body div:nth-child(8) input').attr('value', data.bju.fats)
    $('.modal-body div:nth-child(9) input').attr('value', data.bju.carbohydrates)
}
)
By Nik Destrave, 2021-05-30 21:59:31
function focused(evt, errors) {
	let form = evt.target

	const output = errors.map((error)=> {

		// Find first component with error on form and set focus to it

		let focusedInput = (Object.keys(error) == "phonebookId") ? Object.keys(error) :
			(Object.keys(error) == "phonebook_str") ? Object.keys(error) :
				(Object.keys(error) == "message") ? Object.keys(error) :
					(Object.keys(error) == "image") ? Object.keys(error) :
						(Object.keys(error) == "buttonLink") ? Object.keys(error) :
							(Object.keys(error) == "messageSms") ? Object.keys(error) : false
		return focusedInput.shift()
	})

	const selector = output.shift()
	form.querySelector('[id="' + selector + '"]').focus()

	return selector

Shitcode

By Anonymous, 2021-05-28 01:16:05
class vggNet(nn.Module):
    def __init__(self, pretrained=True):
        super(vggNet, self).__init__()
        self.net = models.vgg16(pretrained=True).features.eval()

    def forward(self, x):


        out = []
        for i in range(len(self.net)):
            #x = self.net[i](x)
            x = self.net[i](x)
            #if i in [3, 8, 15, 22, 29]:
            #if i in [15]: #提取1,1/2,1/4的特征图
            if i in [8,15,22]: #提取1,1/2,1/4,1/8,1/16
                # print(self.net[i])
                out.append(x)
        return out

Some creepy feature extraction code I found attached to a research paper.

Features:

  • the "pretrained" parameter it's not actually used.
  • Just works (not so sure about that) with a vgg16, what if I want to use any other model?
  • They provided a spare copy of line 12, in case you lose one.
  • You can select a custom combination of layers by uncommenting the right if statement. A chinese explanation follows. Sometimes.
  • Why use pytorch hooks when you can write a 20+ lines class each time you need it?
By Baichuan Huang, 2021-05-21 19:21:58
let already_in = True;
while (already_in) {
    let random_index = Math.floor(arr.length * Math.random());
    let already_in = False;
    for (ex of exs) {
        if (ex.id === arr[random_index].id) {
            already_in = True;
        }
    }
}

Yes, this is JavaScript, and yes it didn't work. Found while reviewing some code

By L., 2021-05-17 11:20:12
<?php
$arr = [
    ["price" => 1],
    ["price" => 2]
];

$update = $arr;
$update[0]["price"] = 4;

$arr = $update;
By mamadSiah, 2021-05-11 11:06:19
latest_tag = "0.0.0"
    for tag in tags:
        if tag.name.startswith( 'v' ):
            if tag.name.replace('v','').replace('.','') > latest_tag.replace('.',''):
                latest_tag = tag.name.replace('v','')
By Anonymous, 2021-04-30 08:18:17
def isBool(l):
    if l != True or l != False:
        return False
    return True
By mamadSiah, 2021-04-27 16:13:17
        /// <summary>
        /// Builds the suffixs for the request sequence number
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public static string GetSequenceNumber(int i)
        {
            string strCount = string.Empty;
            string increase = string.Empty;
            int count;
            strCount = i.ToString();
            count = strCount.Length;
            //Add 0 infront of the index to make a 4 digit number
            if (count < 5)
            {
                for (int j = 0; j < (4 - count); j++)
                {
                    increase = increase + "0";
                }
                strCount = increase + strCount;
            }
            return strCount;
        }
By Anonymous, 2021-04-21 16:01:46
typedef NS_ENUM(NSUInteger, MyEnum1) {
    PackagesNo1 = 1,
    PackagesNo2 = 2,
    PackagesNo4 = 4,
    PackagesNo8 = 8
};

typedef NS_ENUM(NSUInteger, MyEnum2) {
    LEVEL0 = 0,
    LEVEL1 = 1,
    LEVEL2 = 2,
    LEVEL3 = 3
};

- (int)packagesNeededForLevel:(int)level {
    switch (level) {
        case LEVEL0:
            return PackagesNo8;
        case LEVEL1:
            return PackagesNo4;
        case LEVEL2:
            return PackagesNo2;
        case LEVEL3:
            return PackagesNo1;
    }
}

well done mr junior

By Anonymous, 2021-04-12 09:37:34