Skip to content

Instantly share code, notes, and snippets.

View carlosrojaso's full-sized avatar
🎯
Focusing

Carlos Rojas carlosrojaso

🎯
Focusing
View GitHub Profile
this.tasks = this.tasks.filter((el) => el.id !== deletedTask.id);
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
$ git merge upstream/develop
$ git push origin develop
@carlosrojaso
carlosrojaso / gist:c760a1a97a2f62f0c6b054cf8a0dee87
Created September 7, 2019 10:56
Release node_modules space
find . -name "node_modules" -type d -prune | xargs du -chs
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
@carlosrojaso
carlosrojaso / gist:c1f4d8b96d57110386f345896434b51d
Created August 24, 2019 17:16 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
{
test: /\.json$/,
loader: 'json-loader'
},
{
test: /\.css$/,
loader: 'raw-loader'
},
{
test: /\.html$/,
@carlosrojaso
carlosrojaso / gist:0ee41461936cd7087e0889a88bddcb68
Created March 2, 2018 16:01
Javascript split by white spaces
.trim().replace(/\s+/, " ").split(" ")
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');
}
<script src="https://gumroad.com/js/gumroad.js"></script> <a class="gumroad-button" href="https://gum.co/NWTB">Buy my product</a>
import { CloudSettings, CloudModule } from '@ionic/cloud-angular';
const cloudSettings: CloudSettings = {
'core': {
'app_id': 'APP_ID'
}
};
Arrow
https://es6console.com/j16wwsxf/
Template String
https://es6console.com/j16xcw3b/
Herencia
https://es6console.com/j16xhrg7/