Skip to content

Instantly share code, notes, and snippets.

View liufsd's full-sized avatar
🎯
Focusing

liupeng liufsd

🎯
Focusing
View GitHub Profile
{"status":0,"message":null,"data":[{"id":"12acad12","imageUrl":"https://mis.hujiang.com/project/picture/spic/u32794313.jpg","summary":"双语文章及学习经验,提升语言修养","title":"阅读"},{"id":"11ccc11","imageUrl":"https://mis.hujiang.com/project/picture/spic/u32794313.jpg","summary":"培养语感,锻炼语言总体把控能力","title":"听力"},{"id":"11123ddd333","imageUrl":"https://mis.hujiang.com/project/picture/spic/u32794313.jpg","summary":"逐句听与练,夯实听力基础","title":"听写"},{"id":"44ssssrrrrf","imageUrl":"https://mis.hujiang.com/project/picture/spic/u32794313.jpg","summary":"教学练测体系化学习课程","title":"课程"}]}
@liufsd
liufsd / Events.h
Last active September 17, 2015 13:18
he Keyboard Reference Numbers are listed in Events.h, which in the HIToolbox framework. To find it, you can do a filename search of /System/Library. On my 10.11 system, the file is at/A/Frameworks/HIToolbox.framework/Versions/A/Headers; http://dbachrach.com/blog/2005/11/program-global-hotkeys-in-cocoa-easily/
/*
File: HIToolbox/Events.h
Contains: Event Manager Interfaces.
Copyright: © 1985-2008 by Apple Computer, Inc., all rights reserved
Bugs?: For bug reports, consult the following page on
the World Wide Web:
def java_string_hashcode(s):
h = 0
for c in s:
h = (31 * h + ord(c)) & 0xFFFFFFFF
return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000
package org.sazabi.lib.preference;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.preference.Preference;
// .h
@interface AMPNavigationBar : UINavigationBar
@end
// .m
@interface AMPNavigationBar ()