.yarnrc
我们需要在 Rails 项目根目录配置 .yarnrc 告诉 Yarn 我们需要将 npm 的包缓存到 vendor/cache/npm 目录。
registry "https://registry.npm.taobao.org"
lastUpdateCheck 1561690751463
yarn-offline-mirror "./vendor/cache/npm"
yarn-offline-mirror-pruning true.yarnrc
我们需要在 Rails 项目根目录配置 .yarnrc 告诉 Yarn 我们需要将 npm 的包缓存到 vendor/cache/npm 目录。
registry "https://registry.npm.taobao.org"
lastUpdateCheck 1561690751463
yarn-offline-mirror "./vendor/cache/npm"
yarn-offline-mirror-pruning true| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <jess@linux.com> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
| #ifndef XORSHIFT_HPP_INCLUDED | |
| #define XORSHIFT_HPP_INCLUDED 1 | |
| /* | |
| * A C++ implementation of a family of truncated XorShift* generators. | |
| * | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2017-19 Melissa E. O'Neill | |
| * |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>CSS3 Checkbox</title> | |
| <style type="text/css"> | |
| .checkbox { | |
| width: 30px; | |
| height: 30px; | |
| background-color: #ddd; | |
| position: relative; |
| <html> | |
| <head> | |
| <title>Step progress bar</title> | |
| <style type="text/css"> | |
| .container { | |
| width: 100%; | |
| } | |
| .progressbar { | |
| counter-reset: step; | |
| } |
This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.
Here is an incomplete list of things that are different from other approaches:
| 15-05-25 10:27 | |
| #color{{{ | |
| autoload colors | |
| colors | |
| for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do | |
| eval _$color='%{$terminfo[bold]$fg[${(L)color}]%}' | |
| eval $color='%{$fg[${(L)color}]%}' | |
| (( count = $count + 1 )) |
| /* | |
| Copyright (c) 2024 Orson Peters <orsonpeters@gmail.com> | |
| This software is provided 'as-is', without any express or implied warranty. In no event will the | |
| authors be held liable for any damages arising from the use of this software. | |
| Permission is granted to anyone to use this software for any purpose, including commercial | |
| applications, and to alter it and redistribute it freely, subject to the following restrictions: | |
| 1. The origin of this software must not be misrepresented; you must not claim that you wrote the |
| # Thanks to this post: | |
| # http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x | |
| $ brew install cabextract | |
| $ cd ~/Downloads | |
| $ mkdir consolas | |
| $ cd consolas | |
| $ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe | |
| $ cabextract PowerPointViewer.exe | |
| $ cabextract ppviewer.cab |