Skip to content

Instantly share code, notes, and snippets.

//
// ZHHotRankViewController.h
// ZHModuleFeed
//
// Created by 马骁 on 28/09/2017.
//
#import <ZHMiddlewareList/ZHCKBaseCollectionViewController.h>
NS_ASSUME_NONNULL_BEGIN
function getPostContent() {
var a = $('<div></div>').html($('#content').html());
a.find('.video-link').each(function(index, obj){$(obj).removeClass('video-box').removeClass('own-video').removeClass('loading').html('')});
return a.html()
}
window.getPostContent = getPostContent;
$('.video-link').each(function(index, link){
#content .video-box {
text-decoration: none;
}
#content .video-box.own-video {
display: block;
position: relative;
padding: 0;
}
#content .video-box.own-video .thumbnail {
width: auto;
$('.video-link').each(function(index, link){
if ($(link).data("lens-id")) {
var v = $(link)
var img = v.data("poster"); // thumbnail.
var title = v.data("name");
v.addClass("video-box").addClass("own-video").addClass('loading').html(['<div class="loading"></div><div class="content"><span class="title">', title, '</span></div>'].join(''));
}
});
var testing = true; //是不是测试.
@matin0728
matin0728 / ck.markdown
Last active March 29, 2017 06:33
ck issue

CK 相关的东西

CK 的定位

一个视图渲染器.

特性:单向数据流,结果集是以增量的形式更新

主要原因: 将 CK 里面获得的 index 用于别处, 出问题的地方:

  1. indexPathForObject 实现有问题
goog.provide('ZH.demo.AutoComplete');
goog.require('goog.style');
goog.require('goog.dom');
goog.require('goog.events');
goog.require('ZH.ui.ac.entity');
goog.require('ZH.ui.ac.AutoComplete');
goog.require('ZH.ui.ac.RichRemoteArrayMatcher');
goog.require('ZH.ui.ac.RichInputHandler');
goog.require('ZH.ui.ac.Renderer');
#! /bin/bash
TEAM=/zhihuDev
GROUP=$TEAM/sa
YES=`echo 'aGF2ZWZpbmUK' |base64 -d`
SORRY=`echo 'c29ycnkK' |base64 -d`
RESULT=`echo 'aGV5LCBkbyB1IHdhbnQgam9pbiB1cz8gIHRyeSAhISBzZW5kIHlvdXIgcmVzdW1lIHF1aWNrbHksIAo=' |base64 -d`
read -t 15 -p "Enter u's name" you
class ZhihuDev(Developer) :
@property
def characteristics(self):
return set(["Teamwork", "Devoted", "Creative"])
@property
def skills(self) :
return {
"Language" : ["Python","Erlang", "Golang", "C/C++"],
"OS" : ["Linux", "Mac OS X", "BSD UNIX"] ,
goog.provide('ZhiHu.JavascriptPirate');
goog.require("Programmer");
/*
Abstract class.
*/
ZhiHu.JavascriptPirate = function(macBookPro, extraLCD){
this.myMacbook = macBookPro;
this.extraLCD = extraLCD;
};