Hey. I'm new at Arduino and yesterday i bought an Attiny85 for start Arduino programming. Unfortunately, after i plugged the thing that have metal 'sticks' to the pin 'holes' randomly, my computer stopped detecting it. Since then, it still not detecting my attiny.
Sound like you fried it. I don't know what that "thing with metal sticks" is but "randomly" is almost never a good idea in electronics.
A DigiSpark is a rather bad entry point into the Arduino world. It's a hardware running at the edge of it's specs, designed for experienced hobbyists that need an really small form factor.
If you want to start with Arduino, choose an UNO. Most tutorials are built on it and it's much more forgiving when connecting without knowing what you do.
I don't think it is fried beacuse it can run his script when the computer switch to sleep mode. After i run windows while digispark is plugged, he can run his script.
As per post #2, DigiSpark can be a bit flaky, and you would have done better starting with an Uno. In particular, interoperation with Windows computers can be hit or miss.
As far as I know, the DigiSpark uses a software USB implementation; in which case a bug in your code can cause the problems that you describe. I'm not familiar with your board so can't advise further.
These are called the PCB holes. The header pins need to be snapped apart so there length matches the length of each row of holes and then soldered in and only then plugged into your computer's USB.
Dollars to donuts a poor soldering job shorted two adjacent pins, and one of them is one of the ones used for USB. Pins 3 and 4 if I recall correctly for the t85 digisparks.
You can also accidentally scrape the soldermask and damage it, so solder can make contact with the ground plane, and if it's close to a pin, which it usually is, a solder bridge from the pin to the damaged solder mask can form; this can be fixed by removing the offending solder carefully with desoldering braid, cleaning the surface well, and applying and curing solder mask over it.