Skip to content

Instantly share code, notes, and snippets.

View jasongonzales23's full-sized avatar

Jason jasongonzales23

  • DevZero
  • San Francisco, CA
View GitHub Profile
@jasongonzales23
jasongonzales23 / names.json
Created May 15, 2017 21:51
list of names
{
"Names (World)": [
{
"data": "Erica Romaguera"
},
{
"data": "Caleigh Jerde"
},
{
"data": "Lucas Schultz"
## Use Backtick
unbind C-b
set -g prefix `
bind ` send-prefix
# shortcut to reload configuration
bind r source-file ~/.tmux.conf \; display 'Reloaded!'
## Crazy looking status line
set -g status-left-length 32
# Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# Shortcuts
alias d="cd ~/Documents/Dropbox"
" Make Vim more useful
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@jasongonzales23
jasongonzales23 / .vimrc
Created April 22, 2016 21:44
Jason's vimrc
" Make Vim more useful
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@jasongonzales23
jasongonzales23 / .vimrc
Created March 18, 2016 22:48
Jason's .vimrc
" Make Vim more useful
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" Make Vim more useful
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
.then((response) => { if(response.status === 422) {...????}})
.catch(error => console.error(error.message))
//this gets me the error.message
.then(response => response.json())
.then(json => console.log(json))
.catch(error => console.error(error.message))
//but when the save is successful, server doesn't respond, so I get 'unexpected end of input'
@jasongonzales23
jasongonzales23 / view.py
Last active November 14, 2015 22:58
suggestion
from django.shortcuts import render
from django.http import HttpResponse
from django.template import RequestContext, loader
from .models import Application
from django.shortcuts import get_object_or_404, render
#
def index(request):
application_list = Application.objects.order_by('-created_date')[:5]
context = {'application_list': application_list}
@connect(mapStateToProps, mapDispatchToProps)
export default class EventViewer extends Component {
constructor(props) {
super(props)
}