Code not running on electron

I have thing interesting problem:

This code runs fine on the electron:



void setup(){
    pinMode(D7,OUTPUT);
    Particle.publish("version",stringify(SYSTEM_VERSION));
}

unsigned long old_time = millis();

void loop(){
    if(millis() - old_time >= 100){
        digitalWrite(D7,!digitalRead(D7));
        old_time = millis();
    }
}

But not this: https://gist.github.com/kennethlimcp/77d47df7b3470186e1dd

I downloaded the binary and flashe manually but failed.

Building using “latest” via Web IDE.