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
nrepl.el wasn't playing very well with Evil-mode(the cursor didn't move to the next line). And this fixed it: | |
```(defadvice nrepl-return (before switch-to-normal-mode activate) | |
(evil-execute-in-emacs-state 1))``` |
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
(define golden-ratio (/ (+ 1 (sqrt 5)) 2)) | |
(define (fib n) | |
(inexact->exact (round (/ (expt golden-ratio n) (sqrt 5))))) |
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
(define cutA 7) | |
(define growA 3) | |
(define cutB 5) | |
(define growB 2) | |
(define (attack-monster heads) | |
(use-sword heads 0 '())) | |
(define (use-sword n grow s) | |
(cond ((< n 0) '()) |
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
(define cutA 7) | |
(define growA 3) | |
(define cutB 5) | |
(define growB 2) | |
(define (attack-monster heads) | |
(use-sword heads 0 null)) | |
(define (use-sword n grow s) | |
(cond ((< n 0) null) |
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
(define cutA 7) | |
(define growA 3) | |
(define cutB 5) | |
(define growB 2) | |
(define (attack-monster heads) | |
(use-sword heads 0 '())) | |
(define (use-sword n grow s) | |
(cond ((< n 0) 0) |
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 csv | |
books = csv.reader(open('goodreads_export.csv', 'rb')) | |
output_file = open('books.md', 'a') | |
for row in books: | |
if 'read' in row: | |
output = "- **"+row[1]+"** by " + row[2] + "\n" | |
output_file.write(output) | |
print outpu |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Do not edit this file, it will be overwritten on install. | |
Copy the file to $HOME/.config/openbox/ instead. --> | |
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> | |
<resistance> | |
<strength>10</strength> | |
<screen_edge_strength>20</screen_edge_strength> | |
</resistance> | |
<focus> | |
<focusNew>yes</focusNew> |
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
{% extends "base.html" %} | |
{% block title %}Archive- Samrat Man Singh{% endblock %} | |
{% block content %} | |
<div class="container" style="padding-bottom:100px;"> | |
<div class="row"> </div> | |
<div class="row"> </div> | |
<div class="row"> |
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
"""Downloads all .pdf files when given a URL | |
""" | |
from bs4 import BeautifulSoup | |
import requests | |
import os | |
url = \ | |
"http://www.xtremepapers.com/papers/CIE/Cambridge%20International%20A%20and%20AS%20Level/Mathematics%20-%20Further%20(9231)/" | |
r = requests.get(url).text |
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
call pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
"Basic config. | |
syntax on " syntax highlighing | |
filetype on " try to detect filetypes | |
filetype plugin indent on " enable loading indent file for filetype | |
set autoindent |