- http://stackoverflow.com/questions/804115 (
rebase
vsmerge
). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebase
vsmerge
) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
reset
vscheckout
vsrevert
) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse
) - http://stackoverflow.com/questions/292357 (
pull
vsfetch
) - http://stackoverflow.com/questions/39651 (
stash
vsbranch
) - http://stackoverflow.com/questions/8358035 (
reset
vscheckout
vsrevert
)
Discover gists
<?php | |
namespaced App\Providers; | |
use RuntimeException; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Routing\ImplicitRouteBinding; | |
class RouteServiceProvider extends ServiceProvider |
ASCI art characters for creating diagrams
- ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
- ASCII code 192 = └ ( Box drawing character single line lower left corner )
- ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
- ASCII code 194 = ┬ ( Box drawing character single line horizontal down )
[many tutorials]https://www.youtube.com/user/agosie/playlists
[from beginner to advanced] : https://www.youtube.com/watch?v=7nqM2P6vXb4&list=PLXjEkCD7CwxhaBdtzgnqaOVooUse0o2se
[From Beginner to advanced for Surpac 6.6.2+] : https://www.youtube.com/watch?v=YPBPIuUIIhg&list=PL_7hR7sVzPsLZrdcKX3bixt3zfZ2PhOxd
[modern tutorials] : https://www.youtube.com/watch?v=L2Y477QS8RY&list=PLeMIZhmqTIlCH_ZQJtNNRarqbvTRRlwEs
Create file /etc/systemd/system/docker-compose@.service
. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin
, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
//! Provide an audio input stream that automatically reconnects when disconnected. | |
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; | |
use cpal::{Device, Stream, StreamError}; | |
use log::{info, warn}; | |
use simple_error::bail; | |
use std::error::Error; | |
use std::sync::mpsc::channel; | |
use std::thread; | |
use std::time::Duration; |
# The next line updates PATH for the Google Cloud SDK. | |
source /Users/dwchiang/google-cloud-sdk/path.zsh.inc | |
# The next line enables zsh completion for gcloud. | |
source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc |
Este documento tem a intenção de apresentar alguns dos conceitos fundamentais que permeiam as linguagens de programação. A ideia é mostrar algumas das principais características e diferenças que existem entre elas, para que dessa forma você possa determinar em que momento é melhor escolher uma dada linguagem em detrimento das outras.
Uma linguagem compilada é aquela no qual um programa chamado compilador irá fazer uma análise sintática, léxica e semântica de toda a estrutura de um código fonte e o converterá em um novo formato conhecido como código objeto que poderá ser identificado pelo computador.
GOVULTR | |
VULTRMATCH https://www.vultr.com/match/ | |
30FREE50V https://www.vultr.com/promo/try50/ | |
100VULTR30FREE https://www.vultr.com/promo/try100/ | |
30VULTRONEFIFTY https://www.vultr.com/promo/try150/ | |
VULTR200FREE https://www.vultr.com/promo/try200/ | |
FLYVULTR250 https://www.vultr.com/promo/try250/ | |
GIVE100GET35 | |
GIVE100GET25 invalid |
# crystal build foo.cr --release | |
# ./foo 37.7749 -122.4194 34.0522 -118.2437 | |
# | |
# Around 0.08s. | |
module GeoCalculator | |
EARTH_RADIUS_IN_KM = 6371.0 | |
def self.distance(lat1, lon1, lat2, lon2) | |
dlat = lat2 - lat1 |