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
div.js-calendar-graph { | |
margin-top: 1rem; | |
display: flex !important; | |
flex-direction: column !important; | |
align-items: flex-end !important; | |
overflow: hidden !important; | |
margin-right: 8px !important; | |
margin-left: 8px !important; | |
} |
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
<div> | |
{{- $name := .Attributes.name -}} | |
{{ with $name }}<div class="codeblock--name">{{ . }}</div>{{ end }} | |
<div class="codeblock--content"> | |
{{- highlight (.Inner | safeHTML) .Type .Options }} | |
</div> | |
</div> |
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
#!/bin/bash | |
USERNAME='moxak' | |
function publish() { | |
USERNAME=$1 | |
ESC=$(printf '\033') | |
echo "---Build by hugo." | |
hugo --minify >/dev/null | |
echo "---Move and copy files." | |
mv content/*/*.png static/img/ &>/dev/null | |
cp CNAME docs/ |
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
{{ define "katex-stylesheet" }} | |
{{ if .Params.katex }} | |
<link | |
rel="stylesheet" | |
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" | |
integrity="sha384-ZPe7yZ91iWxYumsBEOn7ieg8q/o+qh/hQpSaPow8T6BwALcXSCS6C6fSRPIAnTQs" | |
crossorigin="anonymous" | |
/> | |
<link | |
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/copy-tex.css" |
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 re | |
import time | |
import requests | |
import logging as logme | |
class TokenExpiryException(Exception): | |
def __init__(self, msg): | |
super().__init__(msg) |
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
window.addEventListener("DOMContentLoaded", init); | |
function init() { | |
const width = 960; | |
const height = 540; | |
const renderer = new THREE.WebGLRenderer({ | |
canvas: document.querySelector('#myCanvas') | |
}); | |
renderer.setPixelRatio(window.devicePixelRatio); |