using svg automaticly generate fonts by gulp-iconfont
這篇主要是要講如何使用 SVG 圖檔來生成 icon font,
並且要讓這 icon font 能順利在 CSS preprocessor tool 下接軌
目前 github demo repo 是使用 stylus preprocessor
| <?php | |
| $PROXY = 'https://yourdomain.top/proxy.php?url='; | |
| # This script forwards the call | |
| # Check for url parameter, and prevent file transfer | |
| if (isset($_GET['url']) and preg_match('#^https?://#', $_GET['url']) === 1) { | |
| $url .= $_GET['url']; | |
| } else { |
| <?php | |
| class HZip { | |
| /** | |
| * Add files and sub-directories in a folder to zip file. | |
| * @param string $folder | |
| * @param ZipArchive $zipFile | |
| * @param int $exclusiveLength Number of text to be exclusived from the file path. | |
| */ | |
| private static function folderToZip($folder, &$zipFile, $exclusiveLength) { |
| var url = "http://example.com:3000/pathname/?search=test#hash"; | |
| var _a = new URL(url); | |
| _a.protocol; // => "http:" | |
| _a.hostname; // => "example.com" | |
| _a.port; // => "3000" | |
| _a.pathname; // => "/pathname/" | |
| _a.search; // => "?search=test" | |
| _a.hash; // => "#hash" |
| #!/usr/bin/env bash | |
| # MIT © Sindre Sorhus - sindresorhus.com | |
| # git hook to run a command after `git pull` if a specified file was changed | |
| # Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
| changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
| check_run() { | |
| echo "$changed_files" | grep --quiet "$1" && eval "$2" |
| ALL | |
| All messages in the mailbox; the default initial key for | |
| ANDing. | |
| ANSWERED | |
| Messages with the \Answered flag set. | |
| BCC | |
| Messages that contain the specified string in the envelope | |
| structure's BCC field. |
| /** | |
| * Get YouTube ID from various YouTube URL | |
| * @author: takien | |
| * @url: http://takien.com | |
| * For PHP YouTube parser, go here http://takien.com/864 | |
| */ | |
| function YouTubeGetID(url){ | |
| var ID = ''; | |
| url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| #bar{ | |
| width:200px; | |
| height:25px; | |
| border:1px solid black; | |
| position:relative; |