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
// web_check.go | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
const url = "https://golang.org/" |
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
/** | |
* Marching ants border | |
*/ | |
@keyframes ants { to { background-position: 100% 100% } } | |
div { | |
padding: 1em; | |
border: 1px solid transparent; | |
background: linear-gradient(white, white) padding-box, |
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
/** | |
* Typing animation | |
*/ | |
@keyframes typing { | |
from { width: 0 } | |
} | |
@keyframes caret { | |
50% { border-right-color: transparent; } |
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
<?php | |
$ghost_data = json_decode(file_get_contents("./GhostData.json"),true) ; | |
foreach ($ghost_data['data']['posts'] as $key => $value) { | |
$created_at = date("c",$value["created_at"]/1000); | |
$title = str_replace('\\','\\\\',$value["title"]) ; | |
$title = str_replace('"','\"',$title) ; |