- put
foxdot-cli.py
in the same directory as the FoxDot installaton (in case you're usingvirtualenv
, otherwise comment from lines 5 to 7) - copy
foxdot-mode.el
to~/.emacs.d/lisp
- add
(defvar foxdot-cli-path "/path/to/foxdot-cli/")
in your~/.emacs
file - in Emacs
M-x load-library
and complete withfoxdot-mode
- Type
C-c C-f
orM-x foxdot-start
to start - Type
C-c C-e
orM-x foxdot-execute
to evaluate a line or a block of code
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 math | |
import time | |
s = math.sin | |
q = math.sqrt | |
i = lambda a, b, c: a in range(b, c) | |
def c(x, y): | |
# http://www.purplemath.com/modules/distform.htm | |
t = time.time() * 1000 / 74 |
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
# font | |
font pango:Ubuntu Mono Regular 12 | |
# settings | |
set $mod Mod4 | |
set $ws workspace | |
set $laptop LVDS1 | |
set $launcher dmenu_run -i -nb '#393939' -nf '#48B685' -sb '#dfefe2' -sf '#393939' | |
# colors |
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
;; mkdir -p $HOME/.emacs.d/themes \ | |
;; && mkdir -p $HOME/.emacs.d/lisp \ | |
;; && wget https://raw.githubusercontent.com/lvm/monochrome-theme.el/master/monochrome-transparent-theme.el -O $HOME/.emacs.d/themes/monochrome-transparent-theme.el | |
(require 'package) | |
(custom-set-variables | |
'(package-archives | |
(quote | |
(("gnu" . "http://elpa.gnu.org/packages/") | |
("melpa-stable" . "http://stable.melpa.org/packages/"))))) |
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
def flatten(dct: dict, , prefix="", glue: str = "__") -> dict: | |
flat = {} | |
prefix = f"{prefix}{glue}" if prefix else "" | |
def _flat(dct): | |
_dct = {} | |
for k, v in dct.items(): | |
if not isinstance(v, list) and not isinstance(v, dict): | |
_dct[k] = v |
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 python3 | |
import re | |
import eyed3 | |
import shlex | |
import string | |
import argparse | |
import youtube_dl | |
import subprocess as sp | |
from pathlib import Path |
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 python3 | |
import shlex | |
import argparse | |
import youtube_dl | |
import subprocess as sp | |
from pathlib import Path | |
from youtube_dl.utils import sanitize_filename | |
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 .models import Post, Category | |
from .decorators import action_form | |
class PostCategoryForm(forms.Form): | |
title = 'Update category for the selected posts' | |
category = forms.ModelChoiceField(queryset=Category.objects.all()) | |
@admin.register(Post) |
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
//https://github.com/heaversm/unity-osc-receiver | |
public var RemoteIP : String = "127.0.0.1"; | |
public var SendToPort : int = 9000; | |
public var ListenerPort : int = 8000; | |
public var cubeReceivers: GameObject[]; | |
public var sphereReceivers: GameObject[]; | |
private var handler : Osc; | |
private var cyRot : int = 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
#!/usr/bin/env python3 | |
import argparse | |
from pathlib import Path | |
def get_dirs(path): | |
return dict([(x.name,x.as_posix()) | |
for x in path.iterdir() | |
if x.is_dir()]) |
NewerOlder