Skip to content

Instantly share code, notes, and snippets.

View mdabrarniyazi's full-sized avatar

Abrar Niyazi mdabrarniyazi

View GitHub Profile
@mdabrarniyazi
mdabrarniyazi / .txt
Created January 9, 2016 15:46
open-edx error
==> default: TASK: [notifier | syncdb] *****************************************************
==> default: changed: [localhost]
==> default:
==> default: TASK: [browsers | install system packages] ************************************
==> default: ok: [localhost]
==> default:
==> default: TASK: [browsers | download browser debian packages from S3] *******************
==> default: failed: [localhost] => (item={'url': 'https://s3.amazonaws.com/vagrant.testeng.edx.org/google-chrome-stable_30.0.1599.114-1_amd64.deb', 'name': 'google-chrome-stable_30.0.1599.114-1_amd64.deb'}) => {"failed": true, "item": {"name": "google-chrome-stable_30.0.1599.114-1_amd64.deb", "url": "https://s3.amazonaws.com/vagrant.testeng.edx.org/google-chrome-stable_30.0.1599.114-1_amd64.deb"}}
==> default: msg: failed to create temporary content file: ('The read operation timed out',)
==> default: failed: [localhost] => (item={'url': 'https://s3.amazonaws.com/vagrant.testeng.edx.org/firefox_28.0%2Bbuild2-0ubuntu0.12.04.1_amd64.deb', 'name
@mdabrarniyazi
mdabrarniyazi / .txt
Created January 9, 2016 19:55
Themeing Error for ionsix-theme
edxapp@precise64:~/edx-platform$ paver update_assets lms --settings=aws
mkdir_p path('/edx/app/edxapp/themes/default/static/css')
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
python manage.py lms --settings=aws preprocess_assets lms/static/sass/*.scss lms/static/themed_sass
2016-01-09 14:41:33,157 INFO 13366 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
System check identified some issues:
@mdabrarniyazi
mdabrarniyazi / gist:2532d30a65fb63ae5bc31083e65870fa
Created January 18, 2017 08:08 — forked from wavecos/gist:4dcb1410a41b9dd521cb
Present Modal ViewController when tap a TabBarItem (like camera VC in Instagram)
// 1. First Create a Dummy UIViewController that has a root relation with the UITabBarController
// 2. Make this controller implement a UITabBarControllerDelegate
// 3. In ViewDidLoad:
override func viewDidLoad() {
super.viewDidLoad()
self.tabBarController?.delegate = self
}
// 4. Implement this delegate method:
func tabBarController(tabBarController: UITabBarController, didSelectViewController viewController: UIViewController) {
let isModalTab = viewController == self
@mdabrarniyazi
mdabrarniyazi / The Technical Interview Cheat Sheet.md
Created November 27, 2017 13:21 — 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.