Skip to content

Instantly share code, notes, and snippets.

View imfycc's full-sized avatar
😸
Coding...

imfycc

😸
Coding...
View GitHub Profile
@imfycc
imfycc / css_1_px.scss
Created December 26, 2020 00:27
css_1_px
/**
* 简单1px解决方案
*/
@mixin _hairline($x, $y, $type) {
position: absolute;
content: "";
#{$x}: 0;
#{$y}: 0;
#{$type}: 100%;
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@imfycc
imfycc / changeGitCommitInfo.sh
Last active March 8, 2017 02:52
批量修改git提交的脚本
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "以前写的邮箱" ]
@imfycc
imfycc / css_wrap
Last active April 11, 2017 03:25
css换行与不换行
自动换行
div{
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
}
强迫不换行
div{
white-space:nowrap;
@imfycc
imfycc / CSS3_shadow
Created February 21, 2016 15:15
CSS3阴影效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Vic http://hufangyun.com">
<style>
.box{
width:100px;
height:100px;
background:green;
@imfycc
imfycc / CSS3_transition
Created February 21, 2016 15:07
CSS3 旋转、放大、移动效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="author" content="Vic http://hufangyun.com">
<title>CSS3 Demo1</title>
<style>
.style {
margin:20px;