Skip to content

Instantly share code, notes, and snippets.

View CleverProgrammer's full-sized avatar
🏠
Working from home

Rafeh Qazi CleverProgrammer

🏠
Working from home
View GitHub Profile
@CleverProgrammer
CleverProgrammer / Lecture 9.ipynb
Last active August 29, 2015 14:27
iPython Notes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CleverProgrammer
CleverProgrammer / Galvanize Technical Assessment.ipynb
Last active July 17, 2016 22:14
Galvanize Technical Assessment: Rafeh Qazi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CleverProgrammer
CleverProgrammer / Udacity Intro to Descriptive Statistics.ipynb
Last active April 21, 2023 01:32
Udacity Intro to Descriptive Statistics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CleverProgrammer
CleverProgrammer / Galaxy Of Tutorial Torrents
Last active August 29, 2015 14:27 — forked from iHassan/Galaxy Of Tutorial Torrents
Ultimate Galaxy Of Tutorial Torrents
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@CleverProgrammer
CleverProgrammer / anagram.py
Last active August 31, 2015 08:08
anagram.py
# coding: utf-8
words = ['cat','dog','tac','star','rats']
def anagram(str1,str2):
s1 = set(str1)
s2 = set(str2) # ==> sorted(list(str2)) less efficient!
return s1 == s2 # ==> if s1==s2: return True else: return False
#print(anagram_solver('cpa','tac'))

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@CleverProgrammer
CleverProgrammer / anagrams.py
Last active November 26, 2015 22:55
Return a sorted list with all non-anagrams omitted.
"""
Author: Rafeh Qazi.
Program: Anagram finder.
Description: Return a sorted list with all non-anagrams omitted.
Constraints: No imports.
input: anagram_finder(['star', 'rats', 'cats', 'tacs', 'dog'])
output: ['cats', 'rats', 'star', 'tacs']
"""
@CleverProgrammer
CleverProgrammer / student_class.py
Created November 27, 2015 04:16
A class that models a student.
"""
Author: Rafeh Qazi
Create a student class that models a student.
Date: 11/26/2015
"""
from collections import namedtuple
class Student:
def __init__(self, name, hours, quality_points):
@CleverProgrammer
CleverProgrammer / student_class.py
Created November 27, 2015 04:50
method based approach rather than a function based.
"""
Author: Rafeh Qazi
Create a student class that models a student.
Date: 11/26/2015
"""
from collections import namedtuple
class Student:
student_counter = 0
@CleverProgrammer
CleverProgrammer / students.py
Created November 27, 2015 06:33
function based approach for representing students.
"""
Author: Rafeh Qazi
Create a student class that models a student.
Date: 11/26/2015
"""
from collections import namedtuple
def all_student_results(students_file):
"""