Skip to content

Instantly share code, notes, and snippets.

View maxwellgithinji's full-sized avatar

Charles Maxwel Githinji Waweru maxwellgithinji

View GitHub Profile
@maxwellgithinji
maxwellgithinji / README.md
Created September 13, 2020 05:54 — forked from mosampaio/README.md
Simple Phone Verification with Twilio, Node.js, Mongoose, and jQuery Raw

Please make sure you have set the following environment variables:

(This URL should be accessible thru the web. You can use Ngrok to help you if you are testing locally.)

export TWIML_SERVER_URL=https://www.example.org/twiml/

(This information can be found in your Twilio dashboard)

export TWILIO_ACCOUNT_SID=your-account-sid
console.clear();
// People dropping off a form (Action Creators)
const createPolicy = (name, amount) => {
return { // Action (a form in our analogy)
type: 'CREATE_POLICY',
payload: {
name: name,
amount: amount
}
package main
import (
"fmt"
"io"
"os"
)
type WriteFileError struct {
Op string
package main
import (
"io"
"os"
)
type writeFile struct {
f *os.File
err error
package main
import (
"fmt"
"errors"
)
func cat() error {
return errors.New("cat is an error")
}
package main
import (
"errors"
"fmt"
"log"
"os"
)
func main() {
package main
import (
"errors"
"fmt"
"log"
"os"
)
func main() {
package main
import (
"errors"
"fmt"
"log"
"os"
)
func main() {
package main
import (
"errors"
"fmt"
"net"
)
type ErrFile struct {
Filename string
package main
import (
"errors"
"fmt"
)
type ErrFile struct {
Filename string
Base error