Skip to content

Instantly share code, notes, and snippets.

☃️
Focusing

胡椒 movii

☃️
Focusing
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
movii / 1-setup.md
Created May 6, 2019 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra
View 1-setup.md

Methods of Signing with GPG

There are now two ways to approach this:

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

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 Krypt.co.

@movii
movii / mian.js
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View mian.js
// 进、出很多很多层文件目录去找到目标依赖文件
import example from '../../../../../../a/b/c/file'
@movii
movii / command.sh
Created Dec 8, 2018
笔记:配合 Vue.js 配置 Webpack(二)
View command.sh
# 重启 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
movii / options.scss
Last active Dec 7, 2018
笔记:配合 Vue.js 配置 Webpack(二)CSS 部分
View options.scss
// options.scss
$red: #ff0000;
@movii
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
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: https://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions
* 2. https://stackoverflow.com/questions/52321212/iphone-xr-xs-xs-max-css-media-queries
* 3. https://stackoverflow.com/questions/46313640/iphone-x-8-8-plus-css-media-queries
*/
/*
* iPhone X & iPhone XS
* 2436px x 1125px at 458ppi
@movii
movii / schema-org-structured-data-markup-using-microdata.html An example of how to mark up a HTML5 webpage using the schema.org schemas and microdata.
View schema-org-structured-data-markup-using-microdata.html
<!DOCTYPE html>
<html lang="en">
<head>
<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
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 (
"log"
"net"
"strconv"
"strings"
)
const (
You can’t perform that action at this time.