Skip to content

Instantly share code, notes, and snippets.

Basics: Learn Python The Hard Way - Do all exercises, and at least 50% of the extra credit //Done
C, and basic low level programming
(The C Programming Language, by Kernighan and Ritchie)
* Yes, Zed, who you just learned from, hates this book. Ignore him. This is
an exercise in realizing that CS people are very opinionated. And that
these opinions are not always right.
* Learn about makefiles on your own, and use them while doing the exercises
for the book.
* Do all exercises. I recommend pushing through an exercise for at least a
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:0036342e
"ColorTable01"=dword:00a46534
"ColorTable02"=dword:00069a4e
"ColorTable03"=dword:009a9806
"ColorTable04"=dword:000000cc
"ColorTable05"=dword:007b5075
"ColorTable06"=dword:0000a0c4
@hassam7
hassam7 / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:27 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@hassam7
hassam7 / .block
Last active August 8, 2018 06:36
d3 scaleBandExample
license: mit
@hassam7
hassam7 / .block
Created August 10, 2018 19:47
fresh block
license: mit
@hassam7
hassam7 / readme.md
Created August 21, 2018 10:40 — forked from xem/readme.md
Maths & trigonometry cheat sheet for 2D & 3D games

Conventions

  • A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
  • lengths are in any unit (ex: pixels)
  • code snippets are in JavaScript

Degrees to radians

angleRad = angleDeg * Math.PI / 180;

function loadScript(url) {
return new Promise((resolve, reject) => {
const script = document.createElement('script');
script.async = true;
script.defer = true;
script.onload = resolve;
script.onerror = reject;
script.src = url;
document.head.appendChild(script);
});
private loadScript(url) {
return new Promise((resolve, reject) => {
const script = this.renderer2.createElement('script');
script.type = 'text/javascript';
script.src = url;
script.text = ``;
script.async = true;
script.defer = true;
script.onload = resolve;
script.onerror = reject;
import { Component, Inject, Renderer2, OnInit } from '@angular/core';
import { DOCUMENT } from '@angular/common';
@Component({
selector: 'app-child',
templateUrl: './child.component.html',
styleUrls: ['./child.component.css']
})
export class ChildComponent implements OnInit {
constructor(@Inject(DOCUMENT) private document: Document,
ngOnInit() {
const url = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyBAyMH-A99yD5fHQPz7uzqk8glNJYGEqus';
this.loadScript(url);
}