Skip to content

Instantly share code, notes, and snippets.

View CypherPoet's full-sized avatar
✌️

CypherPoet CypherPoet

✌️
View GitHub Profile
@CypherPoet
CypherPoet / render-all-frames.py
Created March 25, 2023 21:24
Render all Frames in Blender Using Cycles and Open EXR
import bpy
# Set the render settings
bpy.context.scene.render.engine = 'CYCLES' # Set the render engine to Cycles
bpy.context.scene.render.image_settings.file_format = 'OPEN_EXR' # Set the output format to OpenEXR
# Loop through all frames in the scene and render each one
for frame in range(bpy.context.scene.frame_start, bpy.context.scene.frame_end + 1):
bpy.context.scene.frame_set(frame)
@CypherPoet
CypherPoet / React Native Clear Cache
Created September 17, 2020 22:29 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@CypherPoet
CypherPoet / KeyboardFollower.swift
Last active October 29, 2019 08:25
Keyboard follower implemented as an ObservableObject using Swift Combine Publishers
import Combine
import Foundation
import UIKit
final class KeyboardFollower: ObservableObject {
private var subscriptions = Set<AnyCancellable>()
@Published var keyboardHeight: CGFloat = 0.0