Skip to content

Instantly share code, notes, and snippets.

##---
Plugin.is {
name "HTUI"
version "0.1"
author "d32"
description "Телепортация в дом используя вещь"
commands :htui => {
:description => "Справка по плагину",
:usage => "/htui <args>",
:aliases => [ :hi, :hihi ]
-- 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";
@Dark32
Dark32 / Уи
Created January 25, 2013 12:57
11
21
1211
111221
312211
13112221
1113213211
31131211131221
13211311123113112211
11131221133112132113212221
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
while (true) {
facepalm();
}
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
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
@Dark32
Dark32 / java.java
Last active December 28, 2015 09:58
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);
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;
/**
* 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 ) {