code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.ios.kt | Kotlin | apache-2.0 | 1,281 |
#ifndef GLOBAL_RAW_FILE_H
#define GLOBAL_RAW_FILE_H
#ifdef __cplusplus
extern "C" {
#endif
struct RawFile;
typedef struct RawFile RawFile;
int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, size_t length);
long OH_ResourceManager_GetRawFileSize(RawFile *rawFile);
void OH_ResourceManager_CloseRa... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/cinterop/include/raw_file.h | C | apache-2.0 | 414 |
#ifndef GLOBAL_NATIVE_RESOURCE_MANAGER_H
#define GLOBAL_NATIVE_RESOURCE_MANAGER_H
#include "napi/native_api.h"
#include "raw_file.h"
#ifdef __cplusplus
extern "C" {
#endif
struct NativeResourceManager;
typedef struct NativeResourceManager NativeResourceManager;
NativeResourceManager *OH_ResourceManager_InitNativeR... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/cinterop/include/raw_file_manager.h | C | apache-2.0 | 639 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/App.ohosArm64.kt | Kotlin | apache-2.0 | 764 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/MainArkUIViewController.kt | Kotlin | apache-2.0 | 1,599 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/Platform.ohos.kt | Kotlin | apache-2.0 | 1,105 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ArkUIView.kt | Kotlin | apache-2.0 | 1,978 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/Images.ohosArm64.kt | Kotlin | apache-2.0 | 2,846 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/InteropListNested.kt | Kotlin | apache-2.0 | 3,005 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/InteropListSimple.kt | Kotlin | apache-2.0 | 2,425 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/InteropRenderOrder.kt | Kotlin | apache-2.0 | 2,798 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/InteropTextInput.kt | Kotlin | apache-2.0 | 2,777 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/backhandler/BackHandler.ohosArm64.kt | Kotlin | apache-2.0 | 1,536 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.ohosArm64.kt | Kotlin | apache-2.0 | 1,904 |
#!/bin/bash
echo '✅ start build skiko #'
cd /Users/peaceful_black/kn/skiko-ohrender/skiko
./gradlew clean
echo "✅ waiting cleaning skiko..."
./build-with-local-skia.sh
echo "✅ waiting building skiko..."
echo '✅ start build compose #'
cd /Users/peaceful_black/kn/ovCompose-multiplatform-core
./gradlew clean
echo "✅ w... | 2201_76010299/kmptpc_compose_sample | harmonyApp/buildTest.sh | Shell | apache-2.0 | 1,547 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | harmonyApp/entry/hvigorfile.ts | TypeScript | apache-2.0 | 970 |
# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(harmonyApp)
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
if(DEFINED PACKAGE_FIND_FILE)
include(${PACKAGE_FIND_FILE})
endif()
include_directories(${NATIVERENDER_ROOT_PATH}
${NATIVERENDER_ROOT_PATH}/include... | 2201_76010299/kmptpc_compose_sample | harmonyApp/entry/src/main/cpp/CMakeLists.txt | CMake | apache-2.0 | 858 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | harmonyApp/entry/src/main/cpp/napi_init.cpp | C++ | apache-2.0 | 5,803 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | harmonyApp/hvigorfile.ts | TypeScript | apache-2.0 | 970 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | iosApp/iosApp/ContentView.swift | Swift | apache-2.0 | 1,872 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | iosApp/iosApp/Views/ImagesScrollView.swift | Swift | apache-2.0 | 2,223 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/kmptpc_compose_sample | iosApp/iosApp/iOSApp.swift | Swift | apache-2.0 | 872 |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.adapter = f()}... | 2301_76564925/webrtc | adapter-latest.js | JavaScript | apache-2.0 | 188,347 |
CC = g++
CFLAGS = -Wall -Wextra -O2 -g
LDFLAGS = -levent
TARGET = server
SRC = server.cpp
# 默认构建目标
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
# 清理编译产物
clean:
rm -f $(TARGET) *.o
# 安装依赖(Ubuntu/Debian)
install-deps:
sudo apt-get install -y libevent-dev g++ make
| 2301_76564925/webrtc | makefile | Makefile | apache-2.0 | 329 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebRTC屏幕共享</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.m... | 2301_76564925/webrtc | screen.html | HTML | apache-2.0 | 38,458 |
#include <event2/event.h>
#include <event2/bufferevent.h>
#include <event2/listener.h>
#include <event2/buffer.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#define DEFAULT_PORT 8080
#define RESP_HEADER_FMT "HTTP/1.1 200 OK\r\n" \
... | 2301_76564925/webrtc | server.cpp | C++ | apache-2.0 | 5,127 |
var ws = require("nodejs-websocket")
var prort = 8099;
// join 主动加入房间
// leave 主动离开房间
// new-peer 有人加入房间,通知已经在房间的人
// peer-leave 有人离开房间,通知已经在房间的人
// offer 发送offer给对端peer
// answer发送offer给对端peer
// candidate 发送candidate给对端peer
const SIGNAL_TYPE_JOIN = "join";
const SIGNAL_TYPE_RESP_JOIN = "resp-join"; // 告知... | 2301_76564925/webrtc | signal_server.js | JavaScript | apache-2.0 | 11,949 |
from pyspark import SparkContext,SparkConf
conf = SparkConf().setAppName("pyspark_demo")
sc.stop()
sc = SparkContext(conf = conf)
# 构造一个RDD
rdd = sc.parallelize([1, 2, 3, 3]) | 2201_75373101/PressureGaugeScaleInspection | Exc.py | Python | unknown | 184 |
import json
import os
import cv2
import math
import numpy as np
from multiprocessing import Manager
class Manometer_1(object):
def cv_imread(self, file_path):
cv_img = cv2.imdecode(np.fromfile(file_path, dtype=np.uint8), -1)
# im decode读取的是rgb,如果后续需要opencv处理的话,需要转换成bgr,转换后图片颜色会变化
cv_img = c... | 2201_75373101/PressureGaugeScaleInspection | main.py | Python | unknown | 10,140 |
import json
import os
import cv2
import math
import numpy as np
from multiprocessing import Manager
from datetime import datetime
class Manometer_1(object):
def cv_imread(self,file_path):
cv_img = cv2.imdecode(np.fromfile(file_path, dtype=np.uint8), -1)
# im decode读取的是rgb,如果后续需要opencv处理的话,需要转换成bgr... | 2201_75373101/PressureGaugeScaleInspection | 源.py | Python | unknown | 11,275 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
</head>
<body>
<input type="button" value="提交" />
<input type="button" value="提交" class="btn btn-primary"/>
<input type="button" va... | 2301_76469554/Bootstrap_project | 1. 初始BootStrap.html | HTML | unknown | 520 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
<style>
.navbar{
border-radius: 0;
}
</style>
</head>
<body>
<div class="navbar navbar-default">
<div cl... | 2301_76469554/Bootstrap_project | 2. 导航.html | HTML | unknown | 3,400 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
</head>
<body>
<div>
<div class="col-sm-offset-2" style="background-color: red">1</div>
</div>
</body>
</html> | 2301_76469554/Bootstrap_project | 3. 栅格.html | HTML | unknown | 302 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
<style>
.navbar {
border-radius: 0;
}
</style>
</head>
<body>
<div class="navbar navbar-default">
<div c... | 2301_76469554/Bootstrap_project | 4. 博客.html | HTML | unknown | 9,776 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
<style>
.account {
width: 500px;
border: 1px solid #dddddd;
border-radius: 5px;
box-sha... | 2301_76469554/Bootstrap_project | 5. 登录.html | HTML | unknown | 1,172 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
<style>
.navbar {
border-radius: 0;
}
.myTable {
margin: 10px 20px;
}
.btn-... | 2301_76469554/Bootstrap_project | 6. 后台管理.html | HTML | unknown | 2,463 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<link rel="stylesheet" href="static/plugins/bootstrap-3.4.1/css/bootstrap.css">
<link rel="stylesheet" href="static/plugins/font-awesome-4.7.0/css/font-awesome.css">
<style>
.navbar {
border-radius... | 2301_76469554/Bootstrap_project | 7. 后台管理(面板).html | HTML | unknown | 5,398 |
// Animated Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.@{fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyfr... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/animated.less | Less | unknown | 713 |
// Bordered & Pulled
// -------------------------
.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @fa-border-color;
border-radius: .1em;
}
.@{fa-css-prefix}-pull-left { float: left; }
.@{fa-css-prefix}-pull-right { float: right; }
.@{fa-css-prefix} {
&.@{fa-css-prefix}-pull-left { m... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/bordered-pulled.less | Less | unknown | 585 |
// Base Class Definition
// -------------------------
.@{fa-css-prefix} {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: ... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/core.less | Less | unknown | 452 |
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
| 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/fixed-width.less | Less | unknown | 119 |
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }
.@{fa-css-prefix}-music:before { content: @fa-var-music; }
.@{fa-css-prefix}-search:before { content: @fa-var-search; ... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/icons.less | Less | unknown | 49,712 |
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { font-size... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/larger.less | Less | unknown | 370 |
// List Icons
// -------------------------
.@{fa-css-prefix}-ul {
padding-left: 0;
margin-left: @fa-li-width;
list-style-type: none;
> li { position: relative; }
}
.@{fa-css-prefix}-li {
position: absolute;
left: -@fa-li-width;
width: @fa-li-width;
top: (2em / 14);
text-align: center;
&.@{fa-css-pr... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/list.less | Less | unknown | 377 |
// Mixins
// --------------------------
.fa-icon() {
display: inline-block;
font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegi... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/mixins.less | Less | unknown | 1,603 |
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.woff2?v=... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/path.less | Less | unknown | 771 |
// Rotated & Flipped Icons
// -------------------------
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
.@{fa-css-prefix... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/rotated-flipped.less | Less | unknown | 622 |
// Screen Readers
// -------------------------
.sr-only { .sr-only(); }
.sr-only-focusable { .sr-only-focusable(); }
| 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/screen-reader.less | Less | unknown | 118 |
// Stacked Icons
// -------------------------
.@{fa-css-prefix}-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: cent... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/stacked.less | Less | unknown | 476 |
// Variables
// --------------------------
@fa-font-path: "../fonts";
@fa-font-size-base: 14px;
@fa-line-height-base: 1;
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix: fa;
@fa-version: "4.7.0";
@... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/less/variables.less | Less | unknown | 22,563 |
// Spinning Icons
// --------------------------
.#{$fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.#{$fa-css-prefix}-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-key... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_animated.scss | SCSS | unknown | 715 |
// Bordered & Pulled
// -------------------------
.#{$fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em $fa-border-color;
border-radius: .1em;
}
.#{$fa-css-prefix}-pull-left { float: left; }
.#{$fa-css-prefix}-pull-right { float: right; }
.#{$fa-css-prefix} {
&.#{$fa-css-prefix}-pull-lef... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_bordered-pulled.scss | SCSS | unknown | 592 |
// Base Class Definition
// -------------------------
.#{$fa-css-prefix} {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rend... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_core.scss | SCSS | unknown | 459 |
// Fixed Width Icons
// -------------------------
.#{$fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
| 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_fixed-width.scss | SCSS | unknown | 120 |
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
.#{$fa-css-prefix}-music:before { content: $fa-var-music; }
.#{$fa-css-prefix}-search:before { content: $fa-var-searc... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_icons.scss | SCSS | unknown | 50,498 |
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.#{$fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.#{$fa-css-prefix}-2x { font-size: 2em; }
.#{$fa-css-prefix}-3x { font-size: 3em; }
.#{$fa-css-prefix}-4x { font-... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_larger.scss | SCSS | unknown | 375 |
// List Icons
// -------------------------
.#{$fa-css-prefix}-ul {
padding-left: 0;
margin-left: $fa-li-width;
list-style-type: none;
> li { position: relative; }
}
.#{$fa-css-prefix}-li {
position: absolute;
left: -$fa-li-width;
width: $fa-li-width;
top: (2em / 14);
text-align: center;
&.#{$fa-css... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_list.scss | SCSS | unknown | 378 |
// Mixins
// --------------------------
@mixin fa-icon() {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // ... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_mixins.scss | SCSS | unknown | 1,637 |
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
url('#{$fa-font-path}/fontawesome-webfont.wof... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_path.scss | SCSS | unknown | 783 |
// Rotated & Flipped Icons
// -------------------------
.#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
.#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
.#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }
.#{$fa-css-prefix}-flip-horizontal { @include fa-ico... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_rotated-flipped.scss | SCSS | unknown | 672 |
// Screen Readers
// -------------------------
.sr-only { @include sr-only(); }
.sr-only-focusable { @include sr-only-focusable(); }
| 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_screen-reader.scss | SCSS | unknown | 134 |
// Stacked Icons
// -------------------------
.#{$fa-css-prefix}-stack {
position: relative;
display: inline-block;
width: 2em;
height: 2em;
line-height: 2em;
vertical-align: middle;
}
.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
position: absolute;
left: 0;
width: 100%;
text-align: c... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_stacked.scss | SCSS | unknown | 482 |
// Variables
// --------------------------
$fa-font-path: "../fonts" !default;
$fa-font-size-base: 14px !default;
$fa-line-height-base: 1 !default;
//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.7.0/fonts" !default; // for referencing Bootstrap CDN font files directly
$fa-css-prefix: ... | 2301_76469554/Bootstrap_project | static/plugins/font-awesome-4.7.0/scss/_variables.scss | SCSS | unknown | 22,644 |
import java.util.Scanner;
public class maijipiao { // 类名首字母大写(规范)
// 只创建一个Scanner对象,全局复用(避免重复创建)
private static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
/*
机票价格按照淡季旺季、头等舱和经济舱收费、输入机票原价、月份和头等舱或经济舱。
按照如下规则计算机票价格:旺季(5-10月)头等舱9折,经济舱8.5折,淡季(11月到来年4月)头等舱... | 2301_76974020/private | TicketCalculator.java | Java | unknown | 3,557 |
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern ADC_HandleTypeDef hadc1;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_ADC1_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototypes */
#ifdef __cplusplus
}
#endif
#endif /*... | 2301_76993462/myproject | Core/Inc/adc.h | C | unknown | 335 |
#ifndef __GPIO_H__
#define __GPIO_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_GPIO_Init(void);
/* USER CODE BEGIN Prototypes */
/* USER CODE END Prototy... | 2301_76993462/myproject | Core/Inc/gpio.h | C | unknown | 381 |
#ifndef __I2C_H__
#define __I2C_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern I2C_HandleTypeDef hi2c1;
extern I2C_HandleTypeDef hi2c2;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_I2C1_Init(vo... | 2301_76993462/myproject | Core/Inc/i2c.h | C | unknown | 470 |
#ifndef __MAIN_H
#define __MAIN_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32g0xx_hal.h"
#include "stm32g0xx_ll_rcc.h"
#include "stm32g0xx_ll_bus.h"
#include "stm32g0xx_ll_system.h"
#include "stm32g0xx_ll_exti.h"
#include "stm32g0xx_ll_cortex.h"
#include "stm32g0xx_ll_utils.h"
#include "stm32g0xx_ll_pwr.h... | 2301_76993462/myproject | Core/Inc/main.h | C | unknown | 814 |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32_assert.h
* @brief STM32 assert file.
******************************************************************************
* @attention
*
* Copyright (c) 2024 STMicroelectronics.
*... | 2301_76993462/myproject | Core/Inc/stm32_assert.h | C | unknown | 1,892 |
#ifndef STM32G0xx_HAL_CONF_H
#define STM32G0xx_HAL_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* ########################## Module Selection ###########... | 2301_76993462/myproject | Core/Inc/stm32g0xx_hal_conf.h | C | unknown | 11,332 |
#ifndef __STM32G0xx_IT_H
#define __STM32G0xx_IT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* U... | 2301_76993462/myproject | Core/Inc/stm32g0xx_it.h | C | unknown | 1,042 |
#ifndef __TIM_H__
#define __TIM_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern TIM_HandleTypeDef htim3;
extern TIM_HandleTypeDef htim14;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_TIM3_Init(v... | 2301_76993462/myproject | Core/Inc/tim.h | C | unknown | 472 |
#ifndef __USART_H__
#define __USART_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
/* USER CODE BEGIN Includes */
/* USER CODE END Includes */
extern UART_HandleTypeDef huart2;
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */
void MX_USART2_UART_Init(void);
/* USER CODE B... | 2301_76993462/myproject | Core/Inc/usart.h | C | unknown | 427 |
#ifndef INC_USER_QC_GET_H_
#define INC_USER_QC_GET_H_
void QC_DP_Init(void);
u8 QC_Check(void);
void QC2_adj(u8 vol);
void QC3_adj(u8 direct);
void QC_DeInit(void);
#endif
| 2301_76993462/myproject | Core/Inc/user/QC_Get.h | C | unknown | 175 |
#ifndef INC_USER_INA220_H_
#define INC_USER_INA220_H_
#include "main.h"
#include "stdlib.h"
#define CFG_REG 0x00 //配置寄存器
#define SV_REG 0x01 //分流电压, 此处分流电阻为5mΩ
#define BV_REG 0x02 //总线电压
#define PWR_REG 0x03 //电源功率
#define CUR_REG 0x04 //电流
#define CAL_REG 0x05 //校准,设定满量程范围以及电流和功率测数的
#defi... | 2301_76993462/myproject | Core/Inc/user/ina220.h | C | unknown | 687 |
#ifndef INC_USER_MENU_H_
#define INC_USER_MENU_H_
extern void (*current_operation_index)();
typedef struct
{
unsigned char current;
unsigned char up;//上键
unsigned char down;//下键
unsigned char enter;//确认键
void (*current_operation)();
} key_table;
void fun0(void);
void fun1(void);
void fun2(v... | 2301_76993462/myproject | Core/Inc/user/menu.h | C | unknown | 642 |
#ifndef INC_USER_OLED_H_
#define INC_USER_OLED_H_
#include "main.h"
#include "stdlib.h"
//设备地址
#define OLED_ADDRESS 0x78
typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#define OLED_CMD 0 //写命令
#define OLED_DATA 1 //写数据
//OLED控制用函数
void OLED_Refresh(void);
void OLED_WR_Byte(unsigned dat,unsigned... | 2301_76993462/myproject | Core/Inc/user/oled.h | C | unknown | 1,504 |
#ifndef INC_USER_OLEDFONT_H_
#define INC_USER_OLEDFONT_H_
const unsigned char asc2_0806[][6] =
{
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00},// sp
{0x00, 0x00, 0x00, 0x2f, 0x00, 0x00},// !
{0x00, 0x00, 0x07, 0x00, 0x07, 0x00},// "
{0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14},// #
{0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12},// $
{0x00, 0x62,... | 2301_76993462/myproject | Core/Inc/user/oledfont.h | C | unknown | 25,209 |
#include "adc.h"
ADC_HandleTypeDef hadc1;
/* ADC1 init function */
void MX_ADC1_Init(void)
{
/* USER CODE BEGIN ADC1_Init 0 */
/* USER CODE END ADC1_Init 0 */
ADC_ChannelConfTypeDef sConfig = {0};
/* USER CODE BEGIN ADC1_Init 1 */
/* USER CODE END ADC1_Init 1 */
/** Configure the global features of ... | 2301_76993462/myproject | Core/Src/adc.c | C | unknown | 2,727 |
#include "gpio.h"
void MX_GPIO_Init(void)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOB_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
/*Configure GPIO pins : PA4 PA5 PA6 PA7 */
GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
GPIO_InitStruct.Mod... | 2301_76993462/myproject | Core/Src/gpio.c | C | unknown | 476 |
#include "i2c.h"
/* USER CODE BEGIN 0 */
/* USER CODE END 0 */
I2C_HandleTypeDef hi2c1;
I2C_HandleTypeDef hi2c2;
/* I2C1 init function */
void MX_I2C1_Init(void)
{
/* USER CODE BEGIN I2C1_Init 0 */
/* USER CODE END I2C1_Init 0 */
/* USER CODE BEGIN I2C1_Init 1 */
/* USER CODE END I2C1_Init 1 */
hi2c1.... | 2301_76993462/myproject | Core/Src/i2c.c | C | unknown | 4,428 |
#include "main.h"
#include "i2c.h"
#include "tim.h"
#include "usart.h"
#include "gpio.h"
#include "user/oled.h"
#include "user/ina220.h"
#include "user/menu.h"
#include "adc.h"
#include "user/QC_Get.h"
#define voltage ina220_data[0]
#define current ina220_data[1]
#define power ina220_data[2]
#define energy ina220_data... | 2301_76993462/myproject | Core/Src/main.c | C | unknown | 4,626 |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_hal_msp.c
* @brief This file provides code for the MSP Initialization
* and de-Initialization codes.
**************************************************... | 2301_76993462/myproject | Core/Src/stm32g0xx_hal_msp.c | C | unknown | 2,148 |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32g0xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
* @attention
*
* Copyright (c) 2024 STMicroelectro... | 2301_76993462/myproject | Core/Src/stm32g0xx_it.c | C | unknown | 5,097 |
/**
******************************************************************************
* @file system_stm32g0xx.c
* @author MCD Application Team
* @brief CMSIS Cortex-M0+ Device Peripheral Access Layer System Source File
*
* This file provides two functions and one global variable to be called from
* ... | 2301_76993462/myproject | Core/Src/system_stm32g0xx.c | C | unknown | 11,462 |
#include "tim.h"
TIM_HandleTypeDef htim3;
TIM_HandleTypeDef htim14;
/* TIM3 init function */
void MX_TIM3_Init(void)
{
/* USER CODE BEGIN TIM3_Init 0 */
/* USER CODE END TIM3_Init 0 */
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
TIM_MasterConfigTypeDef sMasterConfig = {0};
htim3.Instance = TIM3;
... | 2301_76993462/myproject | Core/Src/tim.c | C | unknown | 2,106 |
#include "usart.h"
UART_HandleTypeDef huart2;
/* USART2 init function */
void MX_USART2_UART_Init(void)
{
huart2.Instance = USART2;
huart2.Init.BaudRate = 115200;
huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE;
huart2.Init.Mode =... | 2301_76993462/myproject | Core/Src/usart.c | C | unknown | 1,875 |
#include "main.h"
#include "adc.h"
#define DP0_0V QC_DP_vol(0)
#define DP0_6V QC_DP_vol(6)
#define DP3_3V QC_DP_vol(33)
#define DM0_0V QC_DM_vol(0)
#define DM0_6V QC_DM_vol(6)
#define DM3_3V QC_DM_vol(33)
extern u8 QC_handshake;
extern u8 voltage_num;
extern u8 adj_up,adj_down;//电压+、电压-
extern u8 func_index;
... | 2301_76993462/myproject | Core/Src/user/QC_Get.c | C | unknown | 3,726 |
#include "user/ina220.h"
extern I2C_HandleTypeDef hi2c1;
u16 INA220_GetVoltage(void)
{
u16 temp=0;
u8 buffer[2] = {0,0};
HAL_I2C_Mem_Read(&hi2c1,INA220_ADDR,BV_REG,I2C_MEMADD_SIZE_8BIT,&buffer[0],2,100);
temp = buffer[0]<<8|buffer[1];
temp >>= 3;
temp *= 4;
return temp;
}
//读取电流 1mA/bit
u16 INA220_GetCurre... | 2301_76993462/myproject | Core/Src/user/ina220.c | C | unknown | 1,272 |
#include "user/oled.h"
#include "i2c.h"
#include "user/menu.h"
#include "user/QC_Get.h"
#define voltage ina220_data[0]
#define current ina220_data[1]
#define power ina220_data[2]
#define energy ina220_data[3]
extern u16 ina220_data[4];
extern u8 func_index;
extern u8 adj_down,adj_up;//-、+
extern u8 oled_on;
extern u... | 2301_76993462/myproject | Core/Src/user/menu.c | C | unknown | 11,871 |
#include "user/oled.h"
#include "stdlib.h"
#include "user/oledfont.h"
extern I2C_HandleTypeDef hi2c2;
u8 OLED_GRAM[8][128];//显存
void Write_IIC_Command(unsigned char I2C_Command)//写命令
{
uint8_t *pData;
pData = &I2C_Command;
HAL_I2C_Mem_Write(&hi2c2,OLED_ADDRESS,0x00,I2C_MEMADD_SIZE_8BIT,pData,1,100);
}
void... | 2301_76993462/myproject | Core/Src/user/oled.c | C | unknown | 6,943 |
/**
******************************************************************************
* @file startup_stm32g030xx.s
* @author MCD Application Team
* @brief STM32G030xx devices vector table GCC toolchain.
* This module performs:
* - Set the initial SP
* - S... | 2301_76993462/myproject | Core/Startup/startup_stm32g030f6px.s | Unix Assembly | unknown | 8,980 |
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <vector>
#include <unordered_set>
#include <string>
#include <algorithm> // 添加该头文件用于打乱
#include "easyrdlist.h"
using namespace std;
// 定义变量
bool f = false; //为第24行定义旗帜
int n, m;
char t;
vector<int> r; // 存储权重抽取的人员索引
unordered_set<int> drawn; // 用于记录已经抽... | 2301_77103943/WeightedRandomSelectionTool | 权重式随机抽取工具.cpp | C++ | agpl-3.0 | 3,475 |
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
</style>
| 2301_77385112/TEST | App.vue | Vue | unknown | 254 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width... | 2301_77385112/TEST | index.html | HTML | unknown | 744 |
import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
const app = createSSRApp(App)
... | 2301_77385112/TEST | main.js | JavaScript | unknown | 352 |
<template>
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
}
}
</script>
<s... | 2301_77385112/TEST | pages/index/index.vue | Vue | unknown | 694 |
uni.addInterceptor({
returnValue (res) {
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
return res;
}
return new Promise((resolve, reject) => {
res.then((res) => {
if (!res) return resolve(res)
return res[0] ? reject... | 2301_77385112/TEST | uni.promisify.adaptor.js | JavaScript | unknown | 373 |
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* ... | 2301_77385112/TEST | uni.scss | SCSS | unknown | 2,217 |
<?php
/*
* 支付宝当面付极简版(生成付款链接)
* 只需配置以下三个参数:
*/
$config = [
'app_id' => '', // 应用APPID
'private_key' => <<<EOD
-----BEGIN RSA PRIVATE KEY-----
应用私钥
-----END RSA PRIVATE KEY-----
EOD,
'alipay_public_key' => <<<EOD
-----BEGIN PUBLIC KEY-----
支付宝公钥
-----END PUBLIC KEY-----
EOD
];
/... | 2301_77417188/alipay | pay.php | PHP | unknown | 2,244 |