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
| export const copyToClipboard = (url: string) => { | |
| document.addEventListener('copy', (e: ClipboardEvent) => { | |
| e.clipboardData.setData('text/plain', url); | |
| e.preventDefault(); | |
| document.removeEventListener('copy'); | |
| }); | |
| document.execCommand('copy'); | |
| }; |
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
| var app = angular.module('InputDemo', []); | |
| app.controller('MainController', [ | |
| // Dependencies | |
| // Controller | |
| function() { | |
| // Does nothing | |
| } |
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
| angular.module('ClientSuccess.services').factory 'fileService', (authService, $q, $rootScope)-> | |
| service = {} | |
| service.uploadAvatar = (file) -> | |
| deferred = $q.defer() | |
| apiAuth = authService.enableAuth() | |
| query = | |
| binary: null | |
| id: null | |
| postIt = () -> |
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
| # From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
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 |