Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
var COMPILED = false;
var goog = goog || {};
goog.global = this;
goog.DEBUG = true;
goog.LOCALE = "en";
goog.evalWorksForGlobals_ = null;
goog.provide = function(name) {
if(!COMPILED) {
if(goog.getObjectByName(name) && !goog.implicitNamespaces_[name]) {
throw Error('Namespace "' + name + '" already declared.');
This file has been truncated, but you can view the full file.
var COMPILED = false;
var goog = goog || {};
goog.global = this;
goog.DEBUG = true;
goog.LOCALE = "en";
goog.evalWorksForGlobals_ = null;
goog.provide = function(name) {
if(!COMPILED) {
if(goog.getObjectByName(name) && !goog.implicitNamespaces_[name]) {
throw Error('Namespace "' + name + '" already declared.');
fseq :: Integer -> Integer
fseq n | n == 0 = 1
| n == 1 = 2
| n > 2 = 3 * fseq (n - 1)
| otherwise = error "Unknown argument"
@dbushenko
dbushenko / gist:5220377
Created March 22, 2013 10:32
Clojure Course Lection 02
(ns lection02.core)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Namespaces
;; Refer
;;---------------
(comment
(ns lection03.core)
;; Eval
(eval '(+ 1 2))
(defn my-pre-macro1 [a b]
(eval (list '+ a b)))
(ns laser-test.core
(:require [me.raynes.laser :as l]
[clojure.java.io :refer [file]]
[hickory.zip :refer [hickory-zip]]))
(def html (l/parse (file "test1.html")))
(println
(l/document html)
)
(setq show-paren-style 'expression)
(show-paren-mode 2)
(menu-bar-mode -1)
(tool-bar-mode -1)
(setq make-backup-files nil) ; Don't want any backup files
(setq auto-save-list-file-name nil) ; Don't want any .saves files
(setq auto-save-default nil) ; Don't want any auto saving
* Emacs as IDE
** Sr Speedbar
http://www.emacswiki.org/emacs/SrSpeedbar
** Yasnippet
http://www.emacswiki.org/emacs/Yasnippet
** Projectile
https://github.com/bbatsov/projectile

Visibility cycling

Tab – show current

S-tab – show all children

C-u C-u C-u Tab – show all including drawers

Startup options

Python programming exampleh

Org-mode formatting utilities

HTML tags