This file contains 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
1. Variable Types (Primitive/Object) | |
2. Logical Operators | |
3. Branch Statements (If/Else/Switch) | |
4. Arrays (Basic) | |
5. Loops (For/While) | |
6. Functions (Basic) | |
7. Objects (Basic) | |
8. Arrays and Objects (Intermediate) | |
9. Scope | |
10. This keyword |
This file contains 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
if &compatible | |
set nocompatible | |
end | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#rc() | |
" Let Vundle manage Vundle | |
Plugin 'gmarik/Vundle.vim' |
This file contains 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
defmodule Etudes4 do | |
@moduledoc """ | |
Etudes chapter 4 | |
""" | |
@doc """ | |
Calculates the greatest common divisor of two integers using the Dijkstra | |
algorithm. | |
Examples: |
This file contains 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
Enum.reduce(sentence, %{}, | |
fn(word, acc) -> | |
cond do | |
Map.has_key?(acc, word) -> | |
acc = Map.update(acc, word, 1, &(&1 + 1)) | |
true | |
acc = Map.put(acc, word, 1) | |
end | |
end | |
) |
This file contains 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 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
This file contains 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 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
defmodule Rumbl.InfoSys.Wolfram do | |
import SweetXml | |
import Ecto.Query, only: [from: 2] | |
alias Rumbl.InfoSys.Result | |
# Starts this task as a separate evm process that won't block anything, and tells it to execute | |
# the fetch function | |
def start_link(query, query_ref, owner, limit) do | |
Task.start_link(__MODULE__, :fetch, [query, query_ref, owner, limit]) | |
end |
This file contains 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
Debugger entered--Lisp error: (void-function bind-map-evil-define-key) | |
bind-map-evil-define-key((normal) nil (" l") evil-lisp-state-map-prefix) | |
byte-code("\304^H!\204^K^@\305\306\300\"\210^H^Q\301^HM\210\307\211^Z\211^[\203(^@^K@^R\310\n\301\"\210^KA\211^S\204^Y^@*\311\312\307\313\301$\207" $ | |
require(evil-lisp-state nil noerror) | |
(not (require (quote evil-lisp-state) nil (quote noerror))) | |
(if (not (require (quote evil-lisp-state) nil (quote noerror))) (ignore (message (format "Could not load %s" (quote evil-lisp-state))))) | |
(progn (if (condition-case err (run-hook-with-args-until-failure (quote use-pack |