Skip to content

Instantly share code, notes, and snippets.

View dobrakmato's full-sized avatar
🥇
#1 ranked developer in Slovakia

Matej Kormuth dobrakmato

🥇
#1 ranked developer in Slovakia
View GitHub Profile
function processData() {
downloadData(function (data) {
...
});
}
async function processData() {
const promise1 = downloadFromService1();
const promise2 = downloadFromService2();
const promise3 = downloadFromService3();
const allResults = Promise.all([promise1, promise2, promise3]);
...
}
async function processData() {
const data1 = await downloadFromService1();
const data2 = await downloadFromService2();
const data3 = await downloadFromService3();
...
}
async function processData() {
const data = await downloadData();
...
}
async function processData() {
const data = await downloadData();
}

Open currently open instagram photo in new tab.

window.open($('div[role=dialog] article > div img').src);

@dobrakmato
dobrakmato / gist:d69e8d073aa76376da8c
Created November 5, 2015 17:40
Graphics resources
## Textures
http://www.mayang.com/textures/
http://www.textures.com/
@dobrakmato
dobrakmato / ProtocolLibHelper.java
Created October 31, 2015 21:05
Code to autodownload protocollib.jar
/**
* iplogin - Login to your Minecraft server seamlessly
* Copyright (c) 2015, Matej Kormuth <http://www.github.com/dobrakmato>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
/*
* mcRPG is a open source rpg bukkit/spigot plugin.
* Copyright (C) 2015 Matej Kormuth
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@dobrakmato
dobrakmato / PersistInjector.java
Last active August 29, 2015 14:14
PersistInjector.java
package eu.matejkormuth.x.y.z;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import java.util.Properties;
public class PersistInjector {