Skip to content

Instantly share code, notes, and snippets.

View jmarrec's full-sized avatar

Julien Marrec jmarrec

View GitHub Profile
def freed_from_desire():
return "NANANANANANANANAN NAAAAAAAA NAAAA NAAAA NAAA"
@jmarrec
jmarrec / Compare_Models_Space_setACH.ipynb
Created April 9, 2025 11:18
Comparing models and prototyping space_set_ach
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmarrec
jmarrec / Analyze_fvisibility_hidden_impact.ipynb
Created February 4, 2025 14:27
Try with fvisibility=hidden on clang/GCC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmarrec
jmarrec / Prepare_Test_Data.ipynb
Created January 28, 2025 17:24
Prepare test data for #10916 - Broken_Format_CurveManager
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmarrec
jmarrec / Bench_creating_surfaces.ipynb
Last active December 19, 2024 09:18
Creating geometry much faster In OpenStudio: it's a foot gun, use at your own risk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
+(/opt/homebrew/bin/pyenv:23): enable -f /opt/homebrew/bin/../libexec/pyenv-realpath.dylib realpath
+(/opt/homebrew/bin/pyenv:30): '[' -z '' ']'
++(/opt/homebrew/bin/pyenv:32): type -P readlink
+(/opt/homebrew/bin/pyenv:32): READLINK=/usr/bin/readlink
+(/opt/homebrew/bin/pyenv:33): '[' -n /usr/bin/readlink ']'
+(/opt/homebrew/bin/pyenv:58): '[' -z /Users/julien/.pyenv ']'
+(/opt/homebrew/bin/pyenv:61): PYENV_ROOT=/Users/julien/.pyenv
+(/opt/homebrew/bin/pyenv:63): export PYENV_ROOT
+(/opt/homebrew/bin/pyenv:65): '[' -z '' ']'
+(/opt/homebrew/bin/pyenv:66): PYENV_DIR=/opt/homebrew/lib/pkgconfig
@jmarrec
jmarrec / computeTriangulation.ipynb
Last active April 29, 2025 10:33
OS SDK: Compute Triangulation Example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmarrec
jmarrec / test.py
Last active July 31, 2024 13:37
Test removing connections
import openstudio
import pytest
def test_remove_connections():
m = openstudio.model.Model()
p = openstudio.model.PlantLoop(m)
c = openstudio.model.CoilCoolingWater(m)
n_ori = len(m.getObjectsByType("OS:Connection"))
assert n_ori == 12
@jmarrec
jmarrec / ScheduleRuleset_Demo.ipynb
Last active June 7, 2024 07:33
ScheduleRuleset Demonstration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmarrec
jmarrec / .gitconfig
Last active March 28, 2025 16:33
Git alias for fixing up a commit
[alias]
fixup = "!f() { \
git diff --cached --quiet && echo \"Nothing is staged\" && exit 1; \
fixup_commit=$(git log --oneline | fzf --height=40% --layout=reverse --prompt='git log>' --with-nth='2..' --preview='git show --color=always {1}'); \
echo \"Amending commit: $fixup_commit\"; \
fixup_commit_sha=$(echo $fixup_commit | awk '{print $1}'); \
git commit --fixup=$fixup_commit_sha; \
git rebase --update-refs --autosquash -i $fixup_commit_sha^1;