This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("bilibili.com") { | |
#b_fashion,#b_promote{ | |
display: none!important; | |
} | |
/* | |
.b-head,.rm-list,.index-promote{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*@name Classypedia | |
@namespace http://www.runningcheese.com/firefox-v6 | |
@description 更改浏览Wikipedia时的样式 | |
@author runningcheese | |
@version 1.00 | |
@reference https://userstyles.org/styles/93067 by @Nathan Black | |
https://userstyles.org/styles/56739 by @Lupurus | |
*/ | |
@-moz-document domain('wikipedia.org'){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("jianshu.com") { | |
.page-title ,#collection-categories-nav,.list-footer{ | |
display:none!important; | |
} | |
.row-fluid .span3 { | |
width: 20%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("a").click(function(event) { | |
// this.append wouldn't work | |
$(this).append(' clicked'); | |
}); | |
}); | |
//之前在我的计算器的app中,就是给每一个button都起了一个名字。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Input = React.createClass({ | |
getInitialState:function(){ | |
return{ userInput:'' | |
} | |
}, | |
handleUserInput: function (e) { | |
this.setState({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeFriendlyDates(arr) { | |
var date=['1st','2nd','3rd','21st','22nd','23rd','31st']; | |
var month=['January','February','March','April','May','June','July','August','September','October','November','December'] ; | |
var startRange=arr[0].split('-'); | |
var endRange=arr[1].split('-'); | |
var everymonth2=[31,29,31,30,31,30,31,31,30,31,30,31]; //区分平年和闰年,为了以后计算是否在一年以内。 | |
var everymonth1=[31,28,31,30,31,30,31,31,30,31,30,31]; | |
var result=[]; | |
var str; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.circle | |
{ | |
width:500px; | |
height:500px; | |
border-radius:250px; | |
font-size:50px; | |
color:#fff; | |
line-height:500px; | |
text-align:center; | |
background:#000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ComponentExample = React.createClass(Radium.wrap({ | |
render: function() { | |
return ( | |
<button type="button" style={[styles]}> | |
<p>Hover Me</p> | |
</button> | |
) | |
} | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
background: url(images/bg.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |