Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
¯\_ (ツ) _/¯

Chai Phonbopit Phonbopit

👻
¯\_ (ツ) _/¯
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am phonbopit on github.
  • I am phonbopit (https://keybase.io/phonbopit) on keybase.
  • I have a public key ASAv28GwmvNxXfh45vViTOwzD_xvF50Wrljojz5QAKONpAo

To claim this, I am signing this object:

@Phonbopit
Phonbopit / index.html
Created May 23, 2020
React 101 - EP. 1
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React 101 By Devahoy</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
@Phonbopit
Phonbopit / app.js
Created Apr 11, 2020
ตัวอย่าง Code ตอนที่ 10 - Mongoose
View app.js
const express = require('express');
const mongoose = require('mongoose');
const options = {
useNewUrlParser: true,
useUnifiedTopology: true
};
mongoose.connect('mongodb://localhost:27017/hello-mongoose', options);
const CatModel = mongoose.model(
@Phonbopit
Phonbopit / LoginForm.js
Created Nov 3, 2018
components/LoginForm.js
View LoginForm.js
import React from 'react'
class LoginForm extends React.Component {
render() {
return (
<section className="section container">
<div className="columns is-centered">
<div className="column is-half">
<form>
<div className="field">
@Phonbopit
Phonbopit / frp.md
Created Aug 31, 2016 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language
View frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@Phonbopit
Phonbopit / README.md
Created Aug 30, 2016 — forked from martndemus/README.md
How to setup a Oracle 12c database on DigitalOcean
View README.md

Step 0:

Start downloading the install files from Oracle

Step 1:

Create a blank CentOs 6.5 instance

Convert to Oracle Linux: (source)

curl -O https://linux.oracle.com/switch/centos2ol.sh 
sh centos2ol.sh
@Phonbopit
Phonbopit / randomString.js
Created Jul 22, 2016 — forked from dchest/randomString.js
Generates cryptographically secure uniform random string in browsers and Node.js [IN DEVELOPMENT]
View randomString.js
// randomString(length)
// --------------------
//
// Generates and returns a cryptographically secure
// uniform alphanumeric random string.
//
// Examples:
//
// randomString(14) // "oXYWpc1vODNR3M"
// randomString.hex(8) // "663c722b65943b9b"
@Phonbopit
Phonbopit / learning_resources.md
Created Feb 3, 2016 — forked from nathansmith/learning_resources.md
Resources for learning web design & front-end development
View learning_resources.md
You can’t perform that action at this time.