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
/* -*- mode: c++ -*- | |
* Atreus -- Chrysalis-enabled Sketch for the Keyboardio Atreus | |
* Copyright (C) 2018-2022 Keyboard.io, Inc | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
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
Aspect/Level,Level A,Level B,Level C | |
Design/UX,Implements input from design/UX in a consistent way.,Collaborates with design/UX to identify and fix UI/UX issues.,Proactively surfaces UI/UX issues and proposes solutions. | |
Testing,Does manual testing,Knows when to choose manual or automated testing. Writes automated tests according to task.,Proactively writes automated tests on the approriate level to increase code coverage. | |
Monitoring,Doesn't use system logs,Navigates system logs to track down issues,Proactively monitors system health | |
Programming/Architect,Comfortable navigates the codebase. Writes clean code. Follows team and industry best practices,Proposes and implements systematic changes to the code to improve its maintainability and scalability.,"Proposes and implements subsystems that have significant, positive impact on the life of the fellow engineers or the business." | |
Workflow,Resolves feedback recieved on their PR,Reviews peer PRs and makes sure to understand them,"Makes suggestions, provides actiona |
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
#!/usr/bin/env bash | |
if [ -z "$1" ] ; then | |
echo "Open file in Emacs (create new frame)." | |
echo "Usage: $0 filename" | |
exit 1 | |
fi | |
FILE=$(echo $1 | cut -d : -f 1) | |
POS=$(echo $1 | cut -d : -f 2-) |
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 | |
# Download songs from YouTube | |
target_dir=18 | |
yt2mp3="youtube-dl -x --audio-format mp3" | |
playlist=( | |
"Budepesmód Akkezdet Phiai" | |
"Bang Bang Rock Steady Tomorrow's Children" | |
"Spying Glass Horace Andy" |
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 logging | |
from django.core.management.base import BaseCommand | |
VERBOSITY_ERROR = 0 | |
VERBOSITY_WARNING = 1 | |
VERBOSITY_NOTICE = 2 | |
VERBOSITY_SUCCESS = 3 | |
LEVEL_ERROR = "error" |
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
//! Another simple example that creates a custom HTTP client instance and sends | |
//! a GET request with it instead of using the default client. | |
use isahc::{prelude::*, HttpClient}; | |
use std::{ | |
io::{copy, stdout}, | |
}; | |
fn main() -> Result<(), isahc::Error> { | |
let url = format!("https://package.elm-lang.org/all-packages/since/{}", 0); |
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
@echo off | |
title "youtube to mp3" | |
set video=%1 | |
set ffmpegbin=C:\Programs\ffmpeg\bin\ffmpeg | |
youtube-dl -x --audio-format mp3 --ffmpeg-location %ffmpegbin% %video% |
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
;;; Directory Local Variables | |
;;; For more information see (info "(emacs) Directory Variables") | |
((python-mode . | |
((python-shell-virtualenv-root . "~/Library/Caches/pypoetry/virtualenvs") | |
(pyvenv-default-virtual-env-name . "~/Library/Caches/pypoetry/virtualenvs/bps-web-iZn3jUlQ-py3.8") | |
(pyvenv-workon . "bps-web-iZn3jUlQ-py3.8") | |
(python-shell-exec-path . ("/Users/apple/Dev/bps_web")) | |
(python-shell-extra-pythonpaths . ("/Users/apple/Dev/bps_web")) | |
;; Setting PYTHONPATH is needed otherwise Flycheck doesn't work properly |
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
function flatten(arr) { | |
const len = arr.length; | |
for (let i = 0; i < len; i++) { | |
arr.push(...arr.shift()); | |
} | |
return arr; | |
} |
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
from __future__ import with_statement | |
import simplejson as json | |
import time | |
class Timer(object): | |
def __enter__(self): | |
self.__start = time.time() | |
def __exit__(self, type, value, traceback): |