Skip to content

Instantly share code, notes, and snippets.

View AwesomeZaidi's full-sized avatar
:octocat:
Coding in JavaScript and Python (React and React Native 🔥)

Asim Zaidi AwesomeZaidi

:octocat:
Coding in JavaScript and Python (React and React Native 🔥)
View GitHub Profile
@edwintcloud
edwintcloud / Context.js
Last active June 20, 2019 17:44
Context API Component
import React, { useState } from 'react';
export const Context = React.createContext(null);
export const ContextProvider = ({ initialState, children }) => {
const [state, setState] = useState(initialState);
const providerActions = {
setState: values =>
setState(prevState => {
@vingkan
vingkan / activity.md
Last active July 5, 2021 17:53
Ethical CS: Quantitative Input Influence Activity

Algorithmic Audit: QII

A big moving company gets so many applications that it has started using an automated algorithm to decide who to hire. You have been called in as an independent consultant to determine if the hiring algorithm is biased against women. The algorithm is proprietary so you cannot access its source code. Instead, you will learn how to perform an algorithmic audit to measure potential biases.

In this activity, you will edit the influence.py module.

Applicant Data

Each applicant's data is stored as a list with five elements. Each element is a string representing a different attribute:

@vingkan
vingkan / instructions.md
Last active September 21, 2021 07:39
Getting Started with Nightmare.js

Getting Started with Nightmare.js

In today's Testing Analyst workshop, we played around with Nightmare.js, a JavaScript browser automation library that is useful for testing website interfaces.

It is easier to work with Nightmare on your computer, rather than to use it in Cloud9. Here are the instructions to install and get started.

Step 1. Install Node.js

JavaScript normally runs in the browser. Node.js is a version of JS that can run on a server, in a terminal, or on some other device. It allows you to easily prepare and run Nightmare scripts.

@parmentf
parmentf / GitCommitEmoji.md
Last active May 2, 2024 20:29
Git Commit message Emoji