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
import Html exposing (..) | |
import Html.App as Html | |
import Html.Events exposing (..) | |
import Html.Attributes exposing (src) | |
import Random | |
main = | |
Html.program |
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
;; src/clj/me/front-office/handlers.clj | |
(ns me.front-office.handlers) | |
(defn me [] ...) | |
(defn login [] ...) | |
(defn logout [] ...) |
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
(defvar clojure-packages | |
'( | |
clojure-mode | |
cider | |
)) | |
(defun clojure/init-cider () | |
(use-package cider | |
:init | |
:mode ("\\.clj\\'" "\\.cljs\\'" . clojure-mode) |
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
# app/classes/examples/example.rb | |
module Examples | |
class Example | |
'blabla'.constantize #NoMethodError: undefined method `constantize' for Examples::Example | |
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
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) |
NewerOlder