-
Make sure kernel version is 4.9 or newer:
uname -r
Install Hardware Enablement Stack (HWE) to update kernel automaticly:
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
| using REPL | |
| using REPL.LineEdit | |
| # basically the same as Base's `display_error`, just with different frames removed | |
| function display_error(io, err, st) | |
| ind = findfirst(frame -> frame.file == Symbol(@__FILE__) && frame.func == :repleval, st) | |
| st = st[1:(ind == nothing ? end : ind - 2)] | |
| printstyled(io, "ERROR: "; bold=true, color=Base.error_color()) | |
| showerror(IOContext(io, :limit => true), err, st) | |
| println(io) | |
| end |
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 argparse | |
| import deepspeech as ds | |
| import numpy as np | |
| import shlex | |
| import subprocess | |
| import sys | |
| parser = argparse.ArgumentParser(description='DeepSpeech speech-to-text from microphone') | |
| parser.add_argument('--model', required=True, | |
| help='Path to the model (protocol buffer binary file)') |
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 <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <unistd.h> | |
| BOOL copy_to_clipboard(NSString *path) | |
| { | |
| // http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
| NSImage * image; | |
| if([path isEqualToString:@"-"]) | |
| { | |
| // http://caiustheory.com/read-standard-input-using-objective-c |
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
| # Tested on Python 3.6.1 | |
| # install: pip install --upgrade arabic-reshaper | |
| import arabic_reshaper | |
| # install: pip install python-bidi | |
| from bidi.algorithm import get_display | |
| # install: pip install Pillow | |
| from PIL import ImageFont |
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
| (require 'org-archive) | |
| ; Set the function to use for org-archive-default (C-c C-x C-a) | |
| ; (setq org-archive-location (concat org-directory "/archive/%s_archive::")) | |
| ; (setq org-archive-location "archive/archived_%s::") | |
| (setq org-archive-location "::* ARCHIVED") | |
| ; unmap org-archive-subtree | |
| (define-key org-mode-map (kbd "C-c C-x C-s") nil) |
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
| ━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| I LOVE A SLIME'Y SWANK! | |
| Drew Crampsie | |
| ━━━━━━━━━━━━━━━━━━━━━━━━━ | |
| Table of Contents | |
| ───────────────── |
This note outlines a principled way to meta-programming in Scala. It tries to combine the best ideas from LMS and Scala macros in a minimalistic design.
-
LMS: Types matter. Inputs, outputs and transformations should all be statically typed.
-
Macros: Quotations are ultimately more easy to deal with than implicit-based type-lifting
-
LMS: Some of the most interesting and powerful applications of meta-programming
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
| brew options ffmpeg | |
| brew install ffmpeg \ | |
| --with-chromaprint \ | |
| --with-fdk-aac \ | |
| --with-fontconfig \ | |
| --with-freetype \ | |
| --with-frei0r \ | |
| --with-game-music-emu \ | |
| --with-libass \ |
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
| # Download from | |
| # http://security.debian.org/debian-security/pool/updates/main/c/chromium-browser/chromium-browser_60.0.3112.78-1~deb9u1.debian.tar.xz | |
| # API keys assigned to Debian by Google for access to their services like sync and gmail. | |
| # *nix | |
| export GOOGLE_API_KEY="AIzaSyCkfPOPZXDKNn8hhgu3JrA62wIgC93d44k" | |
| export GOOGLE_DEFAULT_CLIENT_ID="811574891467.apps.googleusercontent.com" | |
| export GOOGLE_DEFAULT_CLIENT_SECRET="kdloedMFGdGla2P1zacGjAQh" | |
| # OSX |