Skip to content

Instantly share code, notes, and snippets.

View develax's full-sized avatar
💭
∑☯

Joe develax

💭
∑☯
View GitHub Profile
@develax
develax / GIT
Last active August 14, 2020 10:45
Lazy man's guide: multiple GitHub HTTPS accounts on Windows
https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad
@develax
develax / SerializeToByArray.cs
Created October 2, 2019 18:28
Serialize To By Array
using UnityEngine;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
namespace Utils
{
//Extension class to provide serialize / deserialize methods to object.
//src: http://stackoverflow.com/questions/1446547/how-to-convert-an-object-to-a-byte-array-in-c-sharp
//NOTE: You need add [Serializable] attribute in your class to enable serialization
@develax
develax / kinematics.html
Created July 8, 2019 09:31
Forward and inverse kinematics, rendering on HTML5 canvas.Thanks https://www.youtube.com/user/codingmath for the science and neighbor Franck for the rich discussions. Playful demo: https://rawgit.com/patkap/cc1a2c3ce3ef97c5a059a35af9e0cd59/raw/f23eb041f37633fbe22e3c82993e7a255bb32a08/kinematics.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no">
<title>Guidage</title>
<style type="text/css">
body {
display: flex;
min-height: 100%;

Unity 3D: how to create Texture2D from Sprite2D

private Texture2D GetSpriteTexture(Sprite sprite)
{
    int x = Mathf.FloorToInt(sprite.rect.x);
    int y = Mathf.FloorToInt(sprite.rect.y);
    int w = Mathf.FloorToInt(sprite.rect.width);
 int h = Mathf.FloorToInt(sprite.rect.height);
@develax
develax / ASP.NET-Core+Vue.MD
Created April 20, 2019 09:59
ASP.NET Core + VueJS setup steps

ASP.NET Core + VueJS setup

Scaffolding a project with .NET CLI

  1. Install SPA templates:
> dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

you will see

@develax
develax / EntityFrameworkCore.T-SQL.Notes.MD
Last active April 4, 2019 09:26
Entity Framework Core notes for T-SQL

Entity Framework Core for T-SQL notes

To SQL translations

Add + SaveChanges

db.Blogs.Add(new Blog { Url = $"http://blogs.msdn.com/adonet/{Guid.NewGuid()}" });
int count = db.SaveChanges();
@develax
develax / T-SQL-Reminder.MD
Last active May 10, 2019 09:37
My T-SQL Reminder

T-SQL

The order of processing clauses

  • FROM
  • WHERE
  • GROUP BY
  • HAVING
  • SELECT
    • Expressions
  • DISTINCT
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Function vs eval pefromance</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>