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 -*- | |
"""hive.py: call hive command via python3""" | |
__author__ = "xiaoshuai, http://github.com/xiaoshuai" | |
__license__ = "GPL" | |
__version__ = "1.0.1" | |
import subprocess | |
import sys | |
from subprocess import check_output, CalledProcessError |
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 -*- | |
"""hdfs.py: call hdfs command via python3""" | |
__author__ = "xiaoshuai, http://github.com/xiaoshuai" | |
__license__ = "GPL" | |
__version__ = "1.0.1" | |
import os | |
import re | |
import subprocess |
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
#include <stdio.h> | |
#include <stdarg.h> | |
#ifndef HEADER_SINGLELIBC_LOGGER_H | |
#define HEADER_SINGLELIBC_LOGGER_H | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/time.h> | |
#include <math.h> |
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 org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.IOException; | |
import java.util.List; | |
import okhttp3.Interceptor; | |
import okhttp3.Request; | |
import okhttp3.Response; |
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
public class CompareJavaBase64Util { | |
public static void main(String[] args) { | |
String str_1 = "abcABC123+-*/"; | |
String str_2 = "YWJjQUJDMTIzKy0qLw=="; | |
long l_1 = System.currentTimeMillis(); | |
for (int i = 0; i < 10000; i++) { | |
String encode_str_jdk = java.util.Base64.getEncoder().encodeToString(str_1.getBytes()); | |
byte[] decode_byte_jdk = java.util.Base64.getDecoder().decode(str_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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.require_version ">= 1.9.1" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# 设置常量 | |
if ENV['DEV_VB_MEM'] | |
memory = ENV["DEV_VB_MEM"] | |
else |