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
from tkinter import TRUE | |
from flask import Blueprint,request | |
from flask_restx import Resource, fields | |
from apps.app import api, db | |
from apps.pymodule.utils import check_token | |
import json | |
social = Blueprint('social', | |
__name__, | |
url_prefix='/social') |
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 sys | |
import argparse | |
from pyspark import SparkConf | |
from pyspark import SparkContext | |
from pyspark.sql import SparkSession | |
from pyspark.sql.functions import col | |
# parser |
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 sys | |
import argparse | |
from pyspark import SparkConf | |
from pyspark import SparkContext | |
from pyspark.sql import SparkSession | |
from pyspark.sql.functions import col | |
# parser |
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
#!/bin/sh | |
# | |
# YYYY-MM-DD | |
# | |
STARTDATE=2016-01-04 | |
ENDDATE=2016-01-05 | |
CURRENTDATE=$STARTDATE | |
while [ 1 ] ; do | |
# 処理 | |
echo $CURRENTDATE |
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
#!/bin/bash | |
isMaster=$(cat /emr/instance-controller/lib/info/instance.json | jq .isMaster) | |
if ! "${isMaster}" ; then | |
echo "slave server" | |
exit 0 | |
fi | |
# consumed ip addres by others including self |
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 | |
from __future__ import print_function, unicode_literals, division | |
import boto3 | |
from boto3.session import Session | |
from botocore.exceptions import ClientError | |
import datetime | |
import dateutil.tz | |
import time | |
import os |