Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

J.D Nicholls jdnichollsc

🏠
Working from home
View GitHub Profile
@adilanchian
adilanchian / App.js
Last active Jan 28, 2022
Section 3: Build web3 app that connects to our wallet and talks to our WaveContract
View App.js
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!
*/
View solution.js
/*
* 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.
@SelaliAdobor
SelaliAdobor / GameState.cs
Last active Nov 2, 2021
Using Server-Sent-Events in Unity
View GameState.cs
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;
@plencovich
plencovich / mercadopago-marketplace.md
Last active Jan 26, 2022
Breve explicación para poder crear una app en Mercadopago para tener un marketplace
View mercadopago-marketplace.md

Plenco

Mercadopago Marketplace

Mini tutorial para crear una app de marketplace en mercadopago usando PHP y DX-PHP

Es una ayuda memora en referencia a la excelente información que está en Mercadopago Developers

Creación de APP y Conexión de Usuarios.

@vmoratog
vmoratog / rotateImage.ts
Created Nov 29, 2019
Rotate images in Canvas
View rotateImage.ts
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);
@vmoratog
vmoratog / Enlaces.md
Last active Feb 10, 2020
ionic 4 intro
View Enlaces.md

Instalar dependencias

npm i -g ionic cordova

Crear proyecto

ionic start nombreProyecto blank
View html-css-assessment-notes.md

Prepare and run an end-of-module assessment for HTML&CSS

What's needed this week?

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

  • Pick one format.
  • Check that the content is suitable.
  • Translate it.
  • Add any more questions that you think are important, but keep the exercise under 1 hour.
@jdnichollsc
jdnichollsc / ABC.md
Last active Dec 28, 2021
The Job Interview Guide
View ABC.md

The Job Interview Guide 💼

And English is a Work in Progress

@lisp-is-the-future
lisp-is-the-future / install-termux-arch.md
Last active Oct 6, 2021
How to install TermuxArch in Termux of Android (Samsung Galaxy Tab 10.1)
View install-termux-arch.md
#################################################################
# 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
View acing-technical-interview-v2.md

Technical Interview Prep v2

Intro myself

My background

  • Always been a computer guy, but only been programming for about 4 years.
  • Was 27 when I got my first full time dev job.

Caveats