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
#!/system/bin/sh | |
#---------------------------------------- | |
# Author: boboidream | |
# Email: [email protected] | |
# Version: 0.0.3 | |
# Date: 2018.08.29 | |
#---------------------------------------- | |
boot='iptv' # iptv | dangbei |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# tv.py | |
# | |
# Copyright 2017 Nocmt <[email protected]> | |
import re | |
import datetime | |
import argparse |
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
// 从剪切板粘贴图片 | |
$document.on('paste', '.my_editor pre', function(ev) { | |
var clipboardData, file, item, j, k, ref1, len | |
var clipboardData = (ev.originalEvent || ev).clipboardData | |
var $my_editor = $(this).closest('.my_editor') | |
var text = (ev.originalEvent || ev).clipboardData.getData('Text') // 获取到纯文本 | |
if (text) { | |
ev.preventDefault(); | |
text.replace(/\n/g, '<br/>') |
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 camelize(str) { | |
return (str + "").replace(/-\D/g, | |
function(match) { | |
return match.charAt(1).toUpperCase(); | |
}); | |
} | |
camelize("border-bottom-color"); // "borderBottomColor" | |
function hyphenate(str) { | |
return (str + "").replace(/[A-Z]/g, |
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
root = true | |
[*] | |
charset = utf-8 | |
indent_size = 2 | |
end_of_line = lf | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
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
/* 卡片阴影 */ | |
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08); |
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
// Create dir recursively if it does not exist! | |
const targetDir = 'path/to/dir'; | |
targetDir.split('/').forEach((dir, index, splits) => { | |
const parent = splits.slice(0, index).join('/'); | |
const dirPath = path.resolve(parent, dir); | |
if (!fs.existsSync(dirPath)) { | |
fs.mkdirSync(dirPath); | |
} | |
}); |
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 renderDept(userInfo) { | |
var bgs = [], | |
dps = [], | |
centers = [], | |
dept_compiled = '', | |
dept_html = '' | |
var getBg = function() { |
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
$(window).on 'scroll', -> | |
nowScrollTop = $(this).scrollTop() | |
if nowScrollTop > 80 & nowScrollTop > lastScrollTop | |
$gFilter.fadeOut() | |
else if nowScrollTop < lastScrollTop | |
$gFilter.fadeIn() | |
lastScrollTop = nowScrollTop | |
# 内部滚动不影响外部 BODY 滚动 |