Skip to content

Instantly share code, notes, and snippets.

View tiger8888's full-sized avatar
🎯
Focusing

tiger8888

🎯
Focusing
View GitHub Profile
@tiger8888
tiger8888 / mac-apps.md
Created March 28, 2018 06:30 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@tiger8888
tiger8888 / mac-apps.md
Created March 28, 2018 06:30 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@tiger8888
tiger8888 / yesOrNo.py
Created December 29, 2017 07:37 — forked from garrettdreyfus/yesOrNo.py
Dead simple python function for getting a yes or no answer.
def yes_or_no(question):
reply = str(raw_input(question+' (y/n): ')).lower().strip()
if reply[0] == 'y':
return True
if reply[0] == 'n':
return False
else:
return yes_or_no("Uhhhh... please enter ")
@tiger8888
tiger8888 / Go 语言学习.md
Created October 20, 2017 06:16 — forked from tupunco/Go 语言学习.md
Go 语言学习
@tiger8888
tiger8888 / jQuery-plugin-authoring.md
Created July 19, 2017 05:51 — forked from quexer/jQuery-plugin-authoring.md
如何编写 jQuery 插件

创建插件


看来 jQuery 你已经用得很爽了,想学习如何自己编写插件。非常好,这篇文档正适合你。用插件和方法来扩展 jQuery 非常强大,把最聪明的功能封装到插件中可以为你及团队节省大量开发时间。

开始

{
"scripts": {
"dev": "webpack-dev-server --hot --open",
"dist": "rm -rf public && NODE_ENV=production webpack --config webpack-dist.config.js --display-optimization-bailout",
"jbdist": "tnpm i && NODE_ENV=production webpack --config webpack-dist.config.js"
},
"dependencies": {
"babel-runtime": "^6.23.0",
"badjs-report": "^1.3.2",
"classnames": "^2.2.5",
@tiger8888
tiger8888 / toast.js
Created June 23, 2017 08:17 — forked from kamranzafar/toast.js
JQuery Mobile Android-style Toast popup
var toast=function(msg){
$("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h3>"+msg+"</h3></div>")
.css({ display: "block",
opacity: 0.90,
position: "fixed",
padding: "7px",
"text-align": "center",
width: "270px",
left: ($(window).width() - 284)/2,
top: $(window).height()/2 })
Axure RP 7.0注册码
用户名:axureuser
序列号:8wFfIX7a8hHq6yAy6T8zCz5R0NBKeVxo9IKu+kgKh79FL6IyPD6lK7G6+tqEV4LG
@tiger8888
tiger8888 / preprocessor_fun.h
Created March 1, 2017 08:03 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
CSS 1中定义的选择器
选择器 类型 说明
E 类型选择器 选择指定类型的元素
E#myid ID选择器 选择匹配E的元素,且匹配元素的id属性值等于myid。注意,E选择符可以省略,表示选择指定id属性
等于myid的任意类型的元素
E.warning 类选择器 选择匹配E的元素,且匹配元素的class属性值等于warning。注意,E选择符可以省略,表示选择指定
class属性值等于warning的任意类型的任意多个元素