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
| void HookedPlayLayer::placeSogBlock(cocos2d::CCPoint pos) { | |
| // using gd::string here for android support | |
| gd::vector<gd::string> values; | |
| gd::vector<void*> exists; | |
| // i think these were broken or won't compile for android so see what happens for you | |
| values.resize(600); | |
| exists.resize(600); | |
| std::unordered_map<int, gd::string> properties = { |
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
| /** | |
| * Helper function to extract the type of typeof | |
| * @param {any} x | |
| */ | |
| function _typeof(x) { | |
| return typeof x; | |
| } | |
| /** | |
| * @typedef {ReturnType<typeof _typeof>} TypeofResult |
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
| # usage: python average.py <type (mean|median)> <id author (optional)> | |
| import sys | |
| from PIL import Image | |
| import numpy as np | |
| import json | |
| mod_ids = [] | |
| if len(sys.argv) == 2: |
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 "PerspectiveNode.hpp" | |
| PerspectiveCamera::PerspectiveCamera() | |
| : m_dirty(true) | |
| , m_projectionViewMatrix({ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }) | |
| , m_aim({ 0.f, 0.f, 0.f }) | |
| , m_pos({ 0.f, 0.f, -100.f }) | |
| , m_fov(80.f) {} | |
| void PerspectiveCamera::setFOV(float fov) { |
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 typing import Union | |
| class JSON: | |
| Number = Union[int, float] | |
| class UnexpectedTokenError(Exception): | |
| pass | |
| class UnexpectedEOFError(Exception): | |
| pass |
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
| #ifdef GL_ES | |
| precision mediump float; | |
| #ifdef GL_FRAGMENT_PRECISION_HIGH | |
| #define PRECISION highp | |
| #else | |
| #define PRECISION mediump | |
| #endif | |
| #else |
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
| let dropWrapBlockSelection = 0 | |
| let currentlySelectingSubblock = false | |
| let currentlyUsingBlock | |
| function escapeFromDropwrap() | |
| { | |
| // stop everything and escape from the dropwrap | |
| let dropWrapChildren = currentlyUsingBlock.parentElement.children | |
| dropWrapChildren[dropWrapBlockSelection].style.backgroundColor = "" |