A Pen by Carlos Rojas on CodePen.
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
<form action="." method="post"> | |
<noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
<input | |
type="submit" | |
value="Pay with Card" | |
data-key="PUBLISHABLE STRIPE KEY" | |
data-amount="500" | |
data-currency="cad" | |
data-name="Example Company Inc" |
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
############################################# | |
# 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 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
window.addEventListener("orientationchange", handleOrientation, true); | |
function handleOrientation(){ | |
if (Math.abs(window.orientation) == 90) { | |
angular.element(document.querySelector('#imagenBackground')).attr("src","img/background-landscape.png"); | |
angular.element(document.querySelector('#imagen-Background')).css("width","35%"); | |
} else { | |
angular.element(document.querySelector('#imagenBackground')).attr("src","img/background-portrait.png"); | |
angular.element(document.querySelector('#imagen-Background')).css("width","45%"); | |
} |
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
Twitter: @carlosrojas_o | |
Email: [email protected] | |
Youtube: https://youtube.com/carlosrojas84 |
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
Arrow | |
https://es6console.com/j16wwsxf/ | |
Template String | |
https://es6console.com/j16xcw3b/ | |
Herencia | |
https://es6console.com/j16xhrg7/ |
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 { CloudSettings, CloudModule } from '@ionic/cloud-angular'; | |
const cloudSettings: CloudSettings = { | |
'core': { | |
'app_id': 'APP_ID' | |
} | |
}; | |
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
<script src="https://gumroad.com/js/gumroad.js"></script> <a class="gumroad-button" href="https://gum.co/NWTB">Buy my product</a> |
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 { AngularFireAuth } from 'angularfire2/auth'; | |
.... | |
constructor(public afAuth: AngularFireAuth) { } | |
........ | |
this.afAuth.authState.subscribe(res => { | |
if (res && res.uid) { | |
console.log('user is logged in'); | |
} else { | |
console.log('user not logged in'); | |
} |
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
.trim().replace(/\s+/, " ").split(" ") |