npm i -g ionic cordova
ionic start nombreProyecto blank
| function splitList(list, chunkSize) { | |
| const groupSize = Math.ceil(list.length / chunkSize) | |
| let chunked = [] | |
| for (let i = 0; i < list.length; i += groupSize) { | |
| chunked.push(list.slice(i, i + groupSize)) | |
| } | |
| return chunked | |
| } |
| import React, { useEffect, useState } from "react"; | |
| import { ethers } from "ethers"; | |
| import './App.css'; | |
| import abi from './utils/WavePortal.json'; | |
| const App = () => { | |
| const [currentAccount, setCurrentAccount] = useState(""); | |
| /** | |
| * Create a varaible here that holds the contract address after you deploy! | |
| */ |
| /* | |
| * Write a function: | |
| * | |
| * function solution(A); | |
| * | |
| * that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. | |
| * | |
| * For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. | |
| * | |
| * Given A = [1, 2, 3], the function should return 4. |
| using Newtonsoft.Json; | |
| ///Use of Newtonsoft.Json is fully optional | |
| namespace Backend | |
| { | |
| [JsonObject] | |
| public struct GameState | |
| { | |
| [JsonProperty("maxPlayers")] public int MaxPlayers; | |
| [JsonProperty("imposterCount")] public int ImposterCount; |
| const imageData = canvas.toDataURL() | |
| const degrees = 90 | |
| const image = new Image(); | |
| image.onload = () => { | |
| ctx.clearRect(0, 0, canvas.width, canvas.height); | |
| ctx.save(); | |
| ctx.translate(canvas.width / 2, canvas.height / 2); | |
| ctx.rotate(degrees * Math.PI / 180); | |
| ctx.drawImage(image, -image.width / 2, -image.width / 2); |
I suggest two possible formats for the assessment: either Nate's single-file quiz, here: https://gist.github.com/NateWr/3d8b0cc5eb19712912d9f31dfb1d7896 or my interactive version on Kahoot, here: https://create.kahoot.it/share/html-css-quick-quiz/98be1fc1-00d6-4186-98b9-fbac58b8fce3
#################################################################
# How to install Arch in your Android (into the App TermuxArch)
# and be able to use your Android device like a personal computer
# even running a X server to have GUI
#################################################################
###############################
# Install Termux