$ sudo usermod -a -G dialout lmeza
$ sudo chmod a+rw /dev/ttyUSB0
Source: http://arduino-er.blogspot.mx/2014/08/arduino-ide-error-avrdude-seropen-cant.html
| const mongoClient = require('mongodb').MongoClient; | |
| const rl = require('readline'); | |
| const url = 'mongodb://localhost:27017'; | |
| const dbName = 'foo-bar'; | |
| const TWEETS_COLLECTION = 'tweets'; | |
| const USERS_COLLECTION = 'users'; | |
| const ask = function(question, callback) { | |
| var r = rl.createInterface({ |
| const axios = require('axios'); | |
| // Declare a method to consume the API | |
| const getMeetups = (lon, lat) => axios | |
| .post('https://safemeet-back-jmedcxhwdp.now.sh', { lon, lat }) | |
| .then(({data}) => data); | |
| // Call the method and get the name of each meetup | |
| Promise.all([getMeetups(-103.4054534, 20.6737777), getMeetups(-99.1709761, 19.426063)]) | |
| .then((myArray) => { |
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o pipefail | |
| set -o nounset | |
| # set -o xtrace | |
| echo "0.- Reestablecer el contexto" | |
| sudo restorecon -Rv /var/www/html | |
| echo "1.- Cambiar propietario del webroot de Apache" |
| var app = angular.module("modalFormApp", ['ui.bootstrap']); | |
| app.controller("modalAccountFormController", ['$scope', '$uibModal', '$log', | |
| function ($scope, $uibModal, $log) { | |
| $scope.showForm = function () { | |
| $scope.message = "Show Form Button Clicked"; | |
| console.log($scope.message); | |
| var uibModalInstance = $uibModal.open({ |
| @ECHO off | |
| SETLOCAL ENABLEDELAYEDEXPANSION | |
| REM Windows Batch script to backup all mysql databases in a server | |
| REM @author: Lenin Meza <[email protected]> | |
| REM Database information | |
| SET dbhost="127.0.0.1" | |
| SET dbuser="root" |
$ sudo usermod -a -G dialout lmeza
$ sudo chmod a+rw /dev/ttyUSB0
Source: http://arduino-er.blogspot.mx/2014/08/arduino-ide-error-avrdude-seropen-cant.html
| function slugify(text) | |
| { | |
| var from = "ãàáäâẽèéëêìíïîõòóöôùúüûñç·/_,:;"; | |
| var to = "aaaaaeeeeeiiiiooooouuuunc------"; | |
| _.each( from, function( character, i ) { | |
| text = text.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
| }); | |
| return text | |
| .toString() // Cast to string | |
| .toLowerCase() // Convert the string to lowercase letters |
Download and install "Android Studio": http://developer.android.com/sdk/index.html
Ensure that have the next environment variables in your PATH: ANDROID_HOME JAVA_HOME
Create an Android device emulator with the "AVD Manager" or with: $ android avd
| # curl -LsS http://symfony.com/installer -o ./symfony | |
| # ./symfony new chipotle lts | |
| ✔ Symfony 2.8.0 was successfully installed. | |
| # chown -R apache:apache ./chipotle/* | |
| # chmod -R 775 ./chipotle/* | |
| # cd chipotle | |
| # nano app/config/parameters.yml | |
| # /bin/php app/console doctrine:database:create | |
| Created database `symfony_lts` for connection named default |
npm install express -g