Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
| (ns todo-server.core | |
| (:require | |
| [cljs.nodejs :as nodejs] | |
| [figwheel.client :as fw])) | |
| (nodejs/enable-util-print!) | |
| (defonce express (nodejs/require "express")) | |
| (defonce serve-static (nodejs/require "serve-static")) | |
| (defonce http (nodejs/require "http")) |
| //When I wrote this, only God and I understood what I was doing | |
| //Now, God only knows | |
| var fibonacci = function (_) { | |
| for(_=[+[],++[[]][+[]],+[],_],_[++[++[++[[]][+[]]][+[]]][+[]]]=(((_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]]))&(((--[[]][+[]])>>>(++[[]][+[]]))))===(_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])))?(_[++[++[[]][+[]]][+[]]]=++[[]][+[]],_[++[++[++[[]][+[]]][+[]]][+[]]]-(++[[]][+[]])):+[]; _[++[++[++[[]][+[]]][+[]]][+[]]]--; _[+[]]=(_[++[[]][+[]]]=_[++[++[[]][+[]]][+[]]]=_[+[]]+_[++[[]][+[]]])-_[+[]]); | |
| return _[++[++[[]][+[]]][+[]]]; | |
| } |
| (spacemacs|defvar-company-backends typescript-mode) |
| ;; based on http://emacsredux.com/blog/2013/04/03/delete-file-and-buffer/ | |
| (defun delete-file-and-buffer () | |
| "Kill the current buffer and deletes the file it is visiting." | |
| (interactive) | |
| (let ((filename (buffer-file-name))) | |
| (if filename | |
| (if (y-or-n-p (concat "Do you really want to delete file " filename " ?")) | |
| (progn | |
| (delete-file filename) | |
| (message "Deleted file %s." filename) |
| # This will automatically install the Sumo Logic collector on AWS Elastic | |
| # Beanstalk instances. Add this to the .ebextensions folder in your app root | |
| # and edit L24-25 to match your Sumo Logic accessid and accesskey. To add or | |
| # remove tracked files, simply add or remove source hashes to the sources | |
| # array on L36. | |
| packages: | |
| rpm: | |
| SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64 | |
| services: |
Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
Want to use Nix for development but you're not sure how? Concerned about the
fluidity of nixpkgs channels or not being able to easily install arbitrary
package versions?
When I first heard about Nix it seemed like the perfect tool for a developer. When I tried to actually use it for developing and deploying web apps, though, the pieces just didn't seem to add up.
| {-# LANGUAGE FlexibleContexts #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main where | |
| import qualified Data.Aeson.Encode as A | |
| import Data.ByteString.Lazy (toStrict) | |
| import Data.Either |