Skip to content

Instantly share code, notes, and snippets.

View smallstepman's full-sized avatar
🦀

Marcin Nowak-Liebiediew smallstepman

🦀
  • Switzerland
  • 15:04 (UTC +01:00)
View GitHub Profile
cd ~/Downloads
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-5.0.1-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
conda update conda
apm install hydrogen
[CmdletBinding()] Param(
$pythonVersion = "3.6.2"
$pythonUrl = "https://www.python.org/ftp/python/$pythonVersion/python-$pythonVersion.exe"
$pythonDownloadPath = 'C:\Tools\python-$pythonVersion.exe'
$pythonInstallDir = "C:\Tools\Python$pythonVersion"
)
(New-Object Net.WebClient).DownloadFile($pythonUrl, $pythonDownloadPath)
& $pythonDownloadPath /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 TargetDir=$pythonInstallDir
if ($LASTEXITCODE -ne 0) {
import pip
from subprocess import call
packages = [dist.project_name for dist in pip.get_installed_distributions()]
call("pip install --upgrade " + ' '.join(packages), shell=True)
@smallstepman
smallstepman / VSCode
Last active January 24, 2020 19:27
VSCode
code --install-extension 2gua.rainbow-brackets
code --install-extension be5invis.vscode-custom-css
code --install-extension Dart-Code.dart-code
code --install-extension Dart-Code.flutter
code --install-extension dbaeumer.vscode-eslint
code --install-extension dunstontc.dark-plus-syntax
code --install-extension equinusocio.vsc-material-theme-icons
code --install-extension gjhuerte.black-looks-good-theme
code --install-extension hoovercj.vscode-settings-cycler
code --install-extension ipedrazas.kubernetes-snippets
@smallstepman
smallstepman / cloudSettings
Last active January 21, 2021 16:58
vscode2020Q1
{"lastUpload":"2021-01-21T16:57:45.009Z","extensionVersion":"v3.4.3"}
@smallstepman
smallstepman / expanded_main.rs
Created March 21, 2021 16:19
enum_dispatch expansion
#![feature(prelude_import)]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std;
use enum_dispatch::enum_dispatch;
struct Generator {
source_id: String,
id: String,
}
@smallstepman
smallstepman / dash-colab-vtk-demo.ipynb
Last active September 25, 2021 20:56
dash-colab-vtk-demo.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
0 1
0 sp|Q9W678|P53_BARBU 0.9117647058823529
1 sp|Q29537|P53_CANFA 0.7058823529411765
2 sp|P67938|P53_BOSIN 0.7058823529411765
3 sp|P67939|P53_BOVIN 0.3235294117647059
4 sp|P10360|P53_CHICK 0.5882352941176471
5 sp|Q9WUR6|P53_CAVPO 0.47058823529411764
6 sp|P13481|P53_CHLAE 0.38235294117647056
7 sp|O09185|P53_CRIGR 0.5
8 sp|P79734|P53_DANRE 0.4411764705882353
#!/bin/bash
clear
projects_dir="$HOME/Desktop"
working_dir="$projects_dir/jira-tickets/SDK-42"
identity_pem_file="$HOME/.config/dfx/identity/default/identity.pem"
cd $working_dir
shopt -s expand_aliases
alias icx-assetss=$projects_dir/agent-rs/target/debug/icx-asset