Skip to content

Instantly share code, notes, and snippets.

@Dark32
Dark32 / README-Template.md
Created November 17, 2017 12:53 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

6741140125499073402269065104704245437620185948532688284694491567674227070073825432401218909327395893518976309609266257849957261703870618312489313519383302298925695321019628946824167286388861803853787488166654139284722697744596874234088480908941430547132409932029044525766939881238114785067948614106877710684624196363010835964174921218183665421248272418059606331730897773470485177393671690555166939709576328820206041011852732744249015896911128199629321342977095099766444908684548757364632991644339286873567533888749385455472311238843611247659010463697831418794102060110365204381057280562859418261075866143813436486714972009205284206385092182010575577830137430199820596491610214888046308306368119435628581717354622641859407051692063290729732768032357009747893841764257172788586569234293502739897884871416287327672978418909313166867074579340854537497732315846550891652603289262652690625425933016612840010583574988775876817315550694338302990898675498193712735742117216492300369455425032779216131233365276617243699326392242101689
/**
* 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 ) {
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;
@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);
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
while (true) {
facepalm();
}
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
@Dark32
Dark32 / Уи
Created January 25, 2013 12:57
11
21
1211
111221
312211
13112221
1113213211
31131211131221
13211311123113112211
11131221133112132113212221