Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys
and enable Left option (⌥) key acts as: +Esc
for the option commands to work.
Modifier | Symbol |
---|---|
Option | ⌥ |
Command | ⌘ |
Control | ⌃ |
Caps Lock | ⇪ |
Shift | ⇧ |
/** | |
* Multiple borders | |
*/ | |
div { | |
width: 100px; | |
height: 60px; | |
margin: 25px; | |
clip:150px; | |
background: yellowgreen; |
Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys
and enable Left option (⌥) key acts as: +Esc
for the option commands to work.
Modifier | Symbol |
---|---|
Option | ⌥ |
Command | ⌘ |
Control | ⌃ |
Caps Lock | ⇪ |
Shift | ⇧ |
#!/bin/bash | |
# Prevents force-pushing to master. | |
# Based on: https://gist.github.com/stefansundin/d465f1e331fc5c632088 | |
# Global installation instructions | |
# mkdir $HOME/.githooks | |
# git config --global core.hooksPath $HOME/.githooks | |
# curl -fL -o $HOME/.githooks/pre-push https://gist.githubusercontent.com/area73/9783f2616c82dc451fd070661d3008d2/raw/ac5feeed9f4766195e2ec6cd6d85d3a3863cc128/pre-push | |
# chmod +x $HOME/.githooks/pre-push | |
# Uninstall: | |
# rm $HOME/.githooks/pre-push |
const _singletonEnforncer = Symbol('private'); | |
let _instance; | |
export default class EventHandler extends EventTarget { | |
static getInstance() { | |
return _instance || new EventHandler(_singletonEnforncer); | |
} | |
static throwSingletonError() { | |
throw new Error(` |
// USING SYMBOL | |
'use strict' | |
const _resetTable = Symbol('resetTable'); | |
const _replaceTable = Symbol('replaceTable'); | |
; | |
class Rejs { |
There are many tutorials and articles available online which explain functional programming. Examples show small functions, which are composed into others which again get composed. It is hard to imagine how it would all work, then come the analogies and then the math. While the math is necessary to understand it can be difficult to grasp initially. The analogies on the other hand, (at least for me) are not relatable. Some articles assume the reader knows the different terminologies of FP. Over all I felt it is not inviting to learn.
This introduction is for those who have had a tough time understanding those analogies, taken the plunge to functional programming but still have not been able to swim. This is yet another tutorial on functional programming
Functions are first class means they are just like anyone else, or rather they are not special, they behave the same as say primitives or strings or objects.
// flatten Array of any deep | |
const flattenArray = arr => { | |
return arr.reduce((prev,next)=> ( | |
Array.isArray(next) | |
? prev.concat(flattenArray(next)) | |
: prev.concat(next) | |
),[]); | |
}; | |
module.exports = flattenArray; |
Consolidated lists of CSS properties that are inherited by default. | |
Taken from http://www.w3.org/TR/CSS21/propidx.html | |
-------------------------------------------------------------------- | |
One item not in the list was "text-decoration" which affects child elements. A few new properties (text-shadow) also affect child elements | |
List | |
azimuth | |
border-collapse |
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |