Skip to content

Instantly share code, notes, and snippets.

View akkez's full-sized avatar
💭
Floppin'

Mikhail akkez

💭
Floppin'
View GitHub Profile
IC2.platform.profilerStartSection("QuantumHelmet");
int air = player.func_70086_ai();
if ((ElectricItem.manager.canUse(itemStack, 1000)) && (air < 100)) {
player.func_70050_g(air + 200);
ElectricItem.manager.use(itemStack, 1000, null);
ret = true;
} else if (air <= 0) {
package ic2.core.block.personal;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ic2.core.IC2;
import ic2.core.Platform;
import ic2.core.block.BlockMultiID;
import ic2.core.block.TileEntityBlock;
import ic2.core.init.InternalName;
import ic2.core.item.block.ItemPersonalBlock;
&#000000;&#8194;&#8194;&#8194; &#000000;&#000000;&#000000;
&#000000;&#8194;&#8194;&#8194; &#000000;
&#000000;&#000000; &#000000;&#000000;&#000000;
&#8194; &#8194;&#8194; &#8194;&#8194; &#000000;&#8194;&#8194;&#8194; &#000000;
&#000000; &#000000;&#000000;&#8194;&#8194;&#8194; &#000000;
@akkez
akkez / photosTransfer.js
Last active January 2, 2016 07:08
Script which helps to transfer all photos from one album to another in VK.
var user_id = 0;
var from_album = 0;
var to_album = 0;
var photos = API.photos.get({album_id: from_album}).items@.id;
var i = 0;
var result = [];
while (i < photos.length) {
result = result + API.photos.move({