You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
You need to provide some classes and decorators yourself to maintain the same style as [email protected].
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| ((url, delay) => { | |
| let starTime = new Date().getTime(); | |
| let xhr = new XMLHttpRequest(); | |
| let times = []; | |
| let style = document.createElement('style'); | |
| style.textContent = 'body { background: #fff; } div { display: inline-flex; padding: 0.5rem; } div img { box-shadow: 0 0 5px 0 #8e8e8e; }'; | |
| document.head.appendChild(style); | |
| document.body.innerHTML = ''; | |
| xhr.open('GET', url, true); | |
| xhr.onload = event => { |
| protocol Initializable { | |
| init() | |
| } | |
| class A : Initializable { | |
| var content:String | |
| required init() { | |
| content = "TestContent" | |
| } |
| --Originally posted by "kiodane" at http://forums.macrumors.com/showthread.php?t=383969 | |
| tell application "System Preferences" | |
| set current pane to pane "com.apple.preference.keyboard" | |
| end tell | |
| tell application "System Events" | |
| if UI elements enabled then | |
| tell tab group 1 of window "Keyboard" of process "System Preferences" | |
| click checkbox "Use all F1, F2, etc. keys as standard function keys" | |
| if (do shell script "defaults read -g com.apple.keyboard.fnState") = "1" then |
| var path = require('path'); | |
| var _invalidateRequireCacheForFile = function(filePath){ | |
| delete require.cache[path.resolve(filePath)]; | |
| }; | |
| var requireNoCache = function(filePath){ | |
| _invalidateRequireCacheForFile(filePath); | |
| return require(filePath); | |
| }; |
| /** | |
| * 对日期进行格式化, | |
| * @param date 要格式化的日期 | |
| * @param format 进行格式化的模式字符串 | |
| * 支持的模式字母有: | |
| * y:年, | |
| * M:年中的月份(1-12), | |
| * d:月份中的天(1-31), | |
| * h:小时(0-23), | |
| * m:分(0-59), |
| - (UIViewController *)topViewController{ | |
| return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
| } | |
| - (UIViewController *)topViewController:(UIViewController *)rootViewController | |
| { | |
| if (rootViewController.presentedViewController == nil) { | |
| return rootViewController; | |
| } | |
| /** | |
| * 新浪微博mid与url互转实用工具 | |
| * 作者: XiNGRZ (http://weibo.com/xingrz) | |
| */ | |
| var WeiboUtil = { | |
| // 62进制字典 | |
| str62keys: [ | |
| "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", | |
| "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", |