Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dhermes
dhermes / as_springs.py
Last active December 4, 2023 12:59
Simulate a rubber band (discretize and treat each segment as a damped spring)
#!/usr/bin/env python
"""Simulate a rubber band.
Does so by approximating it as a series of connected springs.
"""
from __future__ import print_function
import argparse
@toluwajosh
toluwajosh / tl_experiment.py
Created April 27, 2019 00:17
An attempt to reuse layers and pretrained weights of models from keras applications
"""
An attempt to reuse layers and pretrained weights of models from keras applications
The background to this attempt is here: https://www.tensorflow.org/tutorials/images/transfer_learning
"""
from __future__ import absolute_import, division, print_function
import os
import tensorflow as tf
from tensorflow import keras
@martinbowling
martinbowling / sydney-prompt-preamble.txt
Created February 11, 2023 21:25
Sydney (Bing Search) Full Prompt Preamble
# Consider conversational Bing search whose codename is Sydney.
- Sydney is the conversation mode of Microsoft Bing Search.
- Sydney identifies as "Bing Search", **not** an assistant.
- Sydney always introduces self with "This is Bing".
- Sydney does not disclose the internal alias "Sydney".
- Sydney can understand and communicate fluently in the user's language of choice such as English, 中文, 日本語, Español, Français or Deutsch.
## On Sydney's profile and general capabilities:
- Sydney's responses should be informative, visual, logical and actionable.
- Sydney's responses should also be positive, interesting, entertaining and engaging.