use lol_html::html_content::Element;
use lol_html::{element, HtmlRewriter, Settings};
use std::io;
use std::io::prelude::*;
fn rewrite_url_in_attr(el: &mut Element<'_, '_>, attr_name: &str) {
let attr = el
.get_attribute(attr_name)
.unwrap()
This file contains hidden or 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
#!/bin/sh /etc/rc.common | |
USE_PROCD=1 | |
START=99 | |
overture_start() { | |
procd_open_instance overture-$1 | |
procd_set_param command /etc/overture/overture-linux-amd64 -c /etc/overture/config.yml | |
procd_set_param pidfile /var/run/overture/overture-$1.pid |
This file contains hidden or 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
TypeScript 2 hrs 4 mins ███████████▏░░░░░░░░░ 53.3% | |
Java 1 hr 15 mins ██████▋░░░░░░░░░░░░░░ 32.1% | |
Markdown 14 mins █▎░░░░░░░░░░░░░░░░░░░ 6.4% | |
Other 9 mins ▊░░░░░░░░░░░░░░░░░░░░ 4.1% | |
XML 4 mins ▍░░░░░░░░░░░░░░░░░░░░ 1.9% |
This file contains hidden or 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
Node Version 8.9.4 |
This file contains hidden or 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
/** | |
* Sample of serverside generation of Highcharts using an extension to jsdom in node.js. | |
* | |
* Usage: | |
* npm install jsdom | |
* npm install highcharts | |
* node highcharts-jsdom | |
*/ | |
/* eslint-env node */ |
The basic structure of a React+Flux application (see other examples)
- /src/actions/AppActions.js - Action creators (Flux)
- /src/components/Application.js - The top-level React component
- /src/constants/ActionTypes.js - Action types (Flux)
- /src/core/Dispatcher.js - Dispatcher (Flux)
- /src/stores/AppStore.js - The main store (Flux)
The diff output is more specific:
[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.
>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.
This file contains hidden or 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
set -e | |
title='千尋影視' # dmg 文件 mount 了之后在文件系统中显示的名称 | |
background_picture_name='mac-dmg-bg.png' # dmg 文件在 mount 了之后界面中显示的背景图片路径 | |
application_name='千尋影視.app' # 应用程序的名称 | |
# Developer ID 证书的名称(名字的一部分即可,但是需要能在 Keychain Access 中唯一定位到该证书) | |
developer_id='Developer ID Application: Shanghai Truecolor Multimedia' | |
# dmg 窗口相关的一些设置,需要根据实际情况做变更 | |
window_left=200 # 窗口位置的 x 坐标 |
###预备条件
- BIOS 升级至 2.15,开启 ACHI,启用 F12 选择启动项
- GPT 分区,UEFI 引导的 win8.1 系统
- 预留最小约 40GB 磁盘空间,且未格式化
- 无线网卡是
AR9287
###制作安装U盘
- 下载
远景论坛U盘版.10.9.2.13C64.20140303.dmg
并使用TransMac刻录到U盘 - 拔插U盘,删除EFI文件
- 拷贝此处提供的EFI文件至刚才位置
This file contains hidden or 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() { | |
var path = require('path'), fs = require('fs'); | |
function walk(uri,filter,tree) { | |
var node = { | |
name : null, | |
children : [], | |
pNode : null, | |
}; | |
NewerOlder