Instance | Branch |
---|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"data": [ | |
{ | |
"possibly_sensitive": false, | |
"lang": "ja", | |
"source": "Twitter Web App", | |
"created_at": "2022-10-30T15:16:28.000Z", | |
"author_id": "1299285051436273664", | |
"entities": { | |
"urls": [ |
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
import requests | |
import os | |
import urllib | |
import json | |
import datetime | |
from google.cloud import bigquery | |
bearer_token = "[Your Token]" | |
headers = {"Authorization": "Bearer {}".format(bearer_token)} |
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" | |
func main() { | |
n := make([]int, 4, 5) | |
fmt.Printf("len=%d, cap=%d, slice=%v\n", len(n), cap(n), n) | |
n = append(n, 1) | |
fmt.Printf("len=%d, cap=%d, slice=%v\n", len(n), cap(n), n) | |
n = append(n, 2) |
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" | |
func main() { | |
var a []int | |
a = make([]int, 5) | |
for i := 0; i < 5; i++ { | |
a = append(a, i) | |
fmt.Println(a) |
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 | |
func goroutine1(s []int, c chan int) { | |
sum := 0 | |
for _, v := range s { | |
sum += v | |
} | |
c <- sum | |
} |
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 | |
func goroutine1(s []int, c chan int) { | |
sum := 0 | |
for _, v := range s { | |
sum += v | |
} | |
c <- sum | |
} |
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 "sync" | |
func producer(ch chan int, i int) { | |
ch <- i * 2 | |
} | |
func consumer(ch chan int, wg *sync.WaitGroup) { | |
defer wg.Done() |
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" | |
"github.com/markcheno/go-quote" | |
"github.com/markcheno/go-talib" | |
"log" | |
"os" | |
) |
OlderNewer