Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
Happy

hxgdzyuyi

😀
Happy
View GitHub Profile
@hxgdzyuyi
hxgdzyuyi / imageview.js
Last active Aug 29, 2015
m.qzone 的图片放大代码
View imageview.js
(function() {
var mods = [], version = parseFloat(seajs.version);
define("widget/imageview/index", ["lib/zepto", "lib/qz"], function(require, exports, module) {
var uri = module.uri || module.id, m = uri.split("?")[0].match(/^(.+\/)([^\/]*?)(?:\.js)?$/i), root = m && m[1], name = m && "./" + m[2], i = 0, len = mods.length, curr, args, undefined;
for (; i < len; i++) {
args = mods[i];
if (typeof args[0] === "string") {
name === args[0] && (curr = args[2]);
args[0] = root + args[0].replace("./", "");
version > 1 && define.apply(this, args)
@hxgdzyuyi
hxgdzyuyi / README.md
Last active Aug 29, 2015
测试 浏览器 loading 标志
View README.md

测试 浏览器 loading 标志

View gist:ccbbd328dc0b2ba92d90
var request = require('request')
, cheerio = require('cheerio')
request = request.defaults({jar: true})
var post_data = {id: "",title: "asdf",description: "",slug_hash: "",html: "sasdfs",css: "",js: "", arent: 0,"private": !1,auto_run: !0,html_pre_processor: "none",html_classes: "",head: "",css_pre_processor: "none",css_pre_processor_lib: "",css_prefix: "neither",css_starter: "neither",css_external: "",js_pre_processor: "none",js_library: "",js_modernizr: !1,js_external: "",tags: [],last_updated: "",errorCode: "",savingPenToDB: !1,saveAttempts: 0,MAX_SAVE_ATTEMPTS: 6,SAVE_ATTEMPT_TIMEOUT: 1e4,fork: !1,lastSavedPen: {},redirectingToSavedURL: !1}
request('http://codepen.io', function(error, response, body) {
var $ = cheerio.load(body)
var csrfKey = $('meta[name="csrf-token"]').attr('content')
View squarespace.js
This file has been truncated, but you can view the full file.
YUI.add("squarespace-wysiwyg-constants", function(E) {
E.namespace("Squarespace.Wysiwyg").EditorTypes = {
IFRAME: "IFRAME",
INLINE: "INLINE"
};
var d = E.namespace("Squarespace.Wysiwyg").ToolbarTypes = {
BLOCK: "BLOCK",
LOCKED_BLOCK: "LOCKED_BLOCK",
FULL: "FULL",
View result.css
body {
color: #ef9a9a;
}
View 干花标本制作备份.md

一般5厘米的 145克左右制作一个


一组胶是2个不同成分的液体 他们使用前 按正确比例搅拌均匀在一起就反应,才能慢慢凝固的 d-3滴胶。如果有电子秤就用重量比30克+10克, 如果是按体积比混合是体积比A25毫升:B10毫升配好,比例要准确误差不能大于10%,搅拌均匀,搅拌的时候一定注意搅拌均匀了,容器四周,底部都要搅拌到,搅拌到树脂全部彻底变清澈就可以了。搅拌好倒入模具容器内,用保鲜膜或者盒子把容器盖好,与外界空气隔绝,这样可以防止灰尘和湿气对胶水表面的影响。然后等待固化就可以了。

确保搅拌均匀最好这样使用 --如果在一个杯子里面搅拌,容易出现这样的问题 杯子底部的 不好搅拌到的。浇注到后期浇注在产品表面就不好的了。

@hxgdzyuyi
hxgdzyuyi / Gemfile
Created May 11, 2012
导出人人网生日信息
View Gemfile
source 'http://rubygems.org'
gem 'omniauth-renren', '~> 1.0.0.rc2', :git => 'git://github.com/huangxiangdan/omniauth-renren.git'
gem 'renren'
gem 'sinatra'
gem 'shotgun'
gem 'icalendar'
@hxgdzyuyi
hxgdzyuyi / gist:2728798
Created May 19, 2012 — forked from xupeng/gist:2728385
自动跳转到广播页
View gist:2728798
// ==UserScript==
// @name Hide someone
// @description Hide someone
// @author Hxgdzyuyi
// @include http://www.douban.com/
// @version 1.4
// @run-at document-start
// ==/UserScript==
View .vimrc
runtime! debian.vim
syntax on
source ~/.vim/vimrc_vundle
set nocompatible
set noswapfile
set fileencodings=ucs-bom,utf-8,chinese,cp936
set isk+=-
set list
set listchars=tab:▸\ ,trail:·
View gist:3968177

我是

def my_cool_method(message)
  puts message
end