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
#!/usr/bin/env python3 | |
# -*- coding:utf-8 -*- | |
from google.cloud import bigquery | |
from google.oauth2 import service_account | |
key_path = 'xxxxxxxxxxxxxxxxxxx.json' | |
credentials = service_account.Credentials.from_service_account_file( | |
key_path, | |
scopes=[ | |
'https://www.googleapis.com/auth/bigquery', |
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 org.gephi.toolkit.save_test; | |
public class Main { | |
public static void main(String[] args) { | |
SaveProject saveProject = new SaveProject(); | |
saveProject.script(); | |
} | |
} |
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
from machine import I2C, Pin,deepsleep | |
import utime | |
# from m5stack import lcd | |
# see bme280,ambient lib from https://github.com/AmbientDataInc/ESP32SamplePrograms/tree/master/Micropython | |
import bme280 | |
import ambient | |
ssid = 'your_ssid' | |
password = 'your_wifi_password ' |
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 sys,os | |
from pyspark.sql import SQLContext, Row | |
import pyspark.sql.functions as func | |
import logging | |
from pyspark import SparkContext | |
logger = logging.getLogger('py4j') | |
from optparse import OptionParser | |
parser = OptionParser() |
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
TOPIC='[TOPIC_NAME]' | |
GOOGLE_CLOUD_PROJECT='[PROJECT_ID]' | |
SUBSCRIBE='[SUBSCRIBER_NAME]' | |
MONGO_DB='MONGO_DB_NAME' | |
JSON_KEY='PATH_TO_JSON_KEY' |
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
root@****:~/prog/hpl-2.0_FERMI_v15/bin/CUDA# more HPL.dat | |
HPLinpack benchmark input file | |
Innovative Computing Laboratory, University of Tennessee | |
HPL.out output file name (if any) | |
7 device out (6=stdout,7=stderr,file) | |
1 # of problems sizes (N) | |
65536 73728 60000 40000 50000 60000 39007 39000 20960 364160 359424 276480 138240 115200 23040 354432 236160 95040 9600 20737 | |
16129 16128 Ns | |
3 # of NBs | |
2048 1536 1024 512 384 640 768 896 960 1024 1152 1280 384 640 960 768 640 256 960 512 768 1152 NBs |
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
select strftime_utc_usec(upload_time,"%Y-%m") as umonth, | |
count(1) | |
FROM [nicodata.video] | |
GROUP BY umonth | |
order by umonth; |
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
[{"mode": "NULLABLE", | |
"name": "video_id", | |
"type": "STRING"}, | |
{"mode": "NULLABLE", | |
"name": "date", | |
"type": "TIMESTAMP"}, | |
{"mode": "NULLABLE", | |
"name": "content", | |
"type": "STRING"}, | |
{"mode": "NULLABLE", |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import requests | |
from pyquery import PyQuery as pq | |
from datetime import datetime | |
import re | |
import os | |
import shutil | |
import 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
#!/usr/bin/env python | |
# -coding:utf-8 -*- | |
import requests | |
import re | |
import json | |
from pprint import pprint | |
import subprocess | |
import sys | |
import os | |
from datetime import datetime |
NewerOlder