- in progress ...
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:
https://github.com/example/example.com
Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.
| package main | |
| import "fmt" | |
| import "runtime" | |
| func main() { | |
| fmt.Println("OS Detected: ", runtime.GOOS) | |
| switch os := runtime.GOOS; os { | |
| case "darwin": | |
| fmt.Println("Mac OS Hipster") |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
The following code was found at http://www.alecjacobson.com/weblog/?p=1875
The page suffered from bad formatting so the contents have been pasted here for easier readibility.
// Modified from "Video Texture" code
// Copyright (C) 2009 Arsalan Malik ([email protected])
// | package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| "unsafe" | |
| "golang.org/x/sys/windows" | |
| ) | |
| var ( |
based on https://www.reddit.com/r/vim/comments/24g8r8/italics_in_terminal_vim_and_tmux/
- Check if italic font is supported:
$ echo -e "\e[3mitalic\e[23m"
- Also check:
$ infocmp $TERM | grep sitm
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
| #instalar nodemon (en la máquina virtual) | |
| sudo npm install -g nodemon | |
| #copiar nodemon.json al directorio del proyecto | |
| #copiar rails.sh al directorio del proyecto | |
| #dar permisos de ejecución a rails.sh | |
| sudo chmod +x rails.sh | |
| #iniciar nodemon |
