<template lang="pug"> | |
div | |
//- <----- rest of app goes here (RouterView / main shell / w.e) | |
//- don't even need to use teleport with this pattern... | |
Modal(v-for="({ body, bodyProps, modalProps }, idx) in modalStack" v-bind="modalProps" @close="modalClose(idx)") | |
//- XXX support { title, h2Md }, etc. besides body+bodyProps -- | |
Suspense(v-if="!idx && body") | |
Component(:is="body" v-bind="bodyProps") | |
</template> |
class Action { | |
async run(): Promise<void> { | |
console.log("hello world action from gist") | |
} | |
} |
console.log("hello world from gist") |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your
Running with trace output on. | |
Running with debug output on. | |
/home/tj/workspace/libevhtp/CMakeLists.txt(1): cmake_minimum_required(VERSION 2.8 ) | |
Called from: [1] /home/tj/workspace/libevhtp/CMakeLists.txt | |
/home/tj/workspace/libevhtp/CMakeLists.txt(2): project(libevhtp ) | |
Called from: [1] /home/tj/workspace/libevhtp/CMakeLists.txt | |
/usr/share/cmake-2.8/Modules/CMakeUnixFindMake.cmake(15): FIND_PROGRAM(CMAKE_MAKE_PROGRAM NAMES gmake make smake ) | |
Called from: [2] /usr/share/cmake-2.8/Modules/CMakeUnixFindMake.cmake | |
[1] /home/tj/workspace/libevhtp/CMakeLists.txt | |
/usr/share/cmake-2.8/Modules/CMakeUnixFindMake.cmake(16): MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM ) |
int | |
num_pizzas(unsigned int num_people, unsigned int slices_per_pizza, unsigned int time) | |
{ | |
unsigned int num_slices; | |
num_slices = num_people; | |
if (11 <= time && time <= 22) | |
num_slices *= 2; | |
return (int)(num_slices / (float)slices_per_pizza + 1); | |
} |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDggp7rXtd4/vLyAvvBWIdoJCFe8FptzJRcBTZZZSsim1ILH4cfzifJG8pZ5pn9qHMjLdEvZ5LZ4i4eAr03vu5F4K4RTzbwPfi/BTDJRiabfkPnQUwAntzD6gulUFidgS56eti96/dXF4LNlktz+BwU/U04lUXQc9NSwUeaUB+Drx9my0cE6Dz6uCwk+MvSHXd9thJbUnTjUOVXu5Zp6RBezj0OLQ+5Ss8TDqoVBOevVDKM8cPjSpnyB+1n/AqGDwd3rxoNRD7XxLTr/lqoNQAzYIkdinKrt9xjKs3Hlf8Ai2C/d2tpFfZqg+1HkAkolQaYiDxrp7n508bjFwyA1ieb tj@bro |
module AsParam | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
module ClassMethods | |
def as_param(param, methods={}) | |
define_method :to_param do | |
value = send(param) | |
methods[:out] ? value.send(methods[:out]) : value |
[~/workspace/website]$ rvm install 1.9.3 [master][] | |
Installing Ruby from source to: /home/tj/.rvm/rubies/ruby-1.9.3-rc1, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-rc1 - #fetching | |
ruby-1.9.3-rc1 - #extracting ruby-1.9.3-rc1 to /home/tj/.rvm/src/ruby-1.9.3-rc1 | |
ERROR: Error running 'tar xjf /home/tj/.rvm/archives/ruby-1.9.3-rc1.tar.bz2 -C /home/tj/.rvm/tmp/rvm_src_12519', please read /home/tj/.rvm/log/ruby-1.9.3-rc1/extract.log | |
ERROR: There has been an error while trying to extract the source. | |
Halting the installation. | |
ERROR: There has been an error fetching the ruby interpreter. Halting the installation. |