This file contains 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
############################################# | |
# 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 |
This file contains 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
public static void main(String[] args) { | |
//Division entre cero | |
try { | |
int x = 5 / 0; | |
} catch (ArithmeticException e) { | |
System.out.println(e); | |
} | |
//Fuera del tamaño del arreglo | |
try { | |
int [] y = new int[10]; |
This file contains 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
$small-desktop: 960px; | |
$large-desktop: 1200px; | |
$handheld: 768px; | |
$handhelds-landscape: 1024px; | |
$mobile: 640px; | |
$mobile-landscape: 480px; | |
@mixin respond-to($media) { | |
@if $media == largeDesktop { | |
@media only screen and (min-width: $large-desktop) { @content } |
This file contains 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
CREATE DATABASE DB_MY_CONTACTS; | |
USE DB_MY_CONTACTS; | |
/*------ACCOUNTS------*/ | |
CREATE TABLE ACCOUNTS ( | |
ACCOUNT_ID INT, | |
FIRST_NAME VARCHAR(50) NOT NULL, | |
LAST_NAME VARCHAR(50) NOT NULL, | |
PROFILE_PICTURE VARCHAR(255) NULL, | |
EMAIL VARCHAR(50) NULL, |
This file contains 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://stackoverflow.com/questions/35025419/firebase-results-range-using-startat-and-endat |
This file contains 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
CREATE DATABASE INBOMILIARIA_DATABASE_2018; | |
USE INBOMILIARIA_DATABASE_2018; | |
/* GEOLOCALIZACION */ | |
CREATE TABLE DEPARTAMENTOS ( | |
ID INT NOT NULL, | |
NAME VARCHAR(100) NOT NULL, | |
); |
This file contains 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
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
This file contains 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 addFavorite(trackId, token){ | |
const body = {"variables": { | |
"uris":[trackId] | |
}, | |
"operationName":"addToLibrary", | |
"extensions":{ | |
"persistedQuery": | |
{ | |
"version":1, | |
"sha256Hash":"656c491c3f65d9d08d259be6632f4ef1931540ebcf766488ed17f76bb9156d15"} |
This file contains 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 debugify_content_script(){ | |
console.log('debugify content script running'); | |
var nativeWebSocket = window.WebSocket; | |
var requests = window.requestLog = {}; | |
var WebSocket = window.WebSocket = function(uri) { | |
console.log('new WebSocket created', uri); | |
this.websocket = new nativeWebSocket(uri); | |
this.websocket.onopen = this.onOpen.bind(this); | |
this.websocket.onmessage = this.onMessage.bind(this); | |
this.listeners = {onmessage: null, onopen: null}; |