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
FROM python:3.12-slim-bookworm | |
#libpq-dev python3-dev for psycopg | |
RUN apt-get update && apt-get -y install git curl #libldap2-dev libsasl2-dev g++ libffi-dev libpq-dev | |
RUN /usr/local/bin/python -m pip install --upgrade pip | |
ARG CI_COMMIT_SHA=local | |
ENV CI_COMMIT_SHA=$CI_COMMIT_SHA | |
ENV PYTHONUNBUFFERED 1 | |
ARG PROJECT_ROOT="/app" | |
RUN mkdir $PROJECT_ROOT | |
WORKDIR $PROJECT_ROOT |
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
import copy | |
import nest | |
from typing import Dict, List | |
def dump(selections: List = ("nodes", "synapses")) -> Dict: | |
"""Returns a dictionary containing the current net in memory for serialization. | |
Only a subset of the data can be serialized. |
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
cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/bsvogler/Dokumente/nest /home/bsvogler/Dokumente/nest-simulator/nest | |
CMake Error at CMakeLists.txt:97 (install): | |
install TARGETS given no RUNTIME DESTINATION for executable target "nest". | |
CMake Error at CMakeLists.txt:106 (FILTER_HEADERS): | |
Unknown CMake command "FILTER_HEADERS". | |
CMake Warning (dev) in CMakeLists.txt: |
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
#!/usr/local/bin/python3 | |
import googlemaps | |
import numpy as np | |
from datetime import datetime | |
gmaps = googlemaps.Client(key='redacted insert your own key') | |
with open('./concertCities.txt') as f: | |
concertCities = f.read().splitlines() |
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
#!/usr/bin/env python3 | |
import numpy as np | |
import pickle | |
import os | |
import sys | |
from PIL import Image | |
def create_var(name, shape, stddev, wd): | |
dtype = tf.float32 |