- moment.js
- date-fns
- https://github.com/ivelum/smartdate/
- joda-time
Инструменты:
Видео:
| module Led | |
| DIGITS = { | |
| 0 => [' _ ', | |
| '| |', | |
| '|_|'], | |
| 1 => [' ', | |
| ' | ', | |
| ' | '], | |
| 2 => [' _ ', | |
| ' _|', |
| def nth(n) when n < 2, do: [n] | |
| def nth(n), do: Prime.iter((for x <- 2..n, do: x), []) | |
| def iter([], primes), do: primes | |
| def iter([x | xs], s) do | |
| xs | |
| |> Enum.filter(fn(n) -> rem(n, x) != 0 end) | |
| |> Prime.iter([x | s]) | |
| end |
| require 'dry-validation' | |
| class EnvValidation | |
| class ENV | |
| def inspect | |
| ivs = instance_variables.each { |v| "#{v}=#{instance_variable_get(v)}" }.join(', ') | |
| "ENV[#{ivs}]" | |
| end | |
| def to_s |
| (ns sicp.extra.hexlet | |
| (:require [clojure.string :as s])) | |
| (defn solution | |
| [s] | |
| (let [substrings (fn [i] (map (partial subs (str s) i) (range (inc i) (-> (str s) count inc)))) | |
| palindrome? (fn [s] (= (s/reverse s) s))] | |
| (->> (str s) | |
| (count) | |
| (range 0) |
| (defn factorial [n] | |
| (let [y (fn [f] (f f)) | |
| f (fn [g] (fn [n] (if (zero? n) 1 (* n ((g g) (dec n))))))] | |
| ((y f) n))) |
| #%RAML 0.8 | |
| title: World Music API | |
| baseUri: http://example.api.com/{version} | |
| version: v1 | |
| schemas: | |
| - halLink: | | |
| { "$schema": "http://json-schema.org/schema", | |
| "type": "object", | |
| "description": "a Hypertext Application Language link", |
I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.
"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.