Estimados, aca compartamos los resultados y ejercicios de base de datos
Ejercicios listados:
- Ejercicio Nº1
- Ejercicio Nº2
- Ejercicio Nº3
- Version Edutardo
@NgModule({ | |
declarations: [ | |
//... | |
IonRutDirective | |
//... | |
] | |
}) |
sudo rm -rf /usr/local/lib/node_modules | |
sudo rm -rf /usr/local/include/node_modules | |
sudo rm -rf /usr/local/bin/node | |
sudo rm -rf /usr/local/bin/node-debug | |
sudo rm -rf /usr/local/bin/node-gyp | |
sudo rm -rf ~/.npmrc | |
sudo rm -rf ~/.npm | |
sudo rm -rf ~/.node-gyp | |
sudo rm -rf ~/.node_repl_history | |
sudo rm -rf ~/node_modules |
brew install nvm | |
mkdir ~/.nvm | |
export NVM_DIR="$HOME/.nvm" | |
. "/usr/local/opt/nvm/nvm.sh" | |
nvm install node // download, compile and install the latest version of node | |
// install cordova, ionic and typescript | |
npm install -g cordova ionic typescript | |
// setting ios envivorment | |
npm install -gf ios-deploy --unsafe-perm=true |
window.ObjectSchema = function (value, options, throwError) { | |
var regexpArray = /(array|\[([\]]+)\])/i; | |
var finalObject = {}; | |
if (typeof options !== "object" || options === null) return false; | |
if (typeof value !== "object" || value === null) return false; | |
var defaultOptions = {type : "string", defaultValue : null, nullable : false}; | |
for (var property in value) { | |
var v = value[property], o = options[property]; | |
if (property in options) { | |
o = Object.assign(defaultOptions, o || {}); |
Estimados, aca compartamos los resultados y ejercicios de base de datos
Ejercicios listados:
upstream app_server { | |
ip_hash; | |
server app_react:3000 max_fails=3 fail_timeout=30s; | |
} | |
upstream api_server { | |
ip_hash; | |
server api_feathers:3040 max_fails=3 fail_timeout=30s; | |
} |
Custom format for displaying bytes as kb
, mb
, gb
or tb
.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"
app.service('messages').dispatch('eventname', (message, hook) => { | |
// Just dispatch to one user | |
if(message.isPrivate) { | |
return app.channel(message.receiver_id); | |
} | |
// Returning falsy or nothing will do nothing | |
}); | |
// Send to a certain room |