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
const _ = require('lodash') | |
const { sendMsg, Recent, localPic } = require('../qq_api') | |
const { rp, UA, auraCdChk, num } = require('../utils') | |
module.exports = { | |
name: '颜值鉴定', | |
tags: ['exec', 'aura', 'group', 'cd'], | |
keywords: ['颜值', '好看吗'], | |
usage: ['(发照片后) [botNick_]颜值鉴定', '我好看吗?', '@某用户 好看吗'], |
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
package com.roxstudio.utils; | |
import java.io.Externalizable; | |
import java.io.IOException; | |
import java.io.ObjectInput; | |
import java.io.ObjectOutput; | |
import java.lang.reflect.Array; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; |
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
- (BOOL)stringContainsEmoji:(NSString *)string { | |
__block BOOL returnValue = NO; | |
[string enumerateSubstringsInRange:NSMakeRange(0, [string length]) options:NSStringEnumerationByComposedCharacterSequences usingBlock: | |
^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { | |
const unichar hs = [substring characterAtIndex:0]; | |
// surrogate pair | |
if (0xd800 <= hs && hs <= 0xdbff) { | |
if (substring.length > 1) { | |
const unichar ls = [substring characterAtIndex:1]; |
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
/** | |
* Converts an unpacked complex data value holding a dimension to its final floating | |
* point value. The two parameters <var>unit</var> and <var>value</var> | |
* are as in {@link #TYPE_DIMENSION}. | |
* | |
* @param unit The unit to convert from. | |
* @param value The value to apply the unit to. | |
* @param metrics Current display metrics to use in the conversion -- | |
* supplies display density and scaling information. |
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
package nl.stroep.games.components; | |
import flambe.Component; | |
import nape.space.Space; | |
/** | |
* @author Mark Knol [blog.stroep.nl] | |
*/ | |
class NapeDebugView extends Component | |
{ | |
private var _space:Space; |
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
package ; | |
class DevTools { | |
macro static public function measure(e, ?msg:String) { | |
if (msg == null) | |
msg = haxe.macro.ExprTools.toString(e); | |
return macro @:pos(e.pos) { | |
var start = haxe.Timer.stamp(), | |
result = [$e];//wrapping in the array skews the result a bit, but avoids issues with Void | |
var duration = haxe.Timer.stamp() - start; |
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
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
REM Batch file to create Audio SpriteSheet | |
REM Author: Glantucan | |
REM some var definitions (Subfolder must end with a \) | |
SET subfolder=seasons\ | |
SET rootPath=%CD%\ | |
SET assetsPath=%rootPath%assets\audio\%subfolder% | |
SET libPath=%rootPath%lib\audio\%subfolder% |
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
package com.roxstudio.i18n; | |
#if !macro | |
import nme.Assets; | |
#end | |
#if macro |