Skip to content

Instantly share code, notes, and snippets.

View chl03ks's full-sized avatar
🍊
Working from home

Dan Garcia chl03ks

🍊
Working from home
View GitHub Profile
import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router, Params } from '@angular/router';
import { ToastsManager } from 'ng2-toastr/ng2-toastr';
import { CustomerApi } from '../../shared/sdk/services/custom/Customer';
import { Customer } from '../../shared/sdk/models/Customer';
import { LoopBackAuth } from '../../shared/sdk/services/core/auth.service';
import * as zxcvbn from 'zxcvbn';
@chl03ks
chl03ks / unfollow.js
Last active December 21, 2016 16:24
Unflollow and follow all in twitter.
setInterval(function() {
t = $(".following").find(".follow-button"); //.not-following
if (!t[0]) {
window.scrollTo(0,
$(document).height());
} else {
console.log(t.attr("class"));
t.trigger("click");
}
}, 100)
@chl03ks
chl03ks / capitalizefirst.pipe.ts
Created August 11, 2016 15:13
An Angular 2 pipe to capitalize the first letter of a string value.
import { Pipe, PipeTransform } from '@angular/core';
/*
* Capitalize the first letter of the string
* Takes a string as a value.
* Usage:
* value | capitalizefirst
* Example:
* // value.name = daniel
* {{ value.name | capitalizefirst }}
* fromats to: Daniel
/* Smartphones (portrait and landscape) ----------- */
@mixin Smartphones {
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
@content;
}
}
/* Smartphones (landscape) ----------- */
@mixin Smartphones-Landscape {
@chl03ks
chl03ks / The Ultimate Git Congif .gitconfig
Last active December 26, 2017 19:12
My git configuration
[user]
name = Daniel
email = [email protected]
[color]
ui = true
[alias]
co = checkout
dev = pull origin develop
mast = pull origin master
todev = push origin develop