Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import csv
import json
import os
__author__ = "Arjun Ray"
__license__ = "MIT"

TERMINOLOGY

  • API
  • request data
  • Promises

FEATURE DRIVEN BRANCH ORGANIZATION: AN EXAMPLE GIT WORKFLOW

more on Git workflows

  • master: should be most stable version of project, imagine the general public using the code this branch. basically only every make commits to this branch
    • for your initial commit
    • when you merge from the main development branch
  • dev: the branch where new features are accumulating, based on merges from feature branches
  • branched directly off of master

Asynchronous Javascript And XML (AJAX)

XML

<data>
  <name>
    <value>Arjun</value>
 

FIRST PRACTICE INTERVIEW NOTES

Brainstorming session about topics on mock interview

HTML

  • structure content / template for rendering
  • HTML (template for initial state) -> DOM (current state) -> browser view
    • DOM can be updated by DOM manipulation, which consequently will update browser view
// function expression
function myFunction () {
console.log('hello world')
}
// function declaration
const myFunction = function () {
console.log('hello world')
}
@deconstructionalism
deconstructionalism / App.jsx
Last active March 26, 2019 03:01
callback-props example
import React, { Component } from 'react';
import './App.css';
class App extends Component {
state = {
firstName: "Samantha",
lastName: "Ambroise"
}
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import csv
import json
import os
__author__ = "Arjun Ray"
__license__ = "MIT"
@deconstructionalism
deconstructionalism / atom_resize code
Last active April 10, 2019 23:44
put into ~/.bash_profile
atom_resize () {
FONT_SIZE="32px"
BASE_DIR=".atom"
TEACHING_STYLE="teaching-styles.less"
ATOM_STYLE="styles.less"
if grep -q Microsoft /proc/version > /dev/null 2>&1
then
TEACH_STYLE_PATH=~/winhome/${BASE_DIR}/${TEACHING_STYLE}
ATOM_STYLE_PATH=~/winhome/${BASE_DIR}/${ATOM_STYLE}
else
#!/usr/bin/env python
from itertools import combinations
USER_TYPES = [
'Instructor',
'Course Preparer',
'Mentor',
'Student',
'Observer',