Skip to content

Instantly share code, notes, and snippets.

View nukadelic's full-sized avatar

Nukadelic nukadelic

View GitHub Profile
nukadelic / ._d3_TransitionEasing
Last active November 12, 2017 16:22
d3 - Transition Easing v4 (24.Oct.2017)
gist name ?
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 / 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
Minified online with
Online demo with source code: ( 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="",this.ctx=t,this.canvas=t.canvas,i&&(this.text=i),this
nukadelic / index.d.ts
Last active April 27, 2018 11:10
/** 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 / 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:
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 / MLAgentsFileConfigEditor.cs
Last active September 25, 2019 17:10
Unity ML Agents File Config Editor
// Download the DLL here:
// at "Download package ( ... KB )"
// browse for the lib > .Net35 folder copy paste the dll into your unity assets folder
// Note this script file must be located inside a folder named "Editor"
using System;
using System.Text;
using System.IO;
nukadelic /
Last active January 6, 2020 12:07
Modfied barracuda converter ( tensorflow-pb to unity-nn ) [ 0.3.2 ]
from __future__ import print_function
import numpy as np
import struct # convert from Python values and C structs
import tensorflow as tf
import re
import barracuda
from barracuda import Struct
from google.protobuf import descriptor
from google.protobuf.json_format import MessageToJson
nukadelic / index.php
Created March 19, 2020 09:22
PHP CDN - Upload file , list all files , delete file
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/>
<meta name="viewport" content="width=device-width"/>
<title>PHP CDN</title>
nukadelic / EditorSceneGUIOverlay.cs
Last active September 17, 2020 12:42
using System.Reflection;
using UnityEditor;
using System.Linq;
using UnityEngine;
public class EditorSceneGUIOverlay : Editor