Skip to content

Instantly share code, notes, and snippets.

@GRardB
GRardB / cloudSettings
Created June 16, 2018 16:44
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-16T16:44:18.648Z","extensionVersion":"v2.9.2"}

Keybase proof

I hereby claim:

  • I am grardb on github.
  • I am grardb (https://keybase.io/grardb) on keybase.
  • I have a public key ASDQksl2TfS6UIwE6-9_24k6c0aQVKpOWE71r6iOLlqXrwo

To claim this, I am signing this object:

// entry point
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { asMap, observable, useStrict } from 'mobx';
import { Provider } from 'mobx-react';
import { App } from './components/App';
useStrict(true);
@GRardB
GRardB / models.group.js
Created October 5, 2016 14:41
New Twiddle
import Model from "ember-data/model";
import attr from "ember-data/attr";
import { belongsTo, hasMany } from "ember-data/relationships";
export default Model.extend({
owner: belongsTo('user'),
invitations: hasMany('invitations', { inverse: 'group' }),
memberships: Ember.computed.filterBy('invitations', 'accepted', true),
pendingInvitations: Ember.computed.filterBy('invitations', 'accepted', false),
remote: -----> Cleaning up...
remote: -----> Building www.guapington.com from herokuish...
remote: -----> Adding BUILD_ENV to build environment...
remote:  -----> Fetching custom buildpack
remote:  -----> Ember CLI app detected
remote: -----> Exporting config vars to environment
remote: -----> Building environment: production
remote: 
remote:  PRO TIP: Avoid using semver ranges starting with '>' in engines.node
remote:  See https://devcenter.heroku.com/articles/nodejs-support
set -g default-terminal "screen-256color"
set -g history-limit 20000
#urxvt tab like window switching (-n: no prior escape seq)
bind -n S-down new-window
bind -n S-left prev
bind -n S-right next
bind -n C-left swap-window -t -1
bind -n C-right swap-window -t +1
" plugins
set runtimepath^=~/.config/nvim/bundle/repos/github.com/Shougo/dein.vim
call dein#begin('~/.config/nvim/bundle')
call dein#add('~/.config/nvim/bundle/repos/github.com/Shougo/dein.vim')
call dein#add('Shougo/deoplete.nvim')
call dein#add('altercation/vim-colors-solarized')
call dein#add('mattn/emmet-vim')
# Configs
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsFontSize 100
config windowHintsFontColor 0;0;0;1.0
config nudgePercentOf screenSize
config resizePercentOf screenSize
config focusCheckWidthMax 3000
// app/transforms/utc.js
import moment from 'moment';
import Transform from 'ember-data/transform';
export default Transform.extend({
deserialize(serialized) {
const date = serialized.split('T')[0];
return moment(date).toDate();
},
@GRardB
GRardB / vcs.md
Last active August 29, 2015 14:25
Why I don't think Git (or any VCS) is good for beginner programmers

This is an explanation of a tweet I wrote that seemed to cause some major controversy for some reason.

Before I say anything, just know that this is not meant as the start of a debate. I have zero interest in debating about this topic. I've had more than enough debates and arguments with other programmers to last a lifetime. Nowadays, you'll never see me talking about what programming language is the best, why your framework sucks, or anything like that. The only reason that I'm bothering to respond to people who disagreed with my tweet is that I have the utmost respect for education, and it's important enough for me to write about my opinions. You can disagree if you want, but just know that I will not get into a debate with you. Let's just agree to disagree. This is not me being close-minded; it's me already knowing what your arguments are, and me having already disagreed with other people with the same thoughts. Thanks for understanding.

Gerar