Skip to content

Instantly share code, notes, and snippets.

View Phonbopit's full-sized avatar
👻
¯\_ (ツ) _/¯

Chai Phonbopit Phonbopit

👻
¯\_ (ツ) _/¯
View GitHub Profile
@Phonbopit
Phonbopit / gitflowrebasing.md
Created September 16, 2020 07:43 — forked from markreid/gitflowrebasing.md
git flow with rebasing

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 08:40
React 101 - EP. 1
<!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 April 11, 2020 10:52
ตัวอย่าง Code ตอนที่ 10 - Mongoose
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 November 3, 2018 08:05
components/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 August 31, 2016 18:50 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

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 August 30, 2016 09:21
How to setup a Oracle 12c database on DigitalOcean

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 July 22, 2016 03:05 — forked from dchest/randomString.js
Generates cryptographically secure uniform random string in browsers and Node.js [IN DEVELOPMENT]
// 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 February 3, 2016 18:21 — forked from nathansmith/web-design-development-learning-resources.md
Resources for learning web design & front-end development