This file contains 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 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 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 |
This file contains 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 hello_world; | |
import java.awt.Color; | |
import java.io.File; | |
import java.io.IOException; | |
import org.gephi.appearance.api.AppearanceController; | |
import org.gephi.appearance.api.AppearanceModel; |
This file contains 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 hello_world; | |
import java.awt.Color; | |
import java.io.File; | |
import java.io.IOException; | |
import org.gephi.appearance.api.AppearanceController; | |
import org.gephi.appearance.api.AppearanceModel; |
This file contains 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 datalab.bigquery as bq | |
import pandas as pd | |
df_pmoney = bq.Query(pmoney).to_dataframe().set_index('date') | |
df_pmoney.head(5) | |
df_pmoney.plot() |
This file contains 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
export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/opt/intel/compilers_and_libra | |
ries/linux/lib/intel64:/home/ec2-user/hpl-2.0_FERMI_v15/src/cuda:/usr/lib64/open | |
mpi/lib:/opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64 | |
_lin | |
export PATH=/usr/lib64/openmpi/bin:$PATH |
This file contains 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 ( | |
"net/http" | |
"github.com/labstack/echo" | |
"github.com/labstack/echo/engine/standard" | |
) | |
func main() { | |
e := echo.New() |
This file contains 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 * FROM | |
table_date_range(production.all_log, | |
timestamp("2016-05-01"), | |
timestamp("2016-06-01")) | |
WHERE user_id IS NOT NULL | |
LIMIT 10; |
This file contains 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
defmodule ManyProcess do | |
def start_link(id) do | |
{:ok,spawn_link(fn -> loop(id,%{}) end)} | |
end | |
def loop(id,map) do | |
receive do | |
{:get,key,caller}-> | |
IO.puts "send id=#{id} key=#{key}" | |
send caller,Map.get(map,key) | |
loop(id,map) |