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
##--- | |
Plugin.is { | |
name "HTUI" | |
version "0.1" | |
author "d32" | |
description "Телепортация в дом используя вещь" | |
commands :htui => { | |
:description => "Справка по плагину", | |
:usage => "/htui <args>", | |
:aliases => [ :hi, :hihi ] |
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
-- phpMyAdmin SQL Dump | |
-- version 3.4.10.1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Хост: localhost | |
-- Время создания: Янв 14 2013 г., 17:15 | |
-- Версия сервера: 5.5.20 | |
-- Версия PHP: 5.3.10 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
11 | |
21 | |
1211 | |
111221 | |
312211 | |
13112221 | |
1113213211 | |
31131211131221 | |
13211311123113112211 | |
11131221133112132113212221 |
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
def fancy(sss) | |
tmp = sss[0] | |
l=0 | |
str ='' | |
sss.each_char{|i| | |
if i == tmp | |
l+=1 | |
else | |
str+=l.to_s+tmp | |
l=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
while (true) { | |
facepalm(); | |
} |
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
rem @set appd=%appdata% | |
@set APPDATA=%~dp0/.. | |
rem echo %appdata% | |
@set curl="curl.exe" | |
@set java="java" | |
@set [email protected] | |
@set pass=youpass | |
@%curl% -d "user=%mail%&password=%pass%&version=2" srv.cravs.org/minecraft/v1/auth.php >sess.ls | |
@Set file=sess.ls | |
@For /F "usebackq tokens=* delims=" %%i In ("%file%") Do Set var=%%i |
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
rem @set appd=%appdata% | |
@set APPDATA=%~dp0/.. | |
rem echo %appdata% | |
@set curl="curl.exe" | |
@set java="java" | |
@set [email protected] | |
@set pass=youpass | |
@%curl% -d "user=%mail%&password=%pass%&version=2" srv.cravs.org/minecraft/v1/auth.php >sess.ls | |
@Set file=sess.ls | |
@For /F "usebackq tokens=* delims=" %%i In ("%file%") Do Set var=%%i |
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
Object test = new Object(){public String sS = "4";}; | |
//String str = test.sS; | |
Field f = test.getClass().getDeclaredField("sS"); | |
f.setAccessible(true); | |
String str = (String)f.get(obj); |
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
final private static Pattern rollPatern = Pattern.compile("\\*(.+?)\\*"); | |
final private static Random rand = new Random(); | |
public static String randomRoll(String message ) { | |
Matcher mt = rollPatern.matcher(message); | |
ChatColor.getLastColors(message); | |
while (mt.find()) { | |
message = message.replaceFirst("\\*(.+?)\\*", "$1 " + (rand.nextInt(100) > chance ? luck : unluck)); | |
} | |
message = message.replaceAll("\\*(.+?)\\Z", "$1 " + (rand.nextInt(100) > chance ? luck : unluck)); | |
return message; |
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
/** | |
* Created by andrew on 22.01.16. | |
*/ | |
public class Main { | |
public static void main(String []args){ | |
int n = 8; | |
int k = 2; | |
int r[][] = new int[k][n/k]; | |
int s = sum(n); | |
if (s%k != 0 ) { |
OlderNewer