This file contains hidden or 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
| #include <iostream> | |
| #include <sstream> | |
| #include <forward_list> | |
| #include <list> | |
| #include <vector> | |
| #include <map> | |
| #include <stack> | |
| #include <queue> |
This file contains hidden or 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
| import time | |
| for k in range(10): | |
| t = time.time() | |
| for i, j in zip(range(10000000), range(10000000)): | |
| if(i == j) and (j == 10000000): print 'hi' | |
| print time.time() -t | |
| t = time.time() | |
| for i, j in zip(range(10000000), range(10000000)): |
This file contains hidden or 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
| cmake_minimum_required(VERSION 2.8) | |
| ## section: Macro | |
| MACRO(ADD_MSVC_PRECOMPILED_HEADER PrecompiledHeader PrecompiledSource SourcesVar) | |
| IF(MSVC) | |
| GET_FILENAME_COMPONENT(PrecompiledBasename ${PrecompiledHeader} NAME_WE) | |
| SET(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${PrecompiledBasename}.pch") | |
| SET(Sources ${${SourcesVar}}) | |
| SET_SOURCE_FILES_PROPERTIES(${PrecompiledSource} |
This file contains hidden or 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
| package com.rubisk.colorsignmod; | |
| import java.util.Iterator; | |
| import org.objectweb.asm.ClassReader; | |
| import org.objectweb.asm.ClassWriter; | |
| import org.objectweb.asm.tree.AbstractInsnNode; | |
| import org.objectweb.asm.tree.ClassNode; | |
| import org.objectweb.asm.tree.MethodNode; | |
| import static org.objectweb.asm.Opcodes.SIPUSH; |
This file contains hidden or 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
| from pymclevel import TAG_Compound | |
| from pymclevel import TAG_Int | |
| from pymclevel import TAG_Short | |
| from pymclevel import TAG_Byte | |
| from pymclevel import TAG_String | |
| from pymclevel import TAG_Float | |
| from pymclevel import TAG_Double | |
| from pymclevel import TAG_List | |
| from pymclevel import TileEntity | |
| from pymclevel import nbt |
This file contains hidden or 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
| import os | |
| from pymclevel import nbt | |
| filename = os.path.join(level.worldFolder.getFolderPath("data"), "scoreboard.dat") | |
| nbt.load(filename) |