Skip to content

Instantly share code, notes, and snippets.

View lauragift21's full-sized avatar
👩‍💻
OSSing...

Gift Egwuenu lauragift21

👩‍💻
OSSing...
View GitHub Profile
@khaosdoctor
khaosdoctor / accept-friend.js
Last active February 3, 2022 09:14
Simple script (cloned from @ErickWendel) that accepts all friends in linkedin
// Run this in the devtools console, inside the linkedin friend request list
// Make sure to have all the requests displayed in the screen
// If something goes funky, increase the sleep time.
itens = []
document.querySelectorAll('.invitation-card__action-btn.artdeco-button--secondary').forEach(item => itens.push(item))
sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
for (item of itens) {
item.click()
@sa-adebayo
sa-adebayo / .eslintrc.json
Created August 14, 2017 14:29
andela - .eslintrc file
{
"extends": [
"airbnb",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": [
"react"
],
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@vasanthk
vasanthk / System Design.md
Last active April 24, 2024 17:22
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@yang-wei
yang-wei / README.md
Last active April 6, 2021 15:49
ES6 destructing (and rest parameter)

We will first discussed how destructing and rest parameters can be used in ES6 - in arrays and objects. Then we will look at a few examples and also discuss some quiz.

arrays

var array = [1, 2, 3, 4];
var nestedArray = [1, 2, 3, 4, [7, 8, 9]];

var [a, b, c, d] = array;
console.log(a, b, c, d)
@rufuspollock
rufuspollock / Data-Wrangling-Challenges.md
Last active February 21, 2021 12:32
Data Wrangling Exercise - Natural Gas Prices

Challenge 1

Your task: write a script to get a nice CSV file of natural gas prices.

Please publish your results in a git repo or a gist. Please include both script and your resulting data -- so the CSV files should be stored in the repo too!

More detail:

# zsh
EMOJI=(💩 🐦 🚀 🐞 🎨 🍕 🐭 👽 ☕️ 🔬 💀 🐷 🐼 🐶 🐸 🐧 🐳 🍔 🍣 🍻 🔮 💰 💎 💾 💜 🍪 🌞 🌍 🐌 🐓 🍄 )
function random_emoji {
echo -n "$EMOJI[$RANDOM%$#EMOJI+1]"
}
PROMPT="$(random_emoji) "
RPROMPT='%c'
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active April 13, 2024 16:19
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@addyosmani
addyosmani / package.json
Last active January 18, 2024 21:31
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@jordanbtucker
jordanbtucker / unwanted-commits-in-pr.txt
Last active January 17, 2022 14:51
Remove unwanted commits from your PR
> git reset --hard <commit>
> git rebase -i upstream/<branch>
> git push -f origin <branch>