Skip to content

Instantly share code, notes, and snippets.

View kfischer-okarin's full-sized avatar

Kevin Fischer kfischer-okarin

View GitHub Profile
@quietsamurai98
quietsamurai98 / main.rb
Created September 30, 2020 23:41
3D Wireframe
def tick(args)
unless args.state.model
args.state.model = Object3D.new('data/lowpoly_teapot.off')
args.state.model.fast_3x3_transform!(rotate3D(0.2, 0.0, 0.0))
args.state.spin_mtx = rotate3D(0.00, 0.00, 0.01)
args.outputs.static_lines << args.state.model.edges
end
args.state.model.fast_3x3_transform!(args.state.spin_mtx)
end
# Title of Your Project [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20this%20cool%20project&url=https://github.com/Cool/Project&hashtags=project,opensource)
![Github License](https://img.shields.io/badge/license-MIT-green)
![Code Coverage](https://img.shields.io/badge/coverage-90%25-green)
![React Version](https://img.shields.io/badge/react-v16.12.0-blue.svg)
![example](https://mdn.mozillademos.org/files/10529/inspector.png)
#### Description of your project
$gtk.reset seed: Time.now.to_i
#puts "++++++++++++++++++ RESET +++++++++++++++++++++"
=begin
Creates a few different effects using particles
explode: fly apart dramatically and burn with flaming colours
melt: fall apart in a downward direction while turning toxic green
disintegrate: break apart less dramatically without burning colours
@amirrajan
amirrajan / index.md
Last active August 12, 2022 04:45
Guidelines for Debate/Discourse

My guidelines for dialog

I try my best to debate in such a way that the written content can be valuable for anyone that reads it. Here is the protocol I follow when I reply. The approach I take is based on what I've read about ancient Greece and how they facilitated public debates.

Explaining my approach will bring light to the terms I use when replying.

# ./dragonruby mygame --eval samples/99_zz_gtk_unit_tests/save_state_tests.rb --no-tick
# set this number to like 20,000 to reach the code gen limit
MAX_CODE_GEN_LENGTH = 50
def needs_partitioning? target
target[:value].to_s.length > MAX_CODE_GEN_LENGTH
end
def partition target
@alkrauss48
alkrauss48 / Dockerfile
Last active November 10, 2022 16:24
Running a docker container as a non-root user
# By default, Docker containers run as the root user. This is bad because:
# 1) You're more likely to modify up settings that you shouldn't be
# 2) If an attacker gets access to your container - well, that's bad if they're root.
# Here's how you can run change a Docker container to run as a non-root user
## CREATE APP USER ##
# Create the home directory for the new app user.
RUN mkdir -p /home/app
@bkaradzic
bkaradzic / orthodoxc++.md
Last active July 11, 2025 13:00
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?