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
;(decode-coding-string "keywork" 'utf-8) | |
(defun js2-unescape (b) | |
"convert hex or unicode encoded string to normal string" | |
(interactive "bselect buffer ") | |
(let* | |
((hex-pattern "\\\\x\\(\\w+\\)") | |
(unicode-pattern "\\\\u\\(\\w+\\)") | |
(process | |
#'(lambda (p) | |
(with-current-buffer b |
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
(defun js2r-rename-var (replacement) | |
"Renames the variable on point and all occurrences in its lexical scope." | |
(interactive "sInput the replacement: ") | |
; (js2r--guard) | |
(let* ((current-node (js2r--local-name-node-at-point)) | |
(len (js2-node-len current-node)) | |
(offset (- (length replacement) len)) | |
(current-start (js2-node-abs-pos current-node)) | |
(current-end (+ current-start len))) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="android-build-mate" default="help"> | |
<property name="manifest">AndroidManifest</property> | |
<target name="reconfig"> <!--require arguments: tex=etc, pvrtc, etc.. platform=a,g --> | |
<condition property="dest-manifest" value="${manifest}_${platform}_${tex}.xml"> | |
<and> | |
<isset property="tex"/> | |
<isset property="platform"/> | |
</and> |
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
// UTF-8 String (encoded to 1-3 byte, backward compatible with 7-bit ASCII) | |
// Can be mapped to null-terminated char-array C-string | |
const char * GetStringUTFChars(JNIEnv *env, jstring string, jboolean *isCopy); | |
// Returns a pointer to an array of bytes representing the string in modified UTF-8 encoding. | |
void ReleaseStringUTFChars(JNIEnv *env, jstring string, const char *utf); | |
// Informs the VM that the native code no longer needs access to utf. | |
jstring NewStringUTF(JNIEnv *env, const char *bytes); | |
// Constructs a new java.lang.String object from an array of characters in modified UTF-8 encoding. | |
jsize GetStringUTFLength(JNIEnv *env, jstring string); | |
// Returns the length in bytes of the modified UTF-8 representation of a string. |
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
[xml](svn info -R $path --xml).info.entry|? {[int]$_.commit.revision -gt 214 -and $_.path -like "*.hpp"}|%{$_.commit.revision+":"+$_.path} |
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
function notify() | |
{ | |
iex ($args -join " ") | |
growlnotify "/a:shell" "/n:shell.message" "/r:shell.message" "/t:shellnotify" "command execute succesfully" | |
} |
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
svn log -r0:HEAD -q -v svn://repo.addr |grep "M /trunk/xxx/.*el$"/|uniq |
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
(defun setup-cc-path() | |
(let (pathes libpath) | |
(if (eq system-type 'windows-nt) | |
(progn | |
(setq pathes `( | |
"C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin" | |
"C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/IDE" | |
"C:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE" | |
"C:/Program Files (x86)/Microsoft Visual Studio 10.0/Common7/Tools" | |
"C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include" |
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
package com.ifree.common | |
{ | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.events.KeyboardEvent; | |
import flash.events.MouseEvent; | |
import flash.text.TextField; | |
import flash.text.TextFieldType; | |
import flash.text.TextFormat; | |
import flash.ui.Keyboard; |
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
# | |
# utils for get information of upk file | |
# http://wiki.beyondunreal.com/Legacy:Package_File_Format | |
DWORD = 4 | |
WORD = 2 | |
GUID = 16 | |