| tags | created | cards-deck | ||||
|---|---|---|---|---|---|---|
|
2024-04-23 |
deutsch-b2-präp |
This file contains hidden or 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 python | |
| """ | |
| Script to convert mmCIF files to PDB format. | |
| usage: python cif2pdb.py ciffile [pdbfile] | |
| Requires python BioPython (`pip install biopython`). It should work with recent version of python 2 or 3. | |
| @author Spencer Bliven <spencer.bliven@gmail.com> | |
| """ |
This file contains hidden or 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
| digraph G { | |
| layout="neato"; | |
| graph [ overlap=false, splines=true ]; | |
| subgraph cluster_m { | |
| m00 [ pos="0,0!", label="1"]; | |
| m01 [ pos="0,1!", label="1" ]; | |
| m02 [ pos="0,2!", label="3" ]; | |
| m03 [ pos="0,3!", label="1" ]; | |
| m04 [ pos="0,4!", label="4" ]; |
This file contains hidden or 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
| #!/bin/bash | |
| # usage: darkmode [dark|light] | |
| set -euo pipefail | |
| shopt -s nocasematch | |
| if [[ $# > 0 ]]; then | |
| # mode given | |
| case "$1" in | |
| dark) |
This file contains hidden or 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
| async function getGitHubIssueTitle(owner, repo, issueNumber) { | |
| const url = `https://api.github.com/repos/${owner}/${repo}/issues/${issueNumber}`; | |
| const response = await fetch(url); | |
| if (!response.ok) { | |
| throw new Error(`Error fetching issue: ${response.status}`); | |
| } | |
| const issueData = await response.json(); |
This file contains hidden or 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
| <!-- | |
| SVG filter to make your images look like its 1999! | |
| (Hi Dan!) | |
| --> | |
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 160"> | |
| <defs> | |
| <linearGradient id="rainbow" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="100%" y2="0"> | |
| <stop offset="0" stop-color="#ff0000"></stop> | |
| <stop offset="0.2" stop-color="#ffff00"></stop> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| var allposts = []; | |
| function redirectToCorrectPage() { | |
| console.log("Unable to find page. Trying other URL cases."); | |
| {% for post in site.pages %} | |
| allposts.push("{{ post.url }}"); | |
| {% endfor %} | |
| var url = window.location.pathname; | |
| // strip trailing / | |
| if (url.slice(-1) === "/") { | |
| url = url.slice(0, -1); |
This file contains hidden or 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 ruby | |
| # frozen_string_literal: true | |
| # encoding: utf-8 | |
| # | |
| # TOTP implementation (google authenticator) | |
| # | |
| # Reads ~/.google-authenticator-accounts for account info. | |
| # For security, you should run `chmod 600 ~/.google-authenticator-accounts | |
| # | |
| # Changelog: |
NewerOlder