Skip to content

Instantly share code, notes, and snippets.

View vitaly-pushkar's full-sized avatar

Vitaly Pushkar vitaly-pushkar

View GitHub Profile
import Html exposing (..)
import Html.App as Html
import Html.Events exposing (..)
import Html.Attributes exposing (src)
import Random
main =
Html.program
;; src/clj/me/front-office/handlers.clj
(ns me.front-office.handlers)
(defn me [] ...)
(defn login [] ...)
(defn logout [] ...)
(defvar clojure-packages
'(
clojure-mode
cider
))
(defun clojure/init-cider ()
(use-package cider
:init
:mode ("\\.clj\\'" "\\.cljs\\'" . clojure-mode)
# app/classes/examples/example.rb
module Examples
class Example
'blabla'.constantize #NoMethodError: undefined method `constantize' for Examples::Example
end
end
require 'benchmark'
def fibonacci(n)
def fib(current, nxt, n)
return current if n == 0
fib(nxt, current + nxt, n - 1)
end
fib(0, 1, n)