Skip to content

Instantly share code, notes, and snippets.


胡椒 movii

Block or report user

Report or block movii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
movii /
Created May 6, 2019 — forked from troyfontaine/
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or

movii / mian.js
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View mian.js
// 进、出很多很多层文件目录去找到目标依赖文件
import example from '../../../../../../a/b/c/file'
movii /
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
# 重启 Webpack,不过这次需要输入的是部署生产环境的命令:
npm run production
# 或者
export NODE_ENV=production && npx webpack
View main.scss.patch
-body {background: #000000; color: #ff0000;}
+@import '~somepackage/options';
+body {
+ background: #000000;
+ color: $red;
movii / options.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)CSS 部分
View options.scss
// options.scss
$red: #ff0000;
movii / main.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View main.scss
//忽略前缀的 ./node_modules/
import 'somepackage/options';
View 1.webpack.config.js.patch
// 在 webpack.config.js 中通过 resolve.alias
// 预定义“目标文件夹”的 shortcut
module.exports = {
filename: 'bundle.js',
publicPath: 'http://localhost:1333/dist/'
+ resolve:{
+ alias: {
+ JS_ROOT: path.resolve(__dirname, 'src/'),
movii / main.css
Last active Dec 3, 2018
Combined CSS Media Query for iPhone X/Xs, iPhone Xs Max, iPhone XR.
View main.css
* reference:
* 1. ref:
* 2.
* 3.
* iPhone X & iPhone XS
* 2436px x 1125px at 458ppi
movii / schema-org-structured-data-markup-using-microdata.html An example of how to mark up a HTML5 webpage using the schemas and microdata.
View schema-org-structured-data-markup-using-microdata.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Site Title</title>
<link rel="stylesheet" href="/assets/css/style.min.css">
movii / client.go
Created Jul 1, 2018 — forked from kenshinx/client.go
golang socket server & client ping-pong demo
View client.go
package main
import (
const (
You can’t perform that action at this time.