Skip to content

Instantly share code, notes, and snippets.

Giovanni Collazo gcollazo

Block or report user

Report or block gcollazo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
didInsertElement() {

tmux cheat sheet

  • tmux -CC attach iTerm to tmux
  • tmux new -A -s <session-name> creates a new named session or attaches to that session if already exists
  • control + b - commands
    • creates a horizontal pane
    • % creates a vertical pane
    • q shows pane numbers, if you hit the number on the keyboard you will change to that pane
    • o moves between panes
    • x kills the current pane, exit command also works
gcollazo /
Last active Apr 12, 2018
Testing npm5
# curl -s | bash
echo ""
mkdir testnpmyanrnpm5
cd testnpmyanrnpm5
curl -s | bash
curl -s | bash
cd ..
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
export default Ember.Component.extend({
layout: hbs`
<a href={{attrs.input}}>CLICK</a>
View media-queries.css
@media (max-width: 320px) {
body { background-color: red; }
@media (min-width: 321px ) and (max-width: 375px) {
body { background-color: blue; }
@media (min-width: 376px ) and (max-width: 425px) {
body { background-color: orange; }
View sample.json
gcollazo / atomstars.bash
Created Mar 4, 2016
Update your Atom starred packages.
View atomstars.bash
# The atom cli tool provides a command for installing packages
# that you have previously starred. Once you all you pakackages
# are starred installing is super easy `apm stars --install`.
# This little command unstars all packages in your profile
# and start only the ones you have installed.
# For this to work you need jq `brew install jq`.
alias atomstars='apm unstar $(apm stars --json | jq -r ".[].name") && apm star --installed'
gcollazo /
Last active Dec 2, 2015
Source maps not updating after live reload.

Google Chrome: Source maps not updating after live reload.

After a css live reload we noticed that source maps did update and line numbers shown in the style inspector where correct but the source files did not change. A quick close and open of the inspector seems to fix the issue.

Tested on Chrome:

  • 47.0.2526.73 (64-bit): Has the problem
  • 47.0.2526.73 beta (64-bit): Has the problem
  • 49.0.2579.0 canary (64-bit): Works sometimes

Using ember-cli on Beta:

View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
View components.login-form.js
import Ember from 'ember';
export default Ember.Component.extend({
You can’t perform that action at this time.