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/python | |
# -*-coding: utf-8-*- | |
from keras.datasets import mnist | |
import numpy as np | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation, Dropout | |
from keras.optimizers import SGD |
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
{ | |
"job": { | |
"setting": { | |
"speed": { | |
"channel": 2 | |
} | |
}, | |
"content": [ | |
{ | |
"reader": { |
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
{ | |
"job": { | |
"setting": { | |
"speed": { | |
"channel": 1 | |
} | |
}, | |
"content": [ | |
{ | |
"reader": { |
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
function sqoop_import_data() { | |
sqoop import -D mapreduce.job.queuename=mapreduce.normal \ | |
--connect 'jdbc:mysql://123.123.123.123/optimus?useUnicode=true&characterEncoding=GBK' \ | |
--username data \ | |
--password 'password' \ | |
--query " SELECT '' as id, | |
day, | |
agent, | |
register_name, |
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 multiprocessing as mp | |
def job(x): | |
return x * x | |
pool = mp.Pool() | |
res = pool.map(job, range(10)) |
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 multiprocessing as mp | |
import threading as td | |
def job(a, d): | |
print('aaaaa') | |
if __name__ == '__main__': |
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 threading | |
def job1(): | |
global A | |
for i in range(10): | |
A+=1 | |
print('job1',A) | |
def job2(): | |
global 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
import threading | |
from multiprocessing import Queue | |
import copy | |
import time | |
def job(l, q): | |
res = sum(l) | |
q.put(res) | |
def multithreading(l): |
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
Option/Description | |
--autoCommit=[true/false] | |
Enable/disable automatic transaction commit. Default is false. | |
Usage: beeline --autoCommit=true | |
--autosave=[true/false] | |
Automatically save preferences (true) or do not autosave (false). Default is false. | |
Usage: beeline --autosave=true | |
--color=[true/false] | |
Control whether color is used for display. Default is false. |
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
patch: | |
menu: | |
page_size: 7 # 设置候选字数量 个人喜好 7 | |
schema_list: | |
- schema: wubi_pinyin # 五笔拼音混合輸入 偶尔生字需要拼音 | |
- shcema: luna_pinyin_simp # luna 拼音 个人几乎不用 | |
#下面定义“输入选单”的切换控制 | |
switcher: |