This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Original source code courtesy John from iOSDeveloperTips.com */ | |
#include <sys/socket.h> | |
#include <sys/sysctl.h> | |
#include <net/if.h> | |
#include <net/if_dl.h> | |
+ (NSString *)getMacAddress | |
{ | |
int mgmtInfoBase[6]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GLSupprot.h | |
// GameLive | |
// | |
// Created by qingyun on 5/3/13. | |
// Copyright (c) 2013 qingyun. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Defines.h | |
// BMLine | |
// | |
// Created by NADA_BM on 15/10/21. | |
// Copyright © 2015年 NADA_BM. All rights reserved. | |
// | |
#ifndef Defines_h | |
#define Defines_h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var githubList = [ | |
{ | |
name:'系统基础库', | |
list: [ | |
{name:'Category/Util', | |
list: [ | |
{name:'sstoolkit', owner:'soffes', desc:'一套Category类型的库,附带很多自定义控件 功能不错~'}, | |
{name:'BlocksKit', owner:'pandamonia', desc:'将Block风格带入UIKit和Founcation'}, | |
{name:'cocoa-helpers', owner:'enormego', desc:'一些Cocoa的扩展 2年前的工程'}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate UIImage extension for images assets, using in Xcode run script | |
base="$SRCROOT/${TARGET_NAME}" | |
assertPath="$base/Assets.xcassets" | |
fileName="$base/ImageResource.swift" | |
content="import UIKit\nextension UIImage {\n" | |
prefix="lo_" | |
DealWithFile() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1. 是否登录 | |
*/ | |
private func setupSplash(){ | |
// let adView = ZLaunchAd.create(waitTime:3) | |
// | |
// let api = Networking.newNoHUDNetworking() | |
// api.request(.showScreen, success: { result in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | |
guard let identifier = segue.identifier else { | |
return | |
} | |
switch identifier { | |
case "PushMusicMenuList": | |
default: | |
break |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension WelfareStoreController: UITableViewDelegate { | |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
if selectedIndexPath == nil { | |
selectedIndexPath = indexPath | |
let cell = tableView.cellForRow(at: indexPath) as? WelfareStoreCell | |
cell?.selectedState = true | |
}else { | |
let celled = tableView.cellForRow(at: selectedIndexPath!) as? WelfareStoreCell | |
celled?.selectedState = false | |
selectedIndexPath = indexPath |
OlderNewer