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
| /*============================== | |
| * The BrainF*ck interpreter | |
| * Kristof Gilicze | |
| * 2018.09.29. | |
| *==============================*/ | |
| #include <stdio.h> | |
| enum StatusCode{ | |
| SUCCESSFULL_RUN=0, |
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
| import os | |
| import sqlite3 | |
| from io import BytesIO | |
| from flask import g | |
| from flask import abort | |
| from flask import Blueprint | |
| from flask import current_app |
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
| body { | |
| background-color: #269; | |
| background-image: | |
| linear-gradient(rgba(255,255,255,.5) 2px, transparent 2px), | |
| linear-gradient(90deg, rgba(255,255,255,.5) 2px, transparent 2px), | |
| linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), | |
| linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); | |
| background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; | |
| background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px; | |
| } |
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
| <template> | |
| <div> | |
| <v-tooltip v-if="!$vuetify.theme.dark" bottom> | |
| <template v-slot:activator="{ on }"> | |
| <v-btn v-on="on" icon @click="toggleDarkMode"> | |
| <v-icon class="mr-1">mdi-moon-waxing-crescent</v-icon> | |
| </v-btn> | |
| </template> | |
| <span>Dark Mode On</span> | |
| </v-tooltip> |
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
| .terminal-line-cursor-effect::after { | |
| content: ' _'; | |
| animation: animate 1.5s linear infinite; | |
| } | |
| @keyframes animate { | |
| 0% { | |
| opacity: 0; | |
| } | |
| 50% { |
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
| /* | |
| <div class="wrapper"> | |
| <div></div> | |
| </div> | |
| */ | |
| /* With Grid */ |
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 | |
| # Removes old revisions of snaps | |
| # CLOSE ALL SNAPS BEFORE RUNNING THIS | |
| set -eu | |
| i=0 | |
| LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| echo "$snapname $revision" | |
| ((i=i+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
| gsettings set org.gnome.desktop.background primary-color '#2C001E' | |
| gsettings set org.gnome.desktop.background color-shading-type 'solid' |
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
| function loadFontFace( | |
| fontName: string, | |
| url: string, | |
| fontWeight: string = 'normal', | |
| fontStyle: string = 'normal', | |
| format: string = 'woff2' | |
| ) { | |
| // Add custom font to page DOM since font-face doesn't work within Shadow DOM. | |
| let element = document.getElementById(`custom-loaded-${fontName}`); |
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
| def calculate_nmea_checksum(sentence: str) -> bool: | |
| checksum = 0 | |
| payload = sentence.raw.split("*")[0][1:] | |
| for byte in payload: | |
| checksum ^= ord(byte) | |
| return checksum == sentence.checksum |