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 | |
# create .bc file | |
clang -emit-llvm -c testcfg.c | |
# create .dot file | |
opt -dot-cfg testcfg.bc | |
# cteate png,pdf | |
dot -Tpng -o main.png cfg.main.dot |
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
00000000000012c8 <matrix_test>: | |
matrix_test(): | |
/home/users3/rex603/automation/CoreMark-V5/demo/core_matrix.c:131 | |
After the last step, matrix A is back to original contents. | |
*/ | |
ee_s16 | |
matrix_test(ee_u32 N, MATRES *C, MATDAT *A, MATDAT *B, MATDAT val) | |
{ |
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
#include "os.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
//#include<string.h> | |
#define WIDTH 250 | |
#define HEIGHT 200 | |
#define ACTIVE 1 | |
#define INACTIVE 0 | |
#define ACTIVE_SYMBOL '*' |
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 hub.schema import Primitive, Audio, ClassLabel | |
from hub import transform, schema | |
import warnings | |
import librosa | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from tqdm import tqdm | |
from glob import glob | |
from time 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
# -*- coding=utf-8 -*- | |
import time | |
from kucoin.client import Client | |
import json | |
import datetime | |
import os | |
import time | |
import sys | |
import math | |
import string |
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
var TTY = { | |
ttys: [], | |
init: function() {}, | |
shutdown: function() {}, | |
showbuff : function () {}, | |
register: function(dev, ops) { | |
TTY.ttys[dev] = { | |
input: [], | |
output: [], | |
ops: ops |
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
var TTY = { | |
ttys: [], | |
init: function() {}, | |
shutdown: function() {}, | |
showbuff : function () {}, | |
register: function(dev, ops) { | |
TTY.ttys[dev] = { | |
input: [], | |
output: [], | |
ops: ops |
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
sma_5 = talib.SMA(np.array(close), 5) | |
sma_10 = talib.SMA(np.array(close), 10) | |
sma_20 = talib.SMA(np.array(close), 20) | |
sma_60 = talib.SMA(np.array(close), 60) | |
macd = get_MACD(np.array(close)) | |
# | |
data_list4 = [] | |
for x in range (len (randomforest_list)-1 , 33 ,-1 ): |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Dec 20 17:46:15 2017 | |
@author: user | |
""" | |
import sys | |
from flask import Flask | |
from flask_restful import reqparse, abort, Api, Resource | |
import logging |
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
server { | |
listen 6699; | |
location /lua { | |
default_type text/html; | |
lua_code_cache off; | |
content_by_lua_file /home/x213212/openresty-test/conf/lua/test.lua; | |
} | |
location = /sredis { | |
content_by_lua_file /home/x213212/openresty-test/conf/lua/ws_redis.lua; | |
} |
NewerOlder