Skip to content

Instantly share code, notes, and snippets.

View djade007's full-sized avatar

Afeez Olajide djade007

View GitHub Profile
@djade007
djade007 / nl.php
Last active June 25, 2016 14:24
Program to validate Nairaland credentials
<?php
/*
* Program to validate login details from nairaland.com
* Author djade <www.djade.net>
* */
// returns true if successful
function validateNL($username, $password) {
@djade007
djade007 / Sublime Text 3 Build 3103 License Key - CRACK
Created June 30, 2016 20:36
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@djade007
djade007 / tt.js
Created April 15, 2021 05:37
temperature
// All the methods run in O(1) time and O(1) space
class TempTracker {
constructor() {
this.max = -Infinity;
this.min = Infinity;
this.avg = 0;
// Keep the total insert count to be able to compute the previous sum from the average
this.tempCount = 0;
}