- Close
SourceTree
App - Launch
Finder
,
Command + Shift + G
go to~/Library/Application Support/SourceTree/
SourceTree
Preference and Cache Directory, - Delete Directory
ImageCache
- Go to Gavatar with your account the same as you login in the
SourceTree
App - Setup Avatar
- Launch
SourceTree
,it will fetch avatar fromGavatar
with account you login - Done :)
###Note Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
###[UPDATE : Not yet tested in iOS 10. It will fail because of policies changes in URL scheme handling.]
###[UPDATE 2:The openURL() method of UIApplication is now deprecated. You should use application(_:open:options:) instead]
##[UPDATE 3: For now you just can use url schemes to open your apps's settings with Swift 3.0 (Xcode 8). I'll keep you informed when OS preferences can be reached]
This file contains 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
//AdHoc detect with following 2 conditions : | |
//1.`embedded.mobileprovision` contains field `ProvisionedDevices` (Debug and Ad Hoc Build contains this field ,Release not) | |
//2.it is not DEBUG Build , we can use `#ifdef DEBUG` to decide it | |
NS_INLINE BOOL isAdHoc(){ | |
BOOL isAdHoc = NO; | |
BOOL isDebug; | |
#ifdef DEBUG | |
isDebug=YES; |
This file contains 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 issues : [CleanroomLogger/issues/37](https://github.com/emaloney/CleanroomLogger/issues/37) | |
extension Log { | |
static func setup() { | |
#if DEBUG | |
Log.enable(debugMode: true) | |
Log.sqlite = MyLogChannel(prefix: "Sqlite") // enable your channel or using Xcode console filter | |
#endif | |
} | |
} |
I hereby claim:
- I am ishawnwang on github.
- I am ishawnwang (https://keybase.io/ishawnwang) on keybase.
- I have a public key ASCgW2WZPG5ADfgS4QaCjUoKqXYhhAXgfpWFXWEpO634hAo
To claim this, I am signing this object:
This file contains 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
import { __RouterContext as RouterContext, RouteComponentProps } from 'react-router' | |
import { useContext, useMemo, useCallback } from 'react' | |
import qs from 'qs' | |
import { Location } from 'history' | |
interface ParsedQuery { | |
[whatever: string]: any | |
} | |
export const useRouter = <T>(): RouteComponentProps<T> => |
This file contains 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
interface Enum { | |
[id: number]: string | |
} | |
const getEnumKeys = (e: Enum) => { | |
return Object.keys(e) | |
.map(key => e[key]) | |
.filter(value => typeof value === 'string') as string[] | |
} |
This file contains 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
(function() { | |
/** | |
* 记录方法使用情况的类 | |
* @param {Array.<boolean>} umMap 初始的使用情况 | |
*/ | |
var UsageManager = function(umMap) { | |
this.umMap = umMap || []; | |
}; | |
/** | |
* 记录新的使用情况 |
This file contains 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
import {ModalProvider, ModalContext, Modalman} from './Modalman' | |
import {useContext} from 'react' | |
import {Modal} from 'antd' | |
// App.tsx | |
// export default () => { | |
// return <ModalProvider><App /><ModalProvider> | |
// } | |
export default () => { |
OlderNewer