yarn add bootstrap jquery poppers.js
import 'bootstrap'
ssh-keygen
/home/user/.ssh/id_rsa
cat .ssh/id_rsa.pub
package main | |
import ( | |
"net/http" | |
) | |
func main(){ | |
http.ListenAndServe("localhost:3000",nil) | |
} |
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
const REQUESTING_DATA = 'REQUESTING_DATA' | |
const RECEIVED_DATA = 'RECEIVED_DATA' | |
const requestingData = () => { return {type: REQUESTING_DATA} } | |
const receivedData = (data) => { return {type: RECEIVED_DATA, users: data.users} } | |
const handleAsync = () => { | |
return function(dispatch) { | |
// dispatch request action here | |
dispatch(requestingData()) |
# frozen_string_literal: true | |
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
require 'spec_helper' | |
ENV['RAILS_ENV'] ||= 'test' | |
require File.expand_path('../config/environment', __dir__) | |
# Prevent database truncation if the environment is production | |
abort("The Rails environment is running in production mode!") if Rails.env.production? | |
require 'rspec/rails' | |
# Add additional requires below this line. Rails is not loaded until this point! |