Skip to content

Instantly share code, notes, and snippets.

View jeremyrajan's full-sized avatar
💭
💯

Jeremy Rajan jeremyrajan

💭
💯
View GitHub Profile
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@jeremyrajan
jeremyrajan / spacemacs-cheshe.md
Created January 2, 2018 14:40 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@jeremyrajan
jeremyrajan / requireNoCache.js
Created November 16, 2016 02:44 — forked from adam-lynch/requireNoCache.js
Require a module, without going to Node.js's require cache
var path = require('path');
var _invalidateRequireCacheForFile = function(filePath){
delete require.cache[path.resolve(filePath)];
};
var requireNoCache = function(filePath){
_invalidateRequireCacheForFile(filePath);
return require(filePath);
};
@jeremyrajan
jeremyrajan / settings.json
Last active December 7, 2016 03:20
Vscode settings.json
// Place your settings in this file to overwrite the default settings
{
"typescript.check.tscVersion": false,
"files.associations": {
"*.ts": "typescript"
},
"editor.fontFamily": "Fira Code",
"editor.fontSize": 13,
"editor.tabSize": 2,
"editor.cursorBlinking": "smooth",
=begin
@module FileSystem
Structure: data = [{
type: 'd',
name: 'c',
path: '/c',
children: [{
type: 'f',
name: 'myfolder',
path: '/c/myfolder',
const entityTypes = ['d', 'f', 't', 'z'];
/* properties
Type
Name
Path
Content
*/
const data = [];
/* data = [{
[{ ref: 'refs/heads/test',
before: '7eb0542d24a7b55a788966b9e996a8edb56ec5be',
after: '530c2b92e094d0d3494c22fa3ca12393f89e7acf',
created: false,
deleted: false,
forced: false,
base_ref: null,
compare: 'https://github.com/jeremyrajan/jeremyrajan.github.io/compare/7eb0542d24a7...530c2b92e094',
commits:
[ { id: '530c2b92e094d0d3494c22fa3ca12393f89e7acf',
@jeremyrajan
jeremyrajan / puma.sh
Last active August 29, 2015 14:15 — forked from runlevel5/puma.sh
#!/usr/bin/env bash
# Simple move this file into your Rails `script` folder. Also make sure you `chmod +x puma.sh`.
# Please modify the CONSTANT variables to fit your configurations.
# The script will start with config set by $PUMA_CONFIG_FILE by default
PUMA_CONFIG_FILE=config/puma.rb
PUMA_PID_FILE=tmp/pids/puma.pid
PUMA_SOCKET=tmp/sockets/puma.sock
.dh_hover {
opacity: 0.8;
border: 1px solid #0990C5;
position: relative;
top: -1px;
left: -1px;
}
#dialog {
display: none;
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/