Skip to content

Instantly share code, notes, and snippets.

View topspinppy's full-sized avatar
🏠
Working from home

topspinppy

🏠
Working from home
  • Information Technology, KMUTNB Prachinburi Campus
View GitHub Profile
function TabForm(props: ITabFormProps) {
const {
tab: defaultTab,
id,
handleMoveTask,
itemName,
minimumTabs,
index,
onChangeTitle,
onDiscard,
<div id='calendar'></div>
Homebrew build logs for [email protected] on macOS 10.15.6
Build date: 2020-09-24 14:05:49
const Noti = forwardRef(({ title, content, onClose }, ref) => {
const show = () => {
console.log(title, content)
}
useImperativeHandle(ref, () => {
return {
trigerNoti: () => {
show()
}
}
class Noti extends React.Component {
show() {
console.log("show");
}
render() {
return "eee";
}
}
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
const path = require('path')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow () {
// Create the browser window.
@topspinppy
topspinppy / gettingstarted.js
Created August 21, 2019 15:25
getting started React Native
import React, { useState } from 'react';
import { StyleSheet, Text, View, TextInput, Button, Alert } from 'react-native';
export default function App() {
const [ text, setText ] = useState("This is our message on Screen");
const [ todo, setTodo ] = useState("");
addTodo = () => {
setTodo(text);
Alert.alert('Alert Box', "Oops you Touch Me!");
}
addi $s0 , $s1, 10 // f = g + 10 < บวกค่า 10 ไปตรงๆ
---- ลบกับค่าคงที่ ----
addi $s0, $s1, -10 // f = g - 10
add $t0,$s0,$s1 //temp = b + c
add $t1,$t0,$s2 //temp = temp + d
sub $s4,$t1,$s3 //a = temp - e
add $s0 , $s1 , $s2
//เอา $s1 + $s2 ไปเก็บใน $s0
sub $s3, $s4 , $s5
//เอา $s4 - $s5 ไปเก็บใน $s3