Trasparent nodes with custom material cover some opaque nodes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rmdir "%APPDATA%\JetBrains" /s /q | |
reg delete "HKEY_CURRENT_USER\SOFTWARE\JetBrains" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ISO where | |
import Control.Monad (void) | |
import Data.Bifunctor (bimap) | |
import Data.Maybe (fromMaybe) | |
import Data.Void (Void, absurd) | |
-- A type of `Void` have no value. | |
-- So it is impossible to construct `Void`, | |
-- unless using undefined, error, unsafeCoerce, infinite recursion, etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fluffy f where | |
furry :: (a -> b) -> f a -> f b | |
-- Exercise 1 | |
-- Relative Difficulty: 1 | |
instance Fluffy [] where | |
furry _ [] = [] | |
furry f (x : xs) = f x : furry f xs | |
-- Exercise 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
docker system prune -f | |
docker network prune -f | |
docker volume prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install dotnet-sdk-2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
viewer.addEventListener(Autodesk.Viewing.SELECTION_CHANGED_EVENT, onSelectedCallback); | |
function onSelectedCallback(event) { | |
const fragId = event.fragIdsArray[0]; | |
if (typeof fragId == 'undefined') { | |
return; | |
} | |
const fragIdsArray = (Array.isArray(fragId) ? fragId : [fragId]); | |
const material = new THREE.MeshBasicMaterial({ color: 0xff0000 }); | |
viewer.impl.matman().addMaterial('new_material', material, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt update | |
sudo apt install -y software-properties-common | |
sudo add-apt-repository -y universe | |
sudo add-apt-repository -y ppa:certbot/certbot | |
sudo apt update | |
sudo apt install -y certbot python-certbot-nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Container<T> { | |
constructor(private _value: T) { } | |
public get value() { return this._value; } | |
public map(f: (value: T) => T): this { | |
return this.newInstance(f(this._value)); | |
} | |
private newInstance(value: T): this { | |
return new (<any>this.constructor)(value); | |
} | |
protected abstract _id: any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install -y docker-ce | |
sudo systemctl status docker |
NewerOlder