Skip to content

Instantly share code, notes, and snippets.

@seven332
seven332 / Fxaa3_11.h
Created May 16, 2024 15:24 — forked from jwoolston/Fxaa3_11.h
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
/*============================================================================
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
------------------------------------------------------------------------------
COPYRIGHT (C) 2010, 2011 NVIDIA CORPORATION. ALL RIGHTS RESERVED.
------------------------------------------------------------------------------
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
@seven332
seven332 / html.dart
Created March 22, 2020 02:59
flutter html to InlineSpan
import 'package:flutter/gestures.dart';
import 'package:flutter/rendering.dart';
import 'package:html/dom.dart';
import 'package:html/parser.dart' as parser;
import 'html_color.dart' as htmlColor;
// TODO Add tag handler
// TODO Add GestureRecognizer for a tag
InlineSpan parse(String html, TextStyle style) {
import argparse
import os
import filecmp
import shutil
def dejoin(path, opath):
if path.startswith(opath):
path = path[len(opath):]
if len(path) >= 1 and path[0] == '\\' or path[0] == '/':
import java.util.Comparator;
public class NaturalSorter implements Comparator<String> {
@Override
public int compare(String o1, String o2) {
int index1 = 0;
int index2 = 0;
while (true) {
String data1 = nextSlice(o1, index1);
ikanman
country=%25u65E5%25u672C%7C%25u4E1C%25u4EAC
manhuagui
country=HX
function convertToAbsolute(path){
var x0,y0,x1,y1,x2,y2,segs = path.pathSegList;
for (var x=0,y=0,i=0,len=segs.numberOfItems;i<len;++i){
var seg = segs.getItem(i), c=seg.pathSegTypeAsLetter;
if (/[MLHVCSQTA]/.test(c)){
if ('x' in seg) x=seg.x;
if ('y' in seg) y=seg.y;
}else{
if ('x1' in seg) x1=x+seg.x1;
if ('x2' in seg) x2=x+seg.x2;
/*
* Copyright 2017 Hippo Seven
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
// ==UserScript==
// @name Steam Similar Game
// @namespace undefined
// @version 0.1
// @description Add a Similar Game Button
// @author Hippo Seven
// @match http*://store.steampowered.com/app/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name ThunderLixianExporter
// @namespace http://dynamic.cloud.vip.xunlei.com/
// @version 0.78.4
// @description export thunder lixian url to aria2/wget
// @include http://dynamic.cloud.vip.xunlei.com/user_task*
// @include http://lixian.vip.xunlei.com/lx3_task.html*
// @include http://jiayuan.xunlei.com/lxhome/lx3_task.html*
// @include http://cloud.vip.xunlei.com/*
// @run-at document-end
/*
* Copyright 2017 Hippo Seven
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software