Skip to content

Instantly share code, notes, and snippets.

class Foo
def initialize
@foo = 1
end
def bar
end
# gets warning for method redefinition
def bar
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle
let mapleader="\<Space>"
set number
set nopaste
" easymotion works with <leader><leader>s
" lines below allow yanking to be shared with system clipboard
" set clipboard^=unnamed
set clipboard=unnamed,unnamedplus
set wrapscan
@zxiest
zxiest / sync.rb
Last active August 29, 2015 14:21
require 'celluloid'
require 'active_job'
class MasterQueue
include Celluloid
attr_accessor :jobs, :current_job
def initialize
@jobs = Queue.new
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle

React Basics

JSConf Beirut; March 12, 2016; Abdo Achkar @achkar


  1. How does this workshop work? (5 mins)
  2. What is React? (2 mins)
  3. Resources and Documentation Overview (2 mins)
  4. Why JSX?
  5. Starter kit, first React component (2 mins)
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle
let mapleader="\<Space>"
set number
set nopaste
" easymotion works with <leader><leader>s
" lines below allow yanking to be shared with system clipboard
" set clipboard^=unnamed
set clipboard=unnamed,unnamedplus
set wrapscan
<!-- https://facebook.github.io/react/docs/getting-started.html -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<!-- Material Design Icons -->