Skip to content

Instantly share code, notes, and snippets.

@Cellane
Cellane / selljunk.lua
Created January 12, 2010 18:10
Modified selljunk.lua to sell both junk and uncommon armor & weapons
--------------------------------------------------------------------
-- CREDIT : FatalEntity
--------------------------------------------------------------------
local AddOn = CreateFrame("Frame")
local OnEvent = function(self, event, ...) self[event](self, event, ...) end
AddOn:SetScript("OnEvent", OnEvent)
------------------------------------------------------------------------
-- Auto SELL JUNK
@Cellane
Cellane / Cviceni10.java
Created January 14, 2010 16:20
Cvičení 10 a 11 z Javy. Jen se inspirovat, nekopírovat!
/**
* Created by IntelliJ IDEA.
* User: Milan
* Date: Nov 30, 2009
* Time: 7:19:35 PM
*/
import java.util.*;
import static java.lang.Character.*;
import static java.lang.Math.*;
\documentclass{beamer}
\mode<presentation> {
\usetheme{Berlin}
\setbeamercovered{transparent}
}
\usepackage[czech]{babel}
\usepackage[utf8]{inputenc}
\usepackage{times}
/**
* Created by IntelliJ IDEA.
* User: Milan
* Date: Mar 25, 2010
* Time: 2:51:22 PM
*/
import java.text.MessageFormat;
public class Efektivita {
public static int[][] vysledky;
/**
* Created by IntelliJ IDEA.
* User: Milan Vit
* Date: Mar 25, 2010
* Time: 2:51:22 PM
*/
import java.text.MessageFormat;
class Efektivita {
/**
* Originalni pouziti pretezovani metod
*/
/**
* Zjisti od uzivatele nazev souboru, pak nacte soubor
*
* @return nactene pole
*/
public static int[] nacistPole () {
@Cellane
Cellane / InputOutput.java
Created April 22, 2010 11:09
RC3 verze | Nekopírovat, jen se inspirovat!
/**
* Created by IntelliJ IDEA.
* User: Milan
* Date: Apr 22, 2010
* Time: 11:21:57 AM
*/
import java.io.*;
import java.text.MessageFormat;
import java.util.Calendar;
hour = ((calendar.get (Calendar.AM_PM) == 0) ?
// Forenoon
(calendar.get (Calendar.HOUR) < 10) ?
"0" + Integer.toString (calendar.get (Calendar.HOUR)) :
Integer.toString (calendar.get (Calendar.HOUR)) :
// Afternoon
Integer.toString (calendar.get (Calendar.HOUR) + 12));
/**
* Created by IntelliJ IDEA.
* User: Milan Vít (Cellane)
* Date: May 12, 2010
* Time: 2:16:44 PM
*/
import java.text.MessageFormat;
public class MatrixDeterminant {
[mstr replaceOccurrencesOfString: search
withString: replace
options: nil
range: NSMakeRange (0, [mstr length])];