Skip to content

Instantly share code, notes, and snippets.

View Xceno's full-sized avatar
🍵

Xceno Xceno

🍵
View GitHub Profile
;; Standard Tones
(def gruvbox-white "#FFFFFF")
(def gruvbox-black "#000000")
;; Dark Tones
(def gruvbox-dark0-hard "#1D2021")
(def gruvbox-dark0 "#282828")
(def gruvbox-dark1 "#3C3836")
(def gruvbox-dark2 "#504945")
@Xceno
Xceno / TexturedMeshSteps.md
Created December 21, 2020 12:47 — forked from shubhamwagh/TexturedMeshSteps.md
Steps to create textured mesh from point cloud using Meshlab

Steps to create Textured Mesh from Point Cloud using Meshlab

Get your PointCloud into MeshLab

  • Import the pointcloud file in ".ply" file format in Meshlab. Before importing make sure you do some pre-processing / cleaning on point cloud so as to ease the process of meshing.

Point Cloud Simplification and Normals Computation

  • Next we need to reduce the number of point samples for smooth meshing.
    • So go to Filters -> Point Set -> Point Cloud Simplification. Enter Number of samples circa 5% of original number of points. Make sure Best Sample Heuristic is checked.
  • After point cloud simplification, make sure to select Simplified point cloud in the Show Layer Dialog on the right hand side. If not visible, it can opened by going to View -> Show Layer Dialog. Now we need to compute normals for point set.
  • So go to Filters -> Point Set -> Compute normals for point sets . Enter Neighbour num between 10 - 100. Initially try with 10 and try to
@Xceno
Xceno / tslint.json
Created December 22, 2017 09:07
My default tslint
{
"rules": {
"align": [true, "parameters", "statements"],
"array-bracket-spacing": [true, "never"],
"arrow-return-shorthand": [true],
"arrow-parens": false,
"ter-arrow-parens": [
true,
"as-needed",
{
@Xceno
Xceno / ExampleStore.ts
Last active November 22, 2017 12:40
updateState function for working with an rxjs based store
class UpdateStateResult<T> {
public static empty = <T>() => new UpdateStateResult<T>(Observable.empty<T>(), null);
public observable: Observable<T>;
public subscription: Subscription;
public constructor(obs: Observable<T>, sub: Subscription | null) {
this.observable = obs;
this.subscription = sub;
}
}
@Xceno
Xceno / vscode-custom.css
Last active October 22, 2018 10:16
Additional styles and mods for VSCode with wesbos/Cobalt 2 theme
.monaco-shell {
font-family: "Fira Code" "Consolas", monospace;
}
/*
Fat Cursor.
This overwrites the "underline thin" style since that is one that can be styled with CSS
So set your settings to:
"editor.cursorStyle": "underline-thin",
*/
@Xceno
Xceno / webpack.config.js
Created September 7, 2017 06:43
Webpack.config with SCSS support and module dependencies for aurelia-i18n and ui-virtualization. You need to install sass-loader!
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const ExtractTextPlugin = require("extract-text-webpack-plugin");
const { AureliaPlugin, ModuleDependenciesPlugin } = require("aurelia-webpack-plugin");
const { optimize: { CommonsChunkPlugin }, ProvidePlugin } = require("webpack");
const { TsConfigPathsPlugin, CheckerPlugin } = require("awesome-typescript-loader");
// config helpers:
const ensureArray = config => (config && (Array.isArray(config) ? config : [config])) || [];
@Xceno
Xceno / ViewModelFriendlyShapeFactory.cs
Last active April 24, 2017 14:56
An override for Orchards DefaultShapeFactory, implementing changes discussed in #7073
namespace Orchard.Tools
{
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using Orchard.DisplayManagement;
using Orchard.DisplayManagement.Descriptors;
using Orchard.DisplayManagement.Implementation;
using Orchard.DisplayManagement.Shapes;