Skip to content

Instantly share code, notes, and snippets.

View sfc9982's full-sized avatar

Jackson Chen sfc9982

View GitHub Profile
@sfc9982
sfc9982 / bf1.js
Created January 31, 2024 07:52
bf1 emblem
var request=new XMLHttpRequest;request.open("POST","https://companion-api.battlefield.com/jsonrpc/web/api?Emblems.newPrivateEmblem",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var e=JSON.parse(request.responseText);e.result?window.location.href=window.location.href.replace("/new","/edit/")+e.result.slot:alert("Error")}},request.setRequestHeader("Content-Type","application/json;charset=UTF-8"),request.setRequestHeader("X-GatewaySession",localStorage.gatewaySessionId),data={jsonrpc:"2.0",method:"Emblems.newPrivateEmblem",params:{data:'[{"opacity":1,"angle":0,"flipX":false,"flipY":false,"top":193.024727256,"height":283.610264383,"width":341.4101049164,"asset":"Square","selectable":false,"left":163.7280409639,"fill":"#764B3B"},{"opacity":1,"angle":139.0486771053,"flipX":false,"flipY":false,"top":726.450461304,"height":1259.2651522749,"width":820.7547591974,"asset":"Wing1","selectable":false,"left":501.0211582229,"fill":"#000000"},{"opacity":0.85,"angle":179.331273152,"fli
@sfc9982
sfc9982 / gist:c97b01c65db2fe2c235d094cc5560c1b
Created December 20, 2023 09:43
Intel Parallel Studio XE 2015 Update 6
https://registrationcenter-download.intel.com/akdlm/irc_nas/8462/parallel_studio_xe_2015_update6_setup.exe
parallel_studio_xe_2015_update6_setup.exe
@sfc9982
sfc9982 / arithmetic_encode.cpp
Last active August 13, 2023 15:11
Arithmetic Encode
#include <boost/multiprecision/cpp_bin_float.hpp>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
using mp_float = boost::multiprecision::cpp_bin_float_100;
@sfc9982
sfc9982 / float_bitwise.cpp
Last active August 17, 2023 07:29
Absolute value of a double in C++23
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <iomanip>
#include <iostream>
constexpr uint64_t mask = 0x7fffffffffffffff;
constexpr double d1 = -3.1415926;
void print(double (&func)(double), double x) {
@sfc9982
sfc9982 / route.sh
Created October 2, 2022 08:01 — forked from kevinzhow/route.sh
AnyConnect 路由表
route = 8.0.0.0/255.0.0.0
route = 58.0.0.0/255.0.0.0
route = 23.0.0.0/255.0.0.0
route = 117.0.0.0/255.0.0.0
route = 199.0.0.0/255.0.0.0
route = 190.0.0.0/255.0.0.0
route = 198.0.0.0/255.0.0.0
route = 173.0.0.0/255.0.0.0
route = 174.0.0.0/255.0.0.0
route = 168.0.0.0/255.0.0.0
@sfc9982
sfc9982 / semantic-commit-messages.md
Created December 20, 2021 01:36 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@sfc9982
sfc9982 / fastio.hpp
Created November 11, 2021 08:10 — forked from cmpute/fastio.hpp
Code Snippets for IO Bursting in OJ
/*
* OJ中加速IO常用的代码片段
* Author Jacob C
* THU_ID 2014010812
*/
//OJ中常用的头文件和预编译指令
#ifndef _OJ_
#define DEBUG
#endif
NOIP2018 初赛 get√