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
janily / listeffect
Created Dec 11, 2016
View listeffect
$(".mod-choose p").each(function (i) {
$(this).attr("style", "-webkit-animation-delay:" + i * 250 + "ms;"
+ "animation-delay:" + i * 250 + "ms;");
janily / gist:fac045b5725f579e5f05294a282ca5be
Created Sep 22, 2016 — forked from qq286735628/gist:9777985
View gist:fac045b5725f579e5f05294a282ca5be
<!DOCTYPE html>
<html lang="zh-CN" class="fullscreen">
width: 100%;
height: 100%;
overflow: hidden;
janily / TouchEvents
Created Jun 27, 2016
View TouchEvents
var clickOrTouch = (('ontouchstart' in window)) ? 'touchstart' : 'click';
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
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: true }));
janily / music
Created Jan 3, 2016
View music
function HTML5Audio(url, loop) {
var audio = new Audio(url);
audio.autoplay = true;
audio.loop = loop || false; //是否循环;
return {
end: function(callback) {
audio.addEventListener('ended', function() {
}, false);
View crawler.txt
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.