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
| #Copiar Directorios | |
| cp -a directorioA directorioB | |
| cp -a -r -n directorioA directorioB | |
| # Resetear Git | |
| git fetch origin | |
| git reset --hard origin/master | |
| # Cambiar grupo y administrador Directorios | |
| chown -R grupo directorio |
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
| https://medium.com/@dschnr/using-headless-chrome-as-an-automated-screenshot-tool-4b07dffba79a |
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
| I have found a solution. Read here: muaz-khan/RecordRTC#181 | |
| Here is a code that starts to record video+audio in Electron: | |
| let recorder; | |
| let blobs = []; | |
| function captureScreenVideoWithAudio() { | |
| navigator.webkitGetUserMedia({ | |
| audio: true |
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
| mongoexport --host localhost --username XXX --password XXX --collection XXX --db XXX --out XXX.json | |
| mongoexport --host localhost --username XXX --password XXX --collection XXX --db XXX --type=csv --fields XXX --out XXX.csv |
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
| Mongoose: mongodb://username:password@host:port/database | |
| $ mongo | |
| > use admin | |
| > db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
| > exit | |
| $ mongo | |
| > use some_db | |
| > db.createUser({user: "mongouser",pwd: "someothersecret",roles: ["readWrite"]}) |
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
| Dictionary<float, float> ratiosList = new Dictionary<float, float>(); | |
| List<float> list = new List<float> { 1.78f, 1.67f, 1.33f, 1.6f, 1.5f, 1f }; | |
| void Awake () { | |
| ratiosList.Add(1.78f, 5.4015f); | |
| ratiosList.Add(1.67f, 5.7623f); | |
| ratiosList.Add(1.33f, 7.1958f); | |
| ratiosList.Add(1.6f, 6f); |
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
| package com.audiomp3; | |
| import android.media.MediaPlayer; | |
| import android.os.Debug; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.View; | |
| import android.widget.Button; | |
| import android.widget.SeekBar; |
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
| using System; | |
| using System.Collections; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class PluginGenerarMenu : EditorWindow { | |
| public static GameObject Carrousel { get; private set; } |
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
| Drag an Drop UI Canvas | |
| --------------------------- | |
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| public class DragB : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler | |
| { |
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
| {id: 1, palabras: [ | |
| 'cine', 'animacion', 'animación', 'pelicula', 'actor', | |
| 'espectaculo' | |
| ]}, | |
| {id: 2, palabras: [ | |
| 'motor', 'coche', 'moto', 'carrera', 'carreras', 'rueda', | |
| 'carretera', 'velocidad', 'auto', 'automovil', 'vehiculo', | |
| 'vehiculos' | |
| ]}, |
NewerOlder