Skip to content

Instantly share code, notes, and snippets.

@JeOam
JeOam / NavigationBar.md
Last active February 21, 2016 12:51
NavigationBar template

隐藏导航栏:

[self.navigationController setNavigationBarHidden:YES];

顶部导航左边按钮:

    UIButton *leftNaviBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    leftNaviBtn.frame = CGRectMake(0, 0, 44, 44);// 设置不了位置属性,可以设置大小属性
    [leftNaviBtn setBackgroundImage:[UIImage imageNamed:@"btn_more"] forState:UIControlStateNormal];
@wdfx100
wdfx100 / shiro
Last active December 19, 2015 12:39
#shiro#urls的配置
/index.html = anon
/user/create = anon
/user/** = authc
/admin/** = authc, roles[administrator]
/rest/** = authc, rest
/remoting/rpc/** = authc, perms["remote:invoke"]
过滤器名称 过滤器类 描述
anon org.apache.shiro.web.filter.authc.AnonymousFilter 匿名过滤器
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 10, 2024 03:45
A badass list of frontend development resources I collected over time.
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt