I have a "lights" workflow in Alfred, that is a little AppleScript
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
... | |
... | |
... | |
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) | |
// Turn on vertical screen sync under Windows. | |
// (I.e. it uses the WGL_EXT_swap_control extension) | |
typedef BOOL(WINAPI *PFNWGLSWAPINTERVALEXTPROC)(int interval); | |
PFNWGLSWAPINTERVALEXTPROC wglSwapIntervalEXT = NULL; | |
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress("wglSwapIntervalEXT"); |
export ANDROID_HOME=/Users/flanneryjefferson/Library/Android/sdk | |
export PATH=$ANDROID_HOME/tools:$PATH | |
export PATH=$ANDROID_HOME/platform-tools:$PATH | |
export PATH=$ANDROID_HOME/build-tools/23.0.1:$PATH | |
export PATH="$HOME:$PATH:${PATH}:/usr/local/mysql/bin:${PATH}:/usr/bin:/Users/flannerykj/Library/Python/3.6/bin" | |
# deleted from path: $HOME/.node/bin:/Users/flannerykj/Library/Python/2.7/bin: | |
export PATH="/usr/local/opt/node@8/bin:$PATH" | |
export PATH="$HOME:$PATH:${PATH}:/usr/local/mysql/bin:${PATH}:/usr/bin:$HOME/.node/bin" |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Plugins here | |
call plug#begin('~/.vim/plugged') | |
Plug 'w0rp/ale' | |
Plug 'keith/swift.vim' | |
Plug 'vim-airline/vim-airline' |
from django.db import connection, models | |
class MyManager(Manager): | |
def raw_as_qs(self, raw_query, params=()): | |
"""Execute a raw query and return a QuerySet. The first column in the | |
result set must be the id field for the model. | |
:type raw_query: str | unicode | |
:type params: tuple[T] | dict[str | unicode, T] | |
:rtype: django.db.models.query.QuerySet | |
""" |
In order of first appearance in The Morning Paper.
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
import QtQuick 2.7 | |
import QtQuick.Window 2.2 | |
import QtQuick.Controls 2.0 | |
import Qt.labs.calendar 1.0 | |
Rectangle { | |
id: mainForm | |
height: cellSize * 12 | |
width: cellSize * 8 | |
property double mm: Screen.pixelDensity |