Skip to content

Instantly share code, notes, and snippets.

View Darkborderman's full-sized avatar

Darkborderman Darkborderman

View GitHub Profile
This file has been truncated, but you can view the full file.
{"$meta": {"advisory": "PyUp.io metadata", "timestamp": 1685376188, "last_updated": "2023-05-29 16:03:08", "base_domain": "https://pyup.io", "schema_version": "1.0.0", "attribution": "Licensed under CC-BY-4.0 by pyup.io"}, "google-images-search": [{"specs": ["<1.3.8"], "advisory": "Google-images-search 1.3.8 updates its dependency 'Pillow' to version 8.1.1 to include security fixes.", "transitive": true, "more_info_path": "/v/43481/f17", "id": "pyup.io-43481", "type": "cve", "cve": "CVE-2021-25292"}, {"specs": ["<1.3.8"], "advisory": "Google-images-search 1.3.8 updates its dependency 'Pillow' to version 8.1.1 to include security fixes.", "transitive": true, "more_info_path": "/v/43484/f17", "id": "pyup.io-43484", "type": "cve", "cve": "CVE-2021-25290"}, {"specs": ["<1.3.8"], "advisory": "Google-images-search 1.3.8 updates its dependency 'Pillow' to version 8.1.1 to include security fixes.", "transitive": true, "more_info_path": "/v/43483/f17", "id": "pyup.io-43483", "type": "cve", "cve": "CVE-2021-25291"}, {"
@Darkborderman
Darkborderman / Change CRLF to LF to all Files.md
Created May 23, 2023 09:13 — forked from tjsudarsan/Change CRLF to LF to all Files.md
Change End of Line Sequence from CRLF to LF to all files in the project for supporting ESLint

Converting the End of Line Sequence from CRLF to LF in any of your project files

Execute the following commands in your root of your project folder

NOTE: Do not do the following steps without commiting your data. As it clears all the git cache and it will clear all your changes in your project.

  1. First disable the autoCRLF in the git config by running the following command in your terminal git config core.autocrlf false

  2. Then remove the cached files in the git. Run the following command:

@Darkborderman
Darkborderman / .gitattributes
Created May 18, 2023 08:53
.gitattributes for default repos
* text=auto eol=lf
* linguist-detectable
@Darkborderman
Darkborderman / rust-vs-go.md
Created October 26, 2021 11:18 — forked from weihanglo/rust-vs-go.md
【譯】Rust vs. Go

【譯】Rust vs. Go

本文譯自 Julio MerinoRust vs. Go。Julio Merino 目前是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。

Thanks Julio Merino for this awesome article!


@Darkborderman
Darkborderman / rimworld-xml-patching.md
Created March 9, 2021 21:18 — forked from Lanilor/rimworld-xml-patching.md
Random stuff about XML patching

Notes

  • This document is still a draft. Don't rely on any information until it is done and tested.
  • This is a more advanced guide with some special cases, improvements and optimizations. If you need to know the basics, read this guide.

Compatibility patches (with FindMod)

You can use cores PatchOperationFindMod to create conditional patches when certain mods are loaded without the need of an external library.

<Operation Class="PatchOperationFindMod">
    <mods>
#include <stdio.h>
void addEdge(int source,int target,int weight);
int graph[5][5]={0};
int main()
{
//Init
int parent[5]; //I'th parent
#include<iostream>
using namespace std;
int main(){
//1 2 3 4
//1 2 5 6
int price[4]={1,2,5,6};
int size;
//input size and initialize DP table
#include<iostream>
#include<cstdio>
using namespace std;
void addEdge(int source,int target,int weight);
void BellmanFord();
int w(int source,int target);
#include<iostream>
#include<cstdio>
using namespace std;
void addEdge(int source,int target,int weight);
void Floyd();
int w(int source,int target);
@Darkborderman
Darkborderman / draw.js
Last active May 23, 2018 01:25
Retro game color palette
document.addEventListener('DOMContentLoaded',function(){
for(colorData in color) draw(colorData);
});
function draw(data){
let canvas=document.getElementById(data);
canvas.height=Config.tile.height;
canvas.width=Config.tile.width*color[data].length;
let context=canvas.getContext('2d');
for(let i=0;i<=color[data].length-1;i++)