I hereby claim:
- I am jaseemabid on github.
- I am jaseemabid (https://keybase.io/jaseemabid) on keybase.
- I have a public key whose fingerprint is 0D01 F83F 9C88 2B6F 42B0 B93B FE8B A47C AF68 AB61
To claim this, I am signing this object:
.stack-work |
#!/usr/bin/python | |
''' | |
A simple script to get the top 100 songs from Clementine DB and copy it to | |
my phone. | |
TODO: | |
1. Handle phone unmount properly. MTPFS suck! | |
2. Dont copy files already there | |
3. Delete old files? |
I hereby claim:
To claim this, I am signing this object:
This tutorial assumes a reasonably new version of Emacs (24.4+)
Erlang Development Tool Suite aims to provide common IDE like functionality.
%% Simple tail truncated list | |
-module(ttlist). | |
-export([new/0, new/1, insert/2, lci/1]). | |
-export([test/0]). | |
new() -> []. | |
new(L) | |
when is_list(L) -> |
%% @doc Run the MFA, but log the time taken for it as well. | |
prof(M, F, A) -> | |
Note = atom_to_list(M) ++ ":" ++ atom_to_list(F), | |
prof(Note, M, F, A). | |
prof(Note, M, F, A) -> | |
S = os:timestamp(), | |
Result = apply(M, F, A), | |
E = os:timestamp(), | |
Diff = timer:now_diff(E, S)/1.0e6, |
-- Definitely not the best way to get current time as integer | |
currentPosixTime <- (getCurrentTime >>= return . utcTimeToPOSIXSeconds) | |
let currentTime = (round (read (init $ show(currentPosixTime)) :: Float) :: Integer) |
import logging | |
import time | |
logger = logging.getLogger(__name__) | |
def useful(): | |
logger.debug('Hello from webapplib!') | |
time.sleep(0.01) |
;;; auto-remove.el --- Auto remove unused functions in python | |
;;; Commentary: | |
;; Uses external tool autoflake to remove unused imports from a Python file. | |
;;; Code: | |
(defcustom python-autoflake-path (executable-find "autoflake") | |
"Autoflake executable path. |