Skip to content

Instantly share code, notes, and snippets.

@terakilobyte
terakilobyte / NavBar.jsx
Last active August 29, 2015 14:22
NavBar responsive buttons and dropdown
/**
* Created by nathanleniz on 6/4/15.
*/
if (Meteor.isClient) {
$(document).ready(function() {
$(".dropdown-button").dropdown({
inDuration: 300,
outDuration: 225,
constrain_width: false,
@terakilobyte
terakilobyte / Proposal
Created June 10, 2015 20:55
JS Curriculum
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
@terakilobyte
terakilobyte / vim.bundles
Created June 17, 2015 13:34
vim settings
if &compatible
set nocompatible
end
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" Let Vundle manage Vundle
Plugin 'gmarik/Vundle.vim'
@terakilobyte
terakilobyte / gcd
Last active August 29, 2015 14:23
Etudes 4dash2
defmodule Etudes4 do
@moduledoc """
Etudes chapter 4
"""
@doc """
Calculates the greatest common divisor of two integers using the Dijkstra
algorithm.
Examples:
@terakilobyte
terakilobyte / ** (CondClauseError) no cond clause evaluated to a true value
Created October 26, 2015 04:20
** (CondClauseError) no cond clause evaluated to a true value
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
)
;; -*- 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
<!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="">
;; -*- 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
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
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