Skip to content

Instantly share code, notes, and snippets.

View naoyeye's full-sized avatar
🦾

J.Y Han naoyeye

🦾
View GitHub Profile
@naoyeye
naoyeye / youtubeShare.js
Created May 28, 2014 10:16
youtubeShare.js
function newShare() {
function ln(){
aw.call(this,\"Line\", \"ln\")
}
A(ln,ew);
ln.prototype.B=function(a,b){
return Qg(\"http://line.me/R/msg/text/\", {
text: bw(this,a)
// 压缩后:
<div id="article-content"><div><br></div><div>在这里写文章<div contenteditable="false" class="comment-tpl-wrap tpl-wrap" id="comment-tpl-2" data-id="3369401"><div class="comment-tpl"><div class="box-action"><span class="edit"><i class="icon pencil"></i> 修改</span><span class="remove"><i class="icon remove"></i> 删除</span></div><form class="comment-id-input ui form" style="display: none;"><div class="ui input action"><input type="text" placeholder="请输入目标评论的ID"><button type="submit" class="ui button icon"><i class="icon add sign"></i></button></div></form><div class="card comment-box-wrap" style="display: block;"><div class="comment-box"><a class="author-avatar" href="http://baidu.com" target="_blank"> <img alt="jyTI" src="http://www.regexbuddy.com/img/icon.png"></a><div class="box-info"><span class="author-name"><a href="http://baidu.com" target="_blank">jyTI</a></span><p contenteditable="true" class="comment-content">这是一段内容</p></div></div></div></div></div></div></div>
// 原始html:
<div id="article-content
@naoyeye
naoyeye / make_thumb.py
Last active August 29, 2015 14:02
python 生成 缩略图
import os
import Image
#生成node 75x75 缩略图
def make_node_thumb(path):
base, ext = os.path.splitext(path)
try:
im = Image.open(path)
except IOError:
print ' in IOError'
@import "compass/utilities/sprites";
@import "compass";
@import "compass/css3";
@import "reset";
@import "basic";
@import "header";
@import "footer";
@import "card";
@import "badge";
<?xml version='1.0' encoding='UTF-8' ?>
<?charles serialisation-version='2.0' ?>
<map>
<toolEnabled>true</toolEnabled>
<mappings>
<mapMapping>
<sourceLocation>
<protocol>http</protocol>
<host>www.wandoujia.com</host>
<path>/campaign/remixme</path>
Sampling process 64525 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Xiami (pid 64525) every 1 millisecond
Process: Xiami [64525]
Path: /Applications/Xiami.app/Contents/MacOS/Xiami
Load Address: 0x108ed6000
Identifier: com.xiami.client
Version: 1.3.2 (1826)
Code Type: X86-64
Parent Process: launchd [149]
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="ys"
# Example aliases
var lrSnippet = require('connect-livereload')();
var rewriteRulesSnippet = require('grunt-connect-rewrite/lib/utils').rewriteRequest;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
require('time-grunt')(grunt);
<!DOCTYPE html>
<html>
<head>
<title>搜狗高速浏览器双十一网购专版-剁手族的福音</title>
<meta content="text/html"; charset="utf-8"; http-equiv="Content-Type"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1">
<script src="js/zepto.min.js"></script>
<style>
html,body{
/**
* canvas蒙板图片处理插件
* -----------------------------
* 作者:叼怎么写!- -||
* 时间:2014-03-21
* 准则:JS原型
* 联系:wechat--shoe11414255
* 一张网页,要经历怎样的过程,才能抵达用户面前
* 一个特效,要经历这样的修改,才能让用户点个赞
* 一个产品,创意源于生活,源于内心,需要慢慢品味