Skip to content

Instantly share code, notes, and snippets.

View fortunehan's full-sized avatar

fortunehan fortunehan

  • China
  • 04:09 (UTC +08:00)
View GitHub Profile
#install compass
gem sources --remove http://rubygems.org/
gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/
gem sources -l
gem install sass -v 3.2.12
gem install compass -v 0.12.2
@fortunehan
fortunehan / 查找Domain对应的IP
Last active August 4, 2020 06:31
Windows CMD Commands
nslookup <domain>
@fortunehan
fortunehan / Git Cheat Sheet.md
Last active August 4, 2020 04:17
Git Cheat Sheet

git rm 将本地和仓库中的文件都删除

git rm --cached 只删除远程库中的文件, 保留文件在本地, 配合gitignore, 将本地文件不再进入git管理中

  • 当不想在跟踪文件, 但该文件已已经被跟踪过或提交过仓库时
  • push到remote后, 会将文件从remote仓库删除掉, 本地的文件不会被删除, 而是被标记为未跟踪状态
  • 这种忽略操作是对该分支所有人都生效的, 即其他人拉取该分支后, 该文件也不会被跟踪了
@fortunehan
fortunehan / HTML渲染特殊符号.md
Last active August 2, 2020 15:07
CSS Cheat Sheet
@fortunehan
fortunehan / ProFeatures.vue
Last active August 2, 2020 07:21
vuetify cheatsheet
<template>
<div id="pro-features">
<v-container>
<v-row align="center" justify="center">
<v-col cols="12">
<v-simple-table>
<thead>
<tr>
<th />
<th class="text-center">
@fortunehan
fortunehan / index.html
Created August 1, 2020 13:35
vue playground
<div id="app">
<h1>{{ header }}</h1>
<p>Feel free to edit the HTML, JavaScript and CSS in this playground. The preview will update in real-time, so that
you can visually explore your ideas.</p>
<button @click="sayHi">Say Hi <span class="fa fa-heart" /></button>
</div>
@fortunehan
fortunehan / config.xml
Created June 18, 2018 02:06
[cordova] config.xml 有两个 请修改 staging 目录下的 config.xml
<allow-navigation href=":///*" />