Skip to content

Instantly share code, notes, and snippets.

View swaroopch's full-sized avatar

Swaroop CH swaroopch

View GitHub Profile
@swaroopch
swaroopch / spacemacs.org
Last active March 11, 2017 20:23
spacemacs-org-present
#!/usr/bin/env python
from __future__ import absolute_import, division, print_function, unicode_literals
import arrow
import click
click.disable_unicode_literals_warning = True
def is_weekend(i):
assert isinstance(i, arrow.Arrow)
@swaroopch
swaroopch / readme.md
Last active August 16, 2017 17:47 — forked from anoff/readme.md
Readme Template

MyTool {Title/Reponame}

Helps you build things {one-line purpose}

{} = Explanations for this readme..

Maybe here is a small overview of how MyTool, should not be longer than 5 lines and you're invited to use emojis 👯.

@swaroopch
swaroopch / init.el
Last active September 1, 2017 01:03
How do I add a new segment to the spacemacs mode line?
(spaceline-define-segment foo
"Foo Docs"
(when (bound-and-true-p spaceline-foo-p)
"Foo: TODO")
:when active
:global-override foo)
(add-to-list 'spacemacs-spaceline-additional-segments '(foo))
(spaceline-spacemacs-theme '(foo))
@swaroopch
swaroopch / init.el
Last active September 4, 2017 13:53
Ethereum price ticker for Spacemacs mode line
;; Screenshot at https://twitter.com/swaroopch/status/903442255796633600
;; Inspired by https://www.reddit.com/r/ethtrader/comments/6wxizf/single_best_feature_of_the_new_macbook/
;; Code written for Spacemacs, will need adaptation to your Emacs setup
;; Spacemacs users: You may need to enable `spacemacs-misc` layer to ensure `request` package is installed.
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is