Skip to content

Instantly share code, notes, and snippets.

View yisibl's full-sized avatar
🙈
🦀

一丝 yisibl

🙈
🦀
View GitHub Profile

An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.

Everything is broken up by tag, but within each the selectors aren't particularly ordered.

I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A

A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:

-webkit-appearance:none;

@yisibl
yisibl / Git-Command.md
Last active August 29, 2015 14:00
Git 常用命令
  1. 打开 Gitbash
  2. 使用 cd 命令用于切换到对应仓库的目录,cd .. 用于切换到上级目录,ls 用于查看当前目录下面的文件/夹
  3. 当修改了一段代码后,使用 git status 查看当前改动
  4. 如果需要把所有改动提交上去,使用 git add . 提交到缓冲区(此时文件并没有提交到远程仓库)
  5. 填写提交说明,使用 git commit -m '此处填写修改的内容' 命令
  6. 使用 git pull origin master 获取远程仓库master分支的最新改动。(如果远程仓库有更新,没有执行此步骤,无法进行下一步)
  7. 使用 git push origin master 提交改动到远程仓库
  8. github 的 Demo 默认使用 gh-pages 分支,Demo 地址是:http://用户名.github.io/仓库名/ 可以使用 git checkout gh-pages 切换到该分支(默认没有这个分支,需要使用git checkout -b gh-pages创建该分支)。

至此一次提交操作完成

@yisibl
yisibl / prefix.css
Last active August 29, 2015 13:56
Autoprefixer 测试用例
/**
* Autoprefixer 测试用例
* @author: 一丝
* @update: 2014-2-21 11:26:44;
*/
/* ==========================================================================
常用属性测试
========================================================================== */
@yisibl
yisibl / ie-transform.md
Created January 15, 2014 08:47
IE 旋转滤镜问题
@yisibl
yisibl / git-branch.md
Last active March 13, 2024 06:47
在Mac、Linux 终端显示 Git 当前所在分支

在Mac、Linux 终端显示 Git 当前所在分支

  1. 进入你的home目录
cd ~
  1. 编辑.bashrc文件
@yisibl
yisibl / SassMeister-input-HTML.html
Created December 24, 2013 03:12
Generated by SassMeister.com.
<!doctype html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>使用 SCSS 调用 iconfont</title>
<style>
body{
text-align:center;
}
</style>
@yisibl
yisibl / SassMeister-input.scss
Created December 20, 2013 08:45
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@yisibl
yisibl / SassMeister-input.scss
Created December 19, 2013 12:51
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
/* 注释怎么换行,而且保持SCSS中的缩进? */
@font-face {
font: {
family: icon;
@yisibl
yisibl / git-optimization.md
Last active June 28, 2023 14:59
Git 优化

Git 优化

在前两节中,我们安装完Git后,创建并备份了公钥,这篇教程让我们在使用 Git 时更加得心应手。

优化点

  • 解决各种Git下的中文问题
  • 显示中文文件夹或文件
  • 显示中文git log信息
  • 支持直接在bash输入中文
@yisibl
yisibl / git-key.md
Last active May 13, 2023 02:46
如何创建 Git 公钥

如何创建公钥

  1. 首先启动一个Git Bash窗口(非Windows用户直接打开终端)

  2. 执行:

    cd ~/.ssh

    如果返回“… No such file or directory”,说明没有生成过SSH Key,直接进入第4步。否则进入第3步备份!