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
alias gitstart='eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
' | |
alias copy='xclip -selection clipboard' | |
# alias bjson='python -m json.tool' # beautify json | |
bjsonStr(){ | |
echo "$1" | python3 -m json.tool | |
} | |
bjsonFile(){ | |
python3 -m json.tool "$1" |
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 QtQuick 2.15 | |
Rectangle { | |
id:rootRect | |
property int currentValue:0; | |
property int maxValue:100; | |
property int minValue:0; | |
property color colorBar:"#7ec26e"; | |
property alias textBar: barText |
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
//////// demo online: https://quick-bench.com/q/TYcfwD0khRpbE53rn8cRtn7nmvA | |
#include <vector> | |
#include <cstddef> | |
static constexpr auto totalVecSize = 99'999; | |
struct __attribute__ ((packed)) AAA_packed { | |
int a; | |
char b; | |
float c; |
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
#include "ProcedualSpline.h" | |
#include "AwesomeStruct.h" | |
FAwesomeStruct FAwesomeStruct::BuildAwesomeStruct( | |
FVector AwesomeVector, | |
bool AwesomeBoolean, | |
float AwesomeFloat, | |
int32 AwesomeInteger, | |
FRotator AwesomeRotator | |
) |
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
# - Try to find FFMPEG | |
# Once done this will define | |
# FFMPEG_FOUND - System has FFMPEG | |
# FFMPEG_INCLUDE_DIRS - The FFMPEG include directories | |
# FFMPEG_LIBRARIES - The libraries needed to use FFMPEG | |
# FFMPEG_LIBRARY_DIRS - The directory to find FFMPEG libraries | |
# | |
# written by Roy Shilkrot 2013 http://www.morethantechnical.com/ | |
# |
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
win1 = window.open("https://www.binance.com/en/price/binance-usd") | |
var windowObject = win1.document | |
var counter = 0 | |
timer1 = setInterval(function() { | |
win1.location.href = "https://www.binance.com/en/price/binance-usd" | |
counter++ | |
console.log("Counter: ", counter) | |
// if (windowObject < win1.document || windowObject > win1.document) { | |
// alert("Hi diffrent page") | |
// } |
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
//https://github.com/google/benchmark/issues/1157 | |
#include <benchmark/benchmark.h> | |
#include <vector> | |
#include <future> | |
#include <numeric> | |
#include <span> | |
using NumberType = float; | |
using ReduceType = double; |
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
# Checkout config tool: https://zed0.co.uk/clang-format-configurator/ | |
# Or http://cf.monofraps.net/ | |
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
# https://github.com/01org/parameter-framework/blob/master/.clang-format | |
# Tested on: clang-format version 6.0.1 | |
# Common settings | |
BasedOnStyle: WebKit |
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
# Download RapidJSON | |
ExternalProject_Add( | |
rapidjson | |
PREFIX "vendor/rapidjson" | |
GIT_REPOSITORY "https://github.com/Tencent/rapidjson.git" | |
GIT_TAG f54b0e47a08782a6131cc3d60f94d038fa6e0a51 | |
TIMEOUT 10 | |
CMAKE_ARGS | |
-DRAPIDJSON_BUILD_TESTS=OFF | |
-DRAPIDJSON_BUILD_DOC=OFF |
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
#ifndef COLLAPSED_WIDGET_H | |
#define COLLAPSED_WIDGET_H | |
#include <QFrame> | |
#include <QGridLayout> | |
#include <QParallelAnimationGroup> | |
#include <QPropertyAnimation> | |
#include <QScrollArea> | |
#include <QToolButton> | |
#include <QWidget> |