This file contains 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
/*============================================================================ | |
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 |
This file contains 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 '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) { |
This file contains 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 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] == '/': |
This file contains 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 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); |
This file contains 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
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; |
This file contains 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
/* | |
* 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 |
This file contains 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
// ==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 |
This file contains 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
/* | |
* 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 |
NewerOlder