This file contains hidden or 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
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |
This file contains hidden or 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 React from "react"; | |
import { render } from "react-dom"; | |
const ParentComponent = React.createClass({ | |
getDefaultProps: function() { | |
console.log("ParentComponent - getDefaultProps"); | |
}, | |
getInitialState: function() { | |
console.log("ParentComponent - getInitialState"); | |
return { text: "" }; |
This file contains hidden or 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
# Completions for npmenv.fish | |
function __fish_npmenv_needs_command | |
set cmd (commandline -opc) | |
if [ (count $cmd) -eq 1 -a $cmd[1] = 'npmenv' ] | |
return 0 | |
end | |
return 1 | |
end |
This file contains hidden or 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
#!/bin/bash | |
if system_profiler SPAudioDataType | grep --quiet Headphones; then | |
echo plugged in | |
else | |
echo not plugged in | |
fi |
This file contains hidden or 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
Observatori Municipal de l'Habitatge d'Alcoi | |
Observatorio Autonómico dos Ríos de Galicia | |
Observatorio da Sociedade da Información e a Modernización de Galicia | |
Observatorio da Violencia no Contorno Laboral | |
Observatorio de Administración Electrónica | |
Observatorio de Igualdad de Oportunidades entre Mujeres y Hombres | |
Observatorio de la Cadena Alimentaria | |
Observatorio de la Ciencia Ciudadana | |
Observatorio de la Gestión Empresarial en Biodiversidad | |
Observatorio de la Infancia de España |
OlderNewer