Skip to content

Instantly share code, notes, and snippets.

View Darth-Carrotpie's full-sized avatar

Danielius Darth-Carrotpie

View GitHub Profile
@Darth-Carrotpie
Darth-Carrotpie / SkeletonRendererController
Created July 29, 2020 07:41
Spine object handler of to improve performance
using System.Collections;
using System.Collections.Generic;
using Spine.Unity;
using UnityEngine;
public class SkeletonRendererController : Singleton<SkeletonRendererController> {
public HashSet<SkeletonMecanim> passiveMecanims = new HashSet<SkeletonMecanim>();
//There's a task created, after subdivs are known, change List>Array for speed.
public List<HashSet<SkeletonMecanim>> activeMecanimSets = new List<HashSet<SkeletonMecanim>>();
import binascii
import base64
def __decode_flag(encodedFlag, startChar):
decodedBytes = bytearray(binascii.unhexlify(encodedFlag))
print(len(decodedBytes))
output_bytes = []
i = 0
import base64
import binascii
decodedFlag = 'That would have been too easy ^^'
encodedFlag = b'646a310e2d261f1121013717516236040e01161b183b2a0a0f54095126112f300e1d231b500705690e20103e01163423010e251727775331112f000c27013b200e1d2308390c3d0e2d2616330e1567570f2b3215390a3e202b5a006b'
def __encode_flag(decodedFlag):
print(decodedFlag.encode('utf-8'))
b64encoded = base64.b64encode(decodedFlag.encode('utf-8'))