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
# shellcheck shell=bash disable=SC2164,SC1117 | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# Note: PS1 and umask are already set in /etc/profile. You should not | |
# need this unless you want different defaults for root. | |
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' | |
# umask 022 | |
export TERM='xterm-256color' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python:3.7 | |
# Install the dependencies for R | |
RUN apt-get update && apt-get install -y r-base r-base-dev r-recommended | |
# Add all of the scripts to the /opt/app/ path inside of the image | |
ADD . /opt/app/ | |
# Change the working directory inside of the image to /opt/app/ | |
WORKDIR /opt/app/ |
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 time | |
import requests | |
MAX_UNICODE = 0x10ffff | |
def rand_bytes(): | |
resp = requests.get("https://en.wikipedia.org/wiki/Special:Random") | |
content = resp.content |
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
.mp_notification { | |
position: fixed; | |
padding: 20px 40px; | |
width: 100%; | |
bottom: 0; | |
left: 0; | |
background: #333; | |
color: #bbb; | |
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.3); | |
z-index: 99998; } |
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
cask 'fiscript' do | |
version '1.0.1' | |
sha256 'a622526479338a151c42f57b04717902555b33aad06abba249c8a4bb0554a0ed' | |
url 'https://github.com/Mortennn/FiScript/releases/download/v1.0.1/FiScript.zip' | |
name 'FiScript' | |
homepage 'https://github.com/Mortennn/FiScript' | |
depends_on macos: '>= :sierra' |
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
class Chromaprint < Formula | |
# Revert chromaprint changes to prevent ffmpeg circular dependency | |
# https://github.com/Homebrew/homebrew-core/pull/46684 | |
# https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/13 | |
desc "Core component of the AcoustID project (Audio fingerprinting)" | |
homepage "https://acoustid.org/chromaprint" | |
url "https://github.com/acoustid/chromaprint/releases/download/v1.4.3/chromaprint-1.4.3.tar.gz" | |
sha256 "ea18608b76fb88e0203b7d3e1833fb125ce9bb61efe22c6e169a50c52c457f82" |
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
""" | |
This is an example of how to traverse relations and implement complex | |
django querysets. It's in relation to the follow-up questions asked by | |
Jérémy Octeau's in the comments on this Stack Overflow post: | |
https://stackoverflow.com/a/58828200/28360 | |
""" | |
# Some example models | |
from django.conf import settings | |
from django.db import models |
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
syntax enable | |
colorscheme slate | |
set ai | |
set autoread | |
set background=dark | |
set backspace=eol,start,indent | |
set backupdir^=~/.vim/_backup// | |
set directory^=~/.vim/_temp// | |
set encoding=utf8 |
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
16:02:26.032 extensionHost.ts:330 [Extension Host] debugger listening on port 21278 | |
16:02:26.512 extensionService.ts:788 Couldn't find message for key python.snippet.launch.unitTests.description. | |
_logMessageInConsole @ extensionService.ts:788 | |
16:02:26.515 extensionService.ts:788 Couldn't find message for key python.snippet.launch.unitTests.description. | |
_logMessageInConsole @ extensionService.ts:788 | |
16:02:26.721 textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.js.jsx. | |
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json. | |
New grammar file: file:///Users/damon/.vscode/extensions/dzannotti.vscode-babel-coloring-0.0.4/syntaxes/Babel%20Language.json | |
register @ textMateService.ts:53 | |
16:02:26.722 textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.python. |