Experimental hooks-based bindings for Unistore. Available on npm:
npm i unistore-hooks
Note: this should also work with React, just alias
"preact"and"preact/hooks"to"react"in your bundler.
| const fs = require('fs') | |
| const directory = './src/images'; | |
| const scriptFile = 'index.js'; | |
| if (fs.existsSync(`${directory}/${scriptFile}`)) | |
| fs.unlinkSync(`${directory}/${scriptFile}`); | |
| const files = fs.readdirSync(directory); | |
| fs.writeFileSync(`${directory}/${scriptFile}`, 'export const IMAGES = {\n'); |
Experimental hooks-based bindings for Unistore. Available on npm:
npm i unistore-hooks
Note: this should also work with React, just alias
"preact"and"preact/hooks"to"react"in your bundler.
| using System; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| namespace UDP | |
| { | |
| public class UDPSocket | |
| { | |
| public Socket _socket; |
| using System; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| namespace UDP | |
| { | |
| public class UDPSocket | |
| { | |
| private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |