Skip to content

Instantly share code, notes, and snippets.

View bellalMohamed's full-sized avatar
🎯
Focusing

Bellal Mohamed bellalMohamed

🎯
Focusing
  • Planet Earth
View GitHub Profile
@bellalMohamed
bellalMohamed / script.js
Created June 20, 2020 13:51
Change Github contributions to rainbow colors
let colors = ["rgba(255, 0, 0, alpha)", "rgba(255, 127, 0, alpha)", "rgba(255, 255, 0, alpha)", "rgba(0, 255, 0, alpha)", "rgba(0, 0, 255, alpha)", "rgba(75, 0, 130, alpha)", "rgba(148, 0, 211, alpha)"];
let alpha = {'#c6e48b': '.5', '#7bc96f': '.7', '#239a3b': '.8', '#7bc96f': '.9', '#196127': '1'}
let days = document.getElementsByClassName('day');
for (var i = 0; i < days.length; i++) {
if (days[i].attributes.fill.value != "#ebedf0") {
let color = colors[i % 7].replace('alpha', alpha[days[i].attributes.fill.value])
days[i].style.fill = color;
}
}
import random
import time
class Node:
def __init__(self, data = None, next = None):
self.data = data
self.next = next
class LinkedList:
@bellalMohamed
bellalMohamed / LinkedList.py
Created November 25, 2017 16:09
LinkedList Task Code
class Node:
def __init__(self, data = None):
self.data = data
self.next = None
def setData(self, data = None):
self.data = data
def setNext(self, next = None):
self.next = next
@bellalMohamed
bellalMohamed / learning.md
Created September 7, 2017 12:16 — forked from sibelius/learning.md
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS
  • Learn how to use fetch to get data from your backend

Learn Navigation