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
name = my_shitty_so_algo | |
lang = c | |
type = shared | |
c_compiler_flags = -Wno-unused-parameter | |
include_paths = ../algo/ttsdk/include | |
source = main.c |
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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Interview Questions</title> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> |
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 websocket | |
import json | |
import requests | |
import base64 | |
def get_access_token(username, password, auth_url="https://id.ttstage.com/oauth/token"): | |
login_payload = {'grant_type': 'password', 'username': username, 'password': password} | |
auth = base64.b64encode("b7b9974e8e2244e387ab64cadd0d667a:830b5b391b474a4780a8697d0396a27762aa40367e8549578ae71149df8c78c5") |
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
extern "C" | |
{ | |
#define restrict __restrict | |
#include <ttsdk/whatever.h> | |
#include <ttsdk/order.h> | |
// ... | |
#include <fcntl.h> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"> | |
<key attr.name="label" attr.type="string" for="node" id="label"/> | |
<key attr.name="Edge Label" attr.type="string" for="edge" id="edgelabel"/> | |
<key attr.name="weight" attr.type="double" for="edge" id="weight"/> | |
<key attr.name="Edge Id" attr.type="string" for="edge" id="edgeid"/> | |
<key attr.name="r" attr.type="int" for="node" id="r"/> | |
<key attr.name="g" attr.type="int" for="node" id="g"/> | |
<key attr.name="b" attr.type="int" for="node" id="b"/> | |
<key attr.name="x" attr.type="float" for="node" id="x"/> |
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
// | |
// Original URL: https://llvm.org/svn/llvm-project/llvm/trunk/examples/HowToUseJIT/HowToUseJIT.cpp | |
// | |
//===-- examples/HowToUseJIT/HowToUseJIT.cpp - An example use of the JIT --===// | |
// | |
// The LLVM Compiler Infrastructure | |
// | |
// This file is distributed under the University of Illinois Open Source | |
// License. See LICENSE.TXT for details. | |
// |
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
# Let's do some copies | |
pub.Symbol = src.Symbol | |
pub.Trade = src.Trade | |
pub.Ask = src.Ask | |
# Blank out pub.Bid | |
blank({}, {pub.Bid}) | |
# Some simple condition | |
if src.Bid > 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
pub.Symbol = src.Symbol | |
pub.Trade = src.Trade | |
pub.Ask = src.Ask | |
if src.MsgType == "D" | |
if src.BatCode == "B" | |
pub.Junk = veh.Bid | |
pub.Bid = 123 | |
end | |
end |
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
This is a test of public gist | |
kjghlkjh | |
sdaflkjhlk | |
likhsadfkhj | |
dsfalkhdsaf | |
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
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ | |
/* File created by MIDL compiler version 8.00.0594 */ | |
/* @@MIDL_FILE_HEADING( ) */ | |
#pragma warning( disable: 4049 ) /* more than 64k source lines */ |
OlderNewer