Skip to content

Instantly share code, notes, and snippets.

@XQYZ
XQYZ / ArrayList.java
Created April 30, 2012 08:43
ArrayListTest
public class ArrayList<T> extends List<KeyItem<T>> {
private int N;
/**
* constructor
*
* @param N
* the array size of the items within the array list
*/
public ArrayList(int N) {
{ scopeName = 'mythic';
fileTypes = ( 'mythics', 'mythicc' );
patterns = (
{ name = 'comment.block.mythic';
match = '^ (.+)';
captures = { 1 = { name = 'comment.block.mythic'; }; };
},
{ name = 'markup.heading.mythic';
match = '^(.+)\:$';
captures = { 1 = { name = 'markup.heading.mythic'; }; };
@XQYZ
XQYZ / GuessNumber.vbs
Created July 28, 2010 15:56
This is Guess the Number as a word macro
Sub Log(Text)
Selection.TypeText (Text)
Selection.TypeParagraph
End Sub
Function RandomG(Max)
RandomG = Int(Rnd * Max)
End Function