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
package main | |
import ( | |
"encoding/hex" | |
"log" | |
"net" | |
"time" | |
) | |
const ( |
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
CLJ_NREPL_PORT:=22340 | |
FIGWHEEL_PORT:=22345 | |
CLJS_JAR_VERSION:=1.7.48 | |
CLJS_JAR_URL:=https://github.com/clojure/clojurescript/releases/download/r$(CLJS_JAR_VERSION)/cljs.jar | |
.PHONY: def_target | |
def_target : null |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
create a new dir
$ mkdir /tmp/ruby
$ cd /tmp/ruby
create extconf.rb
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
(ns pretty-report | |
(:require [clojure.test :refer :all] | |
[clojure.stacktrace :as stack] | |
[io.aviso.ansi :as a])) | |
(defmulti pretty-report :type) | |
(defmethod pretty-report :default [m] | |
(with-test-out (prn m))) |
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
(require '[clojure.string :as s] | |
'[gregor.core :as gregor]) | |
(defn to-prop [k] | |
(-> k name (s/replace #"-" "."))) | |
(defn to-props | |
"ranames keys by converting them to strings and substituting dashes with periods | |
only does top level keys" | |
[conf] |
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
;;A useful init.el gist created from init.el at https://github.com/Fuco1/smartparens/issues/420 | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
;; Grab the following packages if not already installed |
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
;; -*- 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 |
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
; This is a Swing-based game where the arrow keys to guide | |
; a snake to apples. Each time the snake eats an apple it | |
; grows and a new apple appears in a random location. | |
; If the head of the snake hits its body, you lose. | |
; If the snake grows to a length of 10, you win. | |
; In either case the game starts over with a new, baby snake. | |
; | |
; This was originally written by Abhishek Reddy. | |
; Mark Volkmann rewrote it in an attempt to make it easier to understand. |