Copied from Alexandre Alapetite page - http://alexandre.alapetite.fr/doc-alex/html5-webcam/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var bodyParser = require('body-parser'); | |
| var app = express(); | |
| // --> 7) Mount the Logger middleware here | |
| app.use(express.static(__dirname + "/public")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # initializing two arrays | |
| a = np.array(2) | |
| b = np.array(1) | |
| print(a,b) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| import time | |
| class Block: | |
| def __init__(self, index, proof_no, prev_hash, data, timestamp=None): | |
| self.index = index | |
| self.proof_no = proof_no | |
| self.prev_hash = prev_hash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ********************* Node.js Static Site Serving *********// | |
| project/ | |
| server/ | |
| server.js | |
| dispatcher.js | |
| www/ | |
| index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.IO.Ports; | |
| using System; | |
| using System.Threading; | |
| public class SerialPortComm : MonoBehaviour | |
| { | |
| public static SerialPortComm Instance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * @author vishal / https://github.com/10dimensions | |
| * @author zz85 / https://github.com/zz85 | |
| * @author mrdoob / http://mrdoob.com | |
| * Running this will allow you to drag three.js objects around the screen. | |
| */ | |
| import { | |
| Camera, | |
| EventDispatcher, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Original Matlab code https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html | |
| # | |
| # | |
| # Python port of depth filling code from NYU toolbox | |
| # Speed needs to be improved | |
| # | |
| # Uses 'pypardiso' solver | |
| # | |
| import scipy | |
| import skimage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Amplify, { Auth } from 'aws-amplify'; | |
| Amplify.configure({ | |
| Auth: { | |
| region: 'us-east-1', | |
| userPoolId: '**********', | |
| userPoolWebClientId: '******************', | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/token/ERC721/ERC721Upgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/utils/CountersUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/access/OwnableUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/proxy/utils/Initializable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/utils/ContextUpgradeable.sol"; |
OlderNewer