made with esnextbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
"-----------------VUNDLE ---------------------- | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"let Vundle manage Vundle | |
Plugin 'gmarik/Vundle.vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! OpenSpecFile() | |
ruby <<EOF | |
class FileWrapper | |
def initialize(path) | |
@path = path | |
end | |
def absolute_path | |
File.expand_path(@path) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! RunJsSpec() | |
ruby <<EOF | |
def absolute_path | |
File.expand_path VIM::evaluate("expand('%:p')") | |
end | |
def filename | |
File.basename(absolute_path) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// reactive-router/index.js | |
'use strict'; | |
import crossroads from 'crossroads'; | |
import {createHistory} from 'history'; | |
let Router = function (routes, options) { | |
// let isSilent = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function login(input, state, output, {hello}) { | |
hello.init({ | |
google: 'client_id' | |
}); | |
try { | |
let response = await hello.login('google'); | |
output.success({accessToken: response.authResponse.access_token}); | |
} catch (error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ConversationList.js | |
@Cerebral({}, { | |
conversations: ['decoratedConversations'] | |
}) | |
class ConversationList extends React.Component { | |
render() { | |
return ( | |
{this.props.conversations.map((conversation) => <Conversation key={conversation.uid} conversation={conversation}/>)} | |
); |
made with esnextbin
made with esnextbin
made with esnextbin
OlderNewer