Skip to content

Instantly share code, notes, and snippets.

Avatar

igotit igotit-anything

View GitHub Profile
View extract_cst_from_jsonstr.cpp
#include "stdafx.h" //for Visual C++ project.
#include <iostream> // for std::string
/*
Json 형식예.
{
"ret_code": 0,
"ret_msg": "OK",
View C++ REST SDK example.cpp
#include <iostream>
#include <cpprest/http_client.h>
#include <cpprest/filestream.h>
#pragma comment(lib, "cpprest141_2_10.LIB")
using namespace std;
using namespace utility; // Common utilities like string conversions
using namespace web; // Common features like URIs.
using namespace web::http; // Common HTTP functionality
View bybit_python_module_example.py
import bybit
client = bybit.bybit(test=True, api_key="my api key", api_secret="my secret key")
# Get server time
print(client.Common.Common_get().result()[0])
# Get Symbol lists
print(client.Symbol.Symbol_get().result()[0]["result"][0])
View bybit_websocket_realtime_fill_data.py
################ bybit WebSocket example.
import asyncio
import websockets
import json
async def my_loop_WebSocket_bybit():
async with websockets.client.Connect("wss://stream.bybit.com/realtime") as websocket:
print("Connected to bybit WebSocket");
View check_balance_GOPAX.py
#
# 잔액 조회하기
#
import time, base64, hmac, hashlib, requests, json
# 발급받은 api키와 시크릿키를 입력한다
apikey = 'ashdflashdfkh.....'
secret = 'as;dlflaskdjfjaskldfjlasjflj.....'
View check_balance_gopax.js
//
// 잔액 조회하기
//
var crypto = require('crypto');
var request = require('request');
// 발급받은 api키와 시크릿키를 입력한다
var apikey = 'akdhfafheur';
var secret = 'ausdufasffdkljieurueadfjklj';
View cy_class_bmft5_pack.cpp
//////// cy_class_bmft5_pack.h
#ifndef cy_class_bmft5_pack_h
#define cy_class_bmft5_pack_h
#include <stdint.h>
#include <string.h> // memcpy,NULL, ..
#include <stdlib.h> // malloc
View cy_class_bmft5_unpack.cpp
//////file : cy_class_bmft5_unpack.h
#ifndef cy_class_bmft5_unpack_h
#define cy_class_bmft5_unpack_h
#include <stdint.h>
#include <string.h> // memcpy,NULL, ..
#include <stdlib.h>
View nRF5_SDK_GPIOTE.c
#include "nrf52840.h"
#include "nrf52840_bitfields.h"
#include "nrf_delay.h" // added 2019-10-05 . step by step 1. for time delay
#include "nrf_drv_gpiote.h" // added 2019-10-06. step by step 2. for GPIOTE
void in_pin_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
nrf_drv_gpiote_out_toggle(13);
View SES CMSIS Configuration Wizard for nRF5 SDK.xml
<item name="Tool.CMSIS_Config_Wizard" wait="no">
<menu>&amp;CMSIS Configuration Wizard for nRF SDK</menu>
<text>CMSIS Configuration Wizard</text>
<tip>Open a configuration file in CMSIS Configuration Wizard</tip>
<key>Ctrl+Y</key>
<match>sdk_config.h</match>
<message>CMSIS Config for nRF SDK</message>
<commands>
java -jar &quot;$(CMSIS_CONFIG_TOOL)&quot; &quot;$(InputPath)&quot;
</commands>
You can’t perform that action at this time.