Skip to content

Instantly share code, notes, and snippets.

View sanzhardanybayev's full-sized avatar
💭
Coding 🤸‍♀️

Sanzhar Danybayev sanzhardanybayev

💭
Coding 🤸‍♀️
  • Almaty, Kazakhstan
View GitHub Profile
@ZwaarContrast
ZwaarContrast / Dropzone.js
Last active May 2, 2023 20:31
Using cypress with react-dropzone to upload a file.
// your react component
import * as React from 'react'
import Dropzone from 'react-dropzone'
// apply your own styling and stuff, should probably also show the files when uploaded
const Upload = () => {
return (<Dropzone data-cy="drag-and-drop">Drag and Drop here</Dropzone>)
}
export default Upload
@dschep
dschep / raspbian-python3.6.rst
Last active November 14, 2024 11:22 — forked from BMeu/raspbian-python3.5.rst
Installing Python 3.6 on Raspbian

Installing Python 3.6 on Raspbian

As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.

  1. Install the required build-tools (some might already be installed on your system).
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active October 9, 2024 11:32
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');