Skip to content

Instantly share code, notes, and snippets.

@bf4
bf4 / interview_questions.txt
Last active May 28, 2018 17:52
Interview questions
Good Interview Questions
"Give Him/Her the opportunity to impress you, and maybe even give you a revelation"
Ask open-ended questions, see
---> attitudes about the topic
---> how s/he thinks
---> what s/he's been thinking about lately
Q: Compare Ruby to another language.
@sphingu
sphingu / MVC_InterView_Questions.md
Created June 19, 2013 09:18
MVC Interview Questions

Interview Question


1.In which assembly is the MVC framework defined? System.Web.Mvc

2.What is ViewData, ViewBag and TempData?

  MVC offers Three options for passing data from controller to View and  in next request. 
ViewData & ViewBag are almost similar.
  	Short life means value becomes null when redirection occurs.
		It’s a communication mechanism within the server call.
Difference between ViewBag & ViewData:
@SinisterMinister
SinisterMinister / q.md
Last active November 12, 2018 06:33
JS Interview questions

Javascript Interview Questions

General interview questions for a front-end JS developer.

Questions

  • What is the spec Javascript implements and what versions of it are you most current with?

  • Does JavaScript support the use of classes?

@jedi4ever
jedi4ever / nodejs-cluster-zero-downtime.md
Last active February 11, 2024 13:45
nodejs clustering, zero downtime deployment solutions

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)

UNINCORPORATED FACTS

  • _tickCallback processes the process.nextCallback queue
  • setTimeout cannot have a timeout smaller than 1
  • domains make changes

Understanding the Node event loop

There are two important things to remember about the Node event loop. The

@magic003
magic003 / Algorithm Tips.md
Last active December 30, 2015 18:09
This gist lists the things important for preparing a technical interview.
  • Consider using HashMap when comparing two strings or arrays.
  • When handling string problems, ask if it is ASCII. Use an array of length 256 if it is.
  • When comparing two strings or arrays, sort them first.
  • Using StringBuffer for the temporary result for string concatenate.
  • Prepend a dummy node for linked list problems.
  • Remember integer might be negative!
  • Computer cannot accurately represent float/double, use epsilon for equality check.

Common tricks:

  • Interval intersection: 1) sort by start point, binary search the end point 2) sort both start and end points, go through the array, for start point i++, for end point i--.
@greywillfade
greywillfade / interviewquestions.md
Last active January 27, 2016 09:35
Interview questions

This is a mix of interview questions from the perspective of the potential employee. These are a mix between contract and permanent-type questions, and obviously won't be applicable to every role or company.

##Basic questions

  • What are the standard working hours?
  • Where would I be based?
  • What are your views on working from home?
  • What is your setup for people working remotely (meetings, how you work with them etc)?
  • What salary/rate is applicable?
  • What length of contract would apply?
@matttrent
matttrent / technical interview strategies.md
Created February 18, 2014 05:32
coding interview prep

refx technical interview strategies

5 steps to answer a question

  1. ask to resolve ambiguity
    • in the range of 3-5 questions
    • make sure to make all your assumptions explicit
  2. design algorithm
    • state algorithmic complexity, ask if what they expect
  • are you making the right tradeoffs?
@bjkeller
bjkeller / simplehashtable.js
Created March 25, 2014 18:44
Beginning of simple hash table in JS for workshopping. Uses higher-order function that creates a hash code function on Juliene Walker's jsw_hash.
var SimpleHashTable = function(hashCode) {
var table = [];
var Constructor = function() { };
Constructor.prototype.add = function(opts) {
};
return new Constructor();
}
module.exports.SimpleHashTable = SimpleHashTable;
@listochkin
listochkin / node-command-line-options.txt
Created April 17, 2014 11:00
Node V8 GC-related options
--log_gc (Log heap samples on garbage collection for the hp2ps tool.)
type: bool default: false
--expose_gc (expose gc extension)
type: bool default: false
--max_new_space_size (max size of the new generation (in kBytes))
type: int default: 0
--max_old_space_size (max size of the old generation (in Mbytes))
type: int default: 0
--max_executable_size (max size of executable memory (in Mbytes))
type: int default: 0