Skip to content

Instantly share code, notes, and snippets.

View sekcompsci's full-sized avatar
🎯
Focusing

Sirawit Moonrinta sekcompsci

🎯
Focusing
View GitHub Profile
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@sekcompsci
sekcompsci / aws-sqs-fifo.js
Created August 4, 2020 09:14
AWS SQS FIFO Example
const AWS = require('aws-sdk')
// TODO: Replase value with your config
const region = "ap-southeast-1"
// TODO: Replase {{id}} and {{name}} with your config
// e.g. https://sqs.${region}.amazonaws.com/000111000011/test-sqs.fifo
const queueURL = `https://sqs.${region}.amazonaws.com/{{id}}/{{name}}.fifo`
AWS.config.update({ region })
@sekcompsci
sekcompsci / App.js
Created December 15, 2018 23:56
Create React Native App - First App
import React from 'react';
import { StyleSheet, Text, View, Button, Alert } from 'react-native';
export default class App extends React.Component {
showAlert = () => {
Alert.alert(
'Alert Title',
'My Alert Msg',
[
{text: 'Ask me later', onPress: () => console.log('Ask me later pressed')},
<html>
<head>
<script src="https://cdn.rawgit.com/netpiemaker/feedview/master/jquery.js"></script>
<script src="https://cdn.rawgit.com/netpiemaker/feedview/master/netpie.feedview.js"></script>
</head>
<body style="margin: 0;overflow: hidden;background-color: inherit;" id="body">
<div style="width:100vw;height:90vh;" id="main">
<div id="chart"></div>
</div>
<button onclick="export_csv()">Export csv</button>
@sekcompsci
sekcompsci / autoclick.go
Last active August 5, 2018 16:21
autoclick basic way with golang (robotgo)
package main
import (
"fmt"
"time"
"github.com/go-vgo/robotgo"
)
func main() {
fmt.Println("Auto Click Start!")
#include <EEPROM.h>
int addr = 0;
float val = 0;
/*****************************************************************************
* Union คือชุดข้อมูลที่ตัวแปรแต่ละตัวใช้พื้นที่ร่วมกัน
* ซึ่งในกรณีนี้ เราอยากเก็บค่า Float ซึ่งใช้ 4 Byte เราก็ต้องสร้าง Byte ซึ่งใช้ 4 Byte มา 4 ตัว
*****************************************************************************/