=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
.css-selector { | |
background: linear-gradient(86deg, #ff8fb0, #f90009); | |
background-size: 400% 400%; | |
-webkit-animation: danger-animated 3s ease infinite; | |
-moz-animation: danger-animated 3s ease infinite; | |
-o-animation: danger-animated 3s ease infinite; | |
animation: danger-animated 3s ease infinite; | |
} | |
@-webkit-keyframes danger-animated { | |
0%{background-position:0% 56%} |
""" | |
This script adds a function in PyMol that allows it to draw boxes. | |
You can specify the box center and its size. Very useful to represent docking boxes. | |
Usage: | |
1) In PyMol, go to File > Run script > this script | |
2) In the console, type: | |
draw_box center=(1, 2, 3), size=(20, 20, 20), spacing=1, linewidth=3, color=(255, 255, 255) | |
Center, size and color (RGB) must be written as tuples. |
// This script may be run in a Chrome dev console, and will delete all the device config variables for each device in a fleet, | |
// which the exception of *_SUPERVISOR_DELTA or *_SUPERVISOR_DELTA_VERSION. | |
await (async () => { | |
// Make sure FLEET_ID is the ID of your fleet. | |
const FLEET_ID = 12345; | |
// Get devices in fleet | |
const devices = await sdk.models.device.getAllByApplication(FLEET_ID, { | |
$select: 'id', | |
}); |
# Created by .ignore support plugin (hsz.mobi) | |
### Python template | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so |
An acquaintance needed a video kiosk that plays looping videos for an exposition booth. Since I have a bunch of Raspberry Pis lying around, I figured that it would be the perfect use case for using one of them.
Let's assume we start from scratch, with a unflashed, brand new SD card and your Raspberry Pi.
Install a version of Raspbian that includes the desktop. You can head over to : https://www.raspberrypi.org/downloads/raspbian/ and follow the instructions.
Once the image is downloaded, you can burn it to your SD card with tools like Etcher (https://www.balena.io/etcher/)
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 1.8, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [80, 120], | |
"extensions.ignoreRecommendations": true, | |
"typescript.tsserver.log": "off", | |
"files.associations": { |
blueprint: | |
name: Sensor Light | |
description: > | |
# 💡 Sensor Light | |
**Version: 6.5** | |
Your lighting experience, your way - take control and customize it to perfection! 💡✨ |
import * as fs from 'fs'; | |
import * as path from 'path'; | |
// https://gist.github.com/lovasoa/8691344 | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) { | |
yield* walk(entry); | |
} else if (d.isFile()) { |