Skip to content

Instantly share code, notes, and snippets.

export PATH="$PATH:$HOME/opt/homebrew/bin"
export PATH="$PATH:$HOME/.fzf/bin/"
export PATH="$PATH:$HOME/.local/bin/"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
def get_according_elements(list_ipt):
list_of_results = []
for base_el in range(len(list_ipt)):
if list_ipt[base_el] < 0:
continue
for el2 in range(len(list_ipt)):
if list_ipt[el2] > 0 or base_el == el2:
continue
if list_ipt[base_el] + list_ipt[el2] == 0:
list_of_results.append([list_ipt[base_el], list_ipt[el2]])
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@dreisicht
dreisicht / git.diff
Last active October 15, 2021 08:09
git diff
diff --git release/scripts/addons/node_wrangler.py b/node_wrangler.py
index 68573302..18cc4f2e 100644
--- release/scripts/addons/node_wrangler.py
+++ release/scripts/addons/node_wrangler.py
@@ -28,7 +28,7 @@ bl_info = {
"category": "Node",
}
-import bpy, blf, bgl
+import bpy, bgl
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "schneehaufen_l", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "schneehaufen_l", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
Calloc returns null: len=7522083376 in CDPropCol, total 2253465120
ERROR (bke.modifier): C:\Users\blender\git\blender-vexp\blender.git\source\blender\blenkernel\intern\modifier.c:457 BKE_modifier_set_error: Object: "Aset_nature_embankment_L_vcytca0fa_LOD0", Modifier: "DataTransfer", Source or destination object has a high polygon count, computation might be slow
Calloc returns null: len=5641562532 in CDNormal, total 2252274356
Malloc returns null: len=5641562532 in BKE_mesh
## Kassette
10----12----14----16----18-------21-------24----------28-------------33----------------39----------------45----------------51 |Shimano SLX 12x
11----13----15----17----19----21-------24----------28----------32-------------37-------------------------46 |SLX 11x
11----13----15----17----19----21-------24----------28----------32-------------37-------------42 |SLX 1by 11x
11----13----15----17----19----21----23-------26----------30----------34 |GRX600 10x
11----13----15----17----19----21----23----25----27-------30----------34 |GRX810 11x
11-12-13-14----16----18----20----22-------25-------28----------32 |105 11x
11-12----14----16----18----20----22-------25-------28 |Tiagra 10x
11-12-1
import csv
import os
from shutil import copy2
def create_folders_from_csv(csv_file_path, output_dir):
with open(csv_file_path, newline='', encoding='utf-8') as csvfile:
data = csv.reader(csvfile, dialect='excel')
for row in data:
dirpath = os.path.join(output_dir, row[0].replace('?', '').replace(':', ''))

elevatorpitch

@dreisicht
dreisicht / protocoll.md
Last active April 21, 2020 01:53
protocoll police video

Protocol meeting police videos

30.10.2018

wishes of police

  • start a series of clips for social media
  • 5-8 clips (rose: less clips)
  • music recognizable
  • combining different abilities
@dreisicht
dreisicht / rendersettings.py
Created September 26, 2018 16:10
Rendersettings python
import bpy
print("PYTHON SCRIPT LAUNCHED!!!!!!")
for scene in bpy.data.scenes:
print("setting settings for", scene)
scene.render.resolution_x = 1920
scene.render.resolution_y = 1080
scene.render.resolution_percentage = 200
scene.cycles.samples = 512
scene.render.use_border = False
scene.cycles.seed = 0