This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
"github.com/smallstep/certificates/api" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// keep in mind that applications using OpenGL needs the -gl flag to be | |
// correctly executed with the GPU. If that doesn't work add the -w flag as I | |
// noticed in some applications to make it work when -gl alone was not enough. | |
import ( | |
"bytes" | |
"flag" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Not platform dependent | |
#include <iostream> | |
#include <chrono> | |
#include <array> | |
#include <thread> | |
void print(int n, std::chrono::seconds s) { | |
std::this_thread::sleep_for(s); |