I hereby claim:
- I am darioghilardi on github.
- I am darioghilardi (https://keybase.io/darioghilardi) on keybase.
- I have a public key ASCFLEBAUdI4f2q7pdmcfltCwcSbxjx80WGTXQojHnC-7wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
;; Elixir configuration | |
;; Start by configuring Alchemist for some tasks. | |
(def-package! alchemist | |
:hook (elixir-mode . alchemist-mode) | |
:config | |
(set-lookup-handlers! 'elixir-mode | |
:definition #'alchemist-goto-definition-at-point | |
:documentation #'alchemist-help-search-at-point) | |
(set-eval-handler! 'elixir-mode #'alchemist-eval-region) | |
(set-repl-handler! 'elixir-mode #'alchemist-iex-project-run) |
import React from 'react'; | |
import { render } from 'react-dom'; | |
import { branch, renderComponent, renderNothing } from 'recompose'; | |
// Define a stateless React component | |
const HelloWorld = () => <p>Hello World!</p>; | |
// Defines an higher order component using branch: | |
// - The first parameter is a function that | |
// returns true or false. In this case |
(set-env! | |
:source-paths #{"sass" "src/cljs"} | |
:resource-paths #{"resources"} | |
:dependencies '[...]) | |
(require | |
'[adzerk.boot-cljs :refer [cljs]] | |
'[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]] | |
'[adzerk.boot-reload :refer [reload]] | |
'[pandeiro.boot-http :refer [serve]] |
(defproject project-name "0.1.0-SNAPSHOT" | |
:dependencies [...] | |
:min-lein-version "2.5.3" | |
:source-paths ["src/clj" "script"] | |
:plugins [[lein-cljsbuild "1.1.1"] | |
[lein-doo "0.1.6"]] |
mix new project_name | |
# * creating README.md | |
# * creating .gitignore | |
# * creating mix.exs | |
# * creating config | |
# * creating config/config.exs | |
# * creating lib | |
# * creating lib/project_name.ex | |
# * creating test |
defmodule Names do | |
def full_name(name, surname, title \\ "Mr") do | |
title <> " " <> String.capitalize(name) <> " " <> String.capitalize(surname) | |
end | |
end | |
Names.full_name("john", "doe") # Mr John Doe | |
Names.full_name("melissa", "doe", "Ms") # Ms Melissa Doe |
# Failed rebinding in pattern matching | |
[a, b, a] = [1, 2, 3] | |
# ** (MatchError) no match of right hand side value: [1, 2, 3] |
diff --git a/sites/all/modules/features/elite_base/elite_base.module b/sites/all/modules/features/elite_base/elite_base.module | |
index 71474bc..60ee47b 100644 | |
--- a/sites/all/modules/features/elite_base/elite_base.module | |
+++ b/sites/all/modules/features/elite_base/elite_base.module | |
@@ -361,7 +361,7 @@ function elite_base_form_user_profile_form_alter(&$form, &$form_state) { | |
$field_view = render($field_view); | |
$form[$fc]['#prefix'] .= | |
- '<div id="btn-custom-container"><button id="add-' . $fc . '" class="add-new-field-collection-item" type="button">' . t('Add new') . '</button>' . | |
+ '<div id="btn-custom-container"><button id="add-' . $fc . '" class="add-new-field-collection-item" type="button" role="' . $fc . '">' . t('Add new') . '</button>' . |
/* Remove first line preview of the message */ | |
.apB { | |
display: none; | |
} | |
/* Align priority inbox yellow elements */ | |
.apd { | |
padding: 0 2px 0 0; | |
} |