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
2017/07/11 01:25:03 http2: Transport failed to get client conn for precious.jp:443: http2: no cached connection was available | |
2017/07/11 01:25:04 http2: Transport creating client conn 0xc42014c1a0 to 202.238.151.220:443 | |
2017/07/11 01:25:04 http2: Framer 0xc42044d0a0: wrote SETTINGS len=18, settings: ENABLE_PUSH=0, INITIAL_WINDOW_SIZE=4194304, MAX_HEADER_LIST_SIZE=10485760 | |
2017/07/11 01:25:04 http2: Framer 0xc42044d0a0: wrote WINDOW_UPDATE len=4 (conn) incr=1073741824 | |
2017/07/11 01:25:04 http2: Transport encoding header ":authority" = "precious.jp" | |
2017/07/11 01:25:04 http2: Transport encoding header ":method" = "GET" | |
2017/07/11 01:25:04 http2: Transport encoding header ":path" = "/" | |
2017/07/11 01:25:04 http2: Transport encoding header ":scheme" = "https" | |
2017/07/11 01:25:04 http2: Transport encoding header "accept-encoding" = "gzip" | |
2017/07/11 01:25:04 http2: Transport encoding header "user-agent" = "Go-http-client/2.0" |
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" | |
"log" | |
"os" | |
"path/filepath" | |
"github.com/orijtech/uber/oauth2" | |
) |
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 ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/orijtech/uber/v1" | |
) |
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
<script type="text/javascript" src="https://storage.googleapis.com/realsp/rsp.min.js"></script> | |
var resp = new Resp({ | |
"itemId": "searchInput", | |
"apiKey": "fe4123b3-ad36-44f7-9a5b-0ea8c3abc813", | |
"initialSearch": initialKeyword, | |
"onMessage": handleNewData, | |
"onDisconnected": turnOnSpinnerGIF, | |
"onConnected": turnOffSpinnerGIF, | |
"onError": function(err) { |
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 ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"golang.org/x/crypto/acme/autocert" |
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 ( | |
"fmt" | |
"log" | |
"github.com/orijtech/uber/v1" | |
) | |
func main() { |
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 ( | |
"io" | |
"log" | |
"os" | |
"github.com/orijtech/frontender" | |
) |
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" | |
"strconv" | |
"strings" | |
) |
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 ( | |
"fmt" | |
"log" | |
"github.com/orijtech/500px/v1" | |
) | |
func main() { |
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
// Function to recursively parse through JSON | |
// that was extra quoted during stringifying for | |
// nested levels. This function undoes all that | |
// work and makes JSON objects for every object | |
// that it can traverse. | |
function recursiveJSONParse(obj) { | |
if (!obj) | |
return obj; | |
switch (typeof obj) { |