Skip to content

Instantly share code, notes, and snippets.

@pixtur
pixtur / SamplePointsFromSvgFile.cs
Created January 3, 2021 12:23
How to convert paths from svg into points using svg.net
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.IO;
using Svg;
using T3.Core.Operator;
public class SvgToPoints : Instance<SvgToPoints>
{
private static void SampleSvg(string filepath)
{
@pixtur
pixtur / SingleValueEdit.cs
Created December 28, 2019 14:58
An alternative ImGui component for editing float values with a jog dial interaction
using System;
using System.Data;
using System.Numerics;
using ImGuiNET;
using T3.Gui.InputUi;
using UiHelpers;
namespace T3.Gui.Interaction
{
/// <summary>
@pixtur
pixtur / Getting to run image-tSNE.md
Last active October 30, 2016 18:37
Running image-tSNE by Gene Kogan

Running image-tSNE by Gene Kogan

by pixtur / 2016-10-30

Some personal notes on how to setup all dependencies and run the example code.

Installing Dependencies

Local Python

@pixtur
pixtur / dabblet.css
Created October 18, 2013 10:54
--- 2nd level navigation ----
* {
margin:0px;
padding:0px;
}
body {
font-family: "Segoe WP", "Helvetica Neue";
color: #ddd;
font-size:14px;
background-color:#333;
}
@pixtur
pixtur / dabblet.css
Created October 18, 2013 10:54
--- 2nd level navigation ----
* {
margin:0px;
padding:0px;
}
body {
font-family: "Segoe WP", "Helvetica Neue";
color: #ddd;
font-size:14px;
background-color:#333;
}
@pixtur
pixtur / dabblet.css
Created October 17, 2013 09:26 — forked from anonymous/dabblet.css
--- 2nd level navigation ----
* {
margin:0px;
padding:0px;
}
body {
font-family: "Segoe WP", "Helvetica Neue";
color: #ddd;
font-size:14px;
background-color:#333;
}
@pixtur
pixtur / gist:3870727
Created October 11, 2012 07:14
ninja-autocomplete 1.01 example with rich data storage
var ac= new $.Ninja.Autocomplete($(".myinput"), {
get:function (q, callback) {
$.ajax({
url: 'http://completion.amazon.com/search/complete',
dataType: 'jsonp',
data: {
q: q,
mkt: 1,
'search-alias': 'dvd'
},
@pixtur
pixtur / shell
Created October 10, 2012 17:20
ninja-autocomplete setup problem
Development»git clone git@github.com:pixtur/ninja-autocomplete.git ~/Development
fatal: destination path '/Users/pixtur/Development' already exists and is not an empty directory.
Development»rm ninja.autocomplete/
rm: ninja.autocomplete/: is a directory
Development»rm -r ninja.autocomplete/
Development»git clone git@github.com:pixtur/ninja-autocomplete.git ~/Development
fatal: destination path '/Users/pixtur/Development' already exists and is not an empty directory.
Development»git clone git@github.com:pixtur/ninja-autocomplete.git ~/Development/ninja.autocomplete
Cloning into '/Users/pixtur/Development/ninja.autocomplete'...
remote: Counting objects: 239, done.
@pixtur
pixtur / .log
Created September 28, 2012 11:06
Crash-Log for Square by Still on ATI 32bit
10:15:40.486 (INF): Initializing ...
10:15:42.108 (DBG):
10:15:42.108 (DBG): Fps Histogram:
10:15:42.108 (DBG): -: 00 00 00
....
10:15:42.113 (INF):
Unintializing ...
10:15:42.121 (ERR): Message: E_NOINTERFACE: The requested COM interface is not available (-2147467262)
Source: SlimDX