Skip to content

Instantly share code, notes, and snippets.

View hww's full-sized avatar

Valery (h2w) hww

View GitHub Profile
pacman -S --noconfirm --needed accountsservice
pacman -S --noconfirm --needed acpi
pacman -S --noconfirm --needed acpid
pacman -S --noconfirm --needed alsa-firmware
pacman -S --noconfirm --needed alsa-plugins
pacman -S --noconfirm --needed alsa-utils
pacman -S --noconfirm --needed arandr
pacman -S --noconfirm --needed artwork-i3
pacman -S --noconfirm --needed autoconf
pacman -S --noconfirm --needed automake
# =========================================================================
# first some of helpfull functions
# =========================================================================
# -------------------------------------------------------------------------
# to start stop service
# -------------------------------------------------------------------------
systemctl stop mpd
systemctl start mpd
# -------------------------------------------------------------------------
@hww
hww / ActiveMenu
Created August 23, 2018 20:58 — forked from Minimally/ActiveMenu
Unity3d class to quickly set GameObjects active/inactive with s and h
using System.Collections;
using UnityEditor;
using UnityEngine;
public static class ActiveMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
@hww
hww / LayerMenu.cs
Created August 23, 2018 20:58 — forked from Minimally/LayerMenu.cs
Unity Editor script for filtering layers via keyboard
using UnityEditor;
using UnityEngine;
public static class LayerMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
#region Layer Visibility
@hww
hww / openGL_on_WLSS.md
Created November 29, 2018 13:38 — forked from campenr/openGL_on_WLSS.md
Developing openGL on Ubuntu on the Windows Linux Subsystem
  1. Install Ubuntu through the Windows store

  2. Enable rendering of GUI applications from Ubuntu/WLSS in Windows using a Windows X-server

  • Install VxSrv on Windows
  • On Ubuntu/WLSS open .bashrc and add the following lines to the end, then save file and restart:
# tell GUI display to use the Windows X-server listening on localhost:0.0
export DISPLAY=localhost:0.0
# make rendering happen on the Windows side of things rather than Ubuntu
@hww
hww / StringToDouble.cs
Created January 10, 2019 09:49 — forked from samcragg/StringToDouble.cs
strtod in C# unit tests.
using System;
namespace SvgParser
{
/// <summary>
/// Provides methods to convert a string to a double precision floating
/// point number.
/// </summary>
public static class StringToDouble
{
// =============================================================================
// forked from samcragg/StringToDouble.cs
// =============================================================================
using System;
namespace Code.Utils.String
{
/// <summary>
/// Provides methods to convert a string to a double precision floating
// =============================================================================
// Valeriya P.
// Enabling modern C# in Unity 3D projects
// Read documentation here: https://stackoverflow.com/questions/45578298/how-to-enable-c-sharp-7-features-on-unity3d-projects
// =============================================================================
#if ENABLE_VSTU
using SyntaxTree.VisualStudio.Unity.Bridge;
using System;
@hww
hww / arcadia_demo
Created January 16, 2019 19:00 — forked from timsgardner/arcadia_demo
arcadia cube, vr demo
(let [ns 'clojure-west.demo]
(require ns)
(in-ns ns)
(use
'clojure.pprint
'clojure.repl
'clojure-west.freeze)
(require
;'[clojure-west.mesh :as mesh]
'[clojure-west.materials :as mat]
@hww
hww / NormalsVisualizer.cs
Created March 13, 2019 12:29 — forked from mandarinx/NormalsVisualizer.cs
Visualize mesh normals in Unity3D
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MeshFilter))]
public class NormalsVisualizer : Editor {
private Mesh mesh;
void OnEnable() {
MeshFilter mf = target as MeshFilter;