Skip to content

Instantly share code, notes, and snippets.

View nukadelic's full-sized avatar
☣️

Nukadelic nukadelic

☣️
View GitHub Profile
@nukadelic
nukadelic / TestTimeScale.cs
Created September 14, 2019 15:42
Test Unity time scale and physics rigidbody jitter
using UnityEngine;
// Create a plane and a cube above that plane, attach a rigidbody to the cube & add gravity
// drop this script anywhere on the scene and watch the variables in realtime
// mess around with timeScale and see the results
// toggle the jump checkbox during runtime
public class TestTimeScale : MonoBehaviour
{
[Space,Space,Range(0.01f, 3f)]
public float timeScale = 0.5f;
@nukadelic
nukadelic / Dev console blackbox patterns
Last active March 1, 2019 07:55
Collection of chrome blackbox patterns to exclude
# Open console -> F1 ( to open settings ) -> select 'Blackboxing' on the left side bar -> Add patterns
# More info: https://developer.chrome.com/devtools/docs/blackboxing
prototype.*\.js
angular.*\.js
jquery.*\.js
moment.*\.js
\.min\.js$
@nukadelic
nukadelic / index.d.ts
Last active April 27, 2018 11:10
@types/neataptic
/** Declaration file generated by dts-gen */
export class Group {
constructor(size: any);
activate(value: any): any;
clear(): void;
connect(target: any, method: any, weight: any): any;
@nukadelic
nukadelic / pong.min.js
Last active April 14, 2018 08:50
Pong JS Game
/* Version: 0.1 (14/April/18) :: Free to use, no strings attached
Compiled online with http://www.typescriptlang.org/play/
Minified online with https://jscompress.com/
Online demo with source code: https://pong.stackblitz.io ( See index.js for example ) */
define(["require","exports"],function(t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function t(t,i){this.max_difficulty=7,this.screenW=0,this.screenH=0,this.displayScale=1,this.game_frame_rate=60,this.mouse_x=0,this.mouse_y=0,this.mouse_moved=!1,this.score1=0,this.score2=0,this.enemy_velocity=0,this.pedal_1_y=0,this.pedal_2_y=0,this.pedal_1_x=0,this.pedal_2_x=0,this.pedal_thikness=0,this.pedal_height=0,this.ball_radius=0,this.ball_speed=0,this.ball_speed_angle=0,this.ball_velocity_x=0,this.ball_velocity_y=0,this.ball_x=0,this.ball_y=0,this.minScreenSize=0,this.color_bg="white",this.color_primary="red",this.color_secondary="gray",this.text="https://pong.stackblitz.io",this.ctx=t,this.canvas=t.canvas,i&&(this.text=i),this
@nukadelic
nukadelic / Canvas JS game to Python image with matplotlib inside notebook.ipynb
Created April 13, 2018 13:58
Canvas JS game to Python image with matplotlib inside notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nukadelic
nukadelic / ._d3_TransitionEasing
Last active November 12, 2017 16:22
d3 - Transition Easing v4 (24.Oct.2017)
gist name ?