Skip to content

Instantly share code, notes, and snippets.

janily janily

Block or report user

Report or block janily

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View press.one
{"sig":"c16accedf539f29e57483831302a2b03d35d6e409d935a35d0bdb967118501af8fd3c98fd761fc5fdadf9074b926d307262a30ce9783e9d8f700a53dcf7308900","msghash":"80ca88f40a0ee11860a7df45467021de7214b07a2e5560689b546fa5bddb0564"}
View press.one
{"sig":"5ac57001003621892586d798d57d371d7c1a546f5c8040eb3cff33bac10fbbf9307a8716f7d1f71e28eca0f77bcf661fe778a652df660b725f2c37e4dee7fc141","msghash":"1b7601936371ffaf0f793e2a0131cd27a67bef33dd6ce405670e6f871ce72880"}
@janily
janily / listeffect
Created Dec 11, 2016
配合animate.css里面的动画效果来制作列表动画
View listeffect
$(".mod-choose p").each(function (i) {
$(this).attr("style", "-webkit-animation-delay:" + i * 250 + "ms;"
+ "animation-delay:" + i * 250 + "ms;");
});
@janily
janily / gist:fac045b5725f579e5f05294a282ca5be
Created Sep 22, 2016 — forked from qq286735628/gist:9777985
flex未知高度垂直居中写法
View gist:fac045b5725f579e5f05294a282ca5be
<!DOCTYPE html>
<html lang="zh-CN" class="fullscreen">
<head>
<title>flex未知高度垂直居中写法</title>
<style>
html,body{
width: 100%;
height: 100%;
overflow: hidden;
@janily
janily / TouchEvents
Created Jun 27, 2016
兼容手机和PC的点击事件代码,支持touch事件则用touch,否则使用click
View TouchEvents
var clickOrTouch = (('ontouchstart' in window)) ? 'touchstart' : 'click';
$("elemeng").on("clickOrTouch",function(){
....
})
@janily
janily / express-2-to-4-x.txt
Created Apr 9, 2016 — forked from 1Marc/express-2-to-4-x.txt
Express 2 to Express 4.x
View express-2-to-4-x.txt
Express 2 was used in the course and the current version is 4.x.
you can't just use 'urlencoded' anymore, you have to:
npm install body-parser
and
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: true }));
@janily
janily / music
Created Jan 3, 2016
音乐控制
View music
function HTML5Audio(url, loop) {
var audio = new Audio(url);
audio.autoplay = true;
audio.loop = loop || false; //是否循环
audio.play();
return {
end: function(callback) {
audio.addEventListener('ended', function() {
callback()
}, false);
View crawler.txt
#漫画 https://github.com/XIAZY/ComicFetcher/blob/master/comicfetcher.py
from urllib import request, parse
import re, json, os
def getData(url):
webheader = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4'}
req = request.Request(url=url, headers=webheader)
webPage = request.urlopen(req)
You can’t perform that action at this time.