Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 2, 2025 02:29
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
// 2018.5.11更新: 减少了swap
function qSort(compare) {
var swap = (p1, p2) => {
var tmp = this[p1];
this[p1] = this[p2];
this[p2] = tmp;
}
var sortRange = (start, end) => {
var midValue = this[start];
var p1 = start + 1, p2 = end - 1;
@wintercn
wintercn / ktxp-thunder.js
Created November 17, 2013 16:33
糟糕的兴趣呢 嗯……
var names = [
/【猪猪字幕组】★4月新番 美食的俘虏Toriko 第\d*话/g,
/【Dymy字幕組】【魔笛_Magi 第二季】【\d*】/g,
/【Dymy字幕組】【東京暗鴉 Tokyo Ravens】【\d*】/g,
/\[OPFans枫雪动漫\]\[ONE PIECE 海贼王\]\[第\d*话\]/g,
/【极影字幕社】 ★物语系列/g
];
var request = new ActiveXObject("MSXML2.XmlHttp.6.0");
request.open("GET","http://bt.ktxp.com/index-1.html",false)
request.send(null);
@willurd
willurd / Getting started with requirejs.md
Last active August 7, 2024 06:24
A short introduction to require.js

This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.

At its core, require.js is about three things:

  1. Dependency management
  2. Modularity
  3. Dynamic script loading

The following files show how these are achieved.

[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active October 26, 2025 08:45
A badass list of frontend development resources I collected over time.
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@joelambert
joelambert / README
Created June 1, 2011 11:03
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
@stefanfoulis
stefanfoulis / osx_developer_installation.rst
Last active May 5, 2025 05:14
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.7 Lion.

Brew User